[ka-Map-users] Refresh layers with tilesource=cache

Lorenzo Becchi lorenzo at ominiverdi.com
Wed Nov 19 18:48:15 EST 2008


Hi Antonio,
I'm not sure but I guess your problem is due to your WMS source not to 
ka-Map.

if you see just a part of the tiles, it could be that ka-map is asking 
too many informations to the external WMS server and it doesn't respond 
in time.
You could try to use the precache_wget.php [1] and set a delay to wget 
(-w, time in seconds) to ask slower the tiles.
just an idea

lorenzo

[1] 
http://ka-map.ominiverdi.org/wiki/index.php/Pre-caching_system#precache_wget.php


Antonio Garcia wrote:
> Hello, I have got a problem with the tile.php of a WMS layer.
>  
> This layer is of the spanish catastro.
>  
> There are some tiles that I can't see, and I go to see the files in 
> the tmp and see tiles white.
>  
> When I go to kamap in another time the tiles are white again, and I 
> have got that delete the tiles in the directory tmp.
> Then KAMAP redraw it ok
>  
> I think that kamp would must  can refresh the screen with this problem 
> even when the configuration of this layer is tilesource: cache
>  
>  
> In the tile.php there is this code:
>  
> //acquire shared lock for reading to prevent a problem that could occur
> //if a tile exists but is only partially generated.
> flock($fpLockFile, LOCK_SH);
> $h = fopen($szCacheFile, "r");
> header("Content-Type: ".$szImageHeader);
> header("Content-Length: " . filesize($szCacheFile));
> header("Expires: " . date( "D, d M Y H:i:s GMT", time() + 31536000 ));
> header("Cache-Control: max-age=31536000, must-revalidate" );
> fpassthru($h);
> fclose($h);
> //release lock
> fclose($fpLockFile);
> /* bug 1253 - root permissions required to delete cached files */
> umask($orig_umask);
>  
>  
> Can somebody help me? Please
>
>
> Saludos,
> -----------
> Antonio García Benlloch
>
> *Correo:
> *angarben at hotmail.com
> angarben at aaa.upv.es <mailto:angarben at aaa.upv.es>
>
> *Web:
> *http://personales.alumno.upv.es/~angarben
>
>
>
>
> > Date: Wed, 3 Sep 2008 12:02:49 -0400
> > From: ka-map-users-request at lists.maptools.org
> > Subject: ka-Map-users Digest, Vol 41, Issue 1
> > To: ka-map-users at lists.maptools.org
> >
> > Send ka-Map-users mailing list submissions to
> > ka-map-users at lists.maptools.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
> > or, via email, send a message with subject or body 'help' to
> > ka-map-users-request at lists.maptools.org
> >
> > You can reach the person managing the list at
> > ka-map-users-owner at lists.maptools.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of ka-Map-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: auto refresh layers (Edward Cooley)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 2 Sep 2008 13:25:33 -0500
> > From: Edward Cooley <ecooley at strategy5.com>
> > Subject: Re: [ka-Map-users] auto refresh layers
> > To: marco mugnaini <sitigenova at gmail.com>
> > Cc: ka-map-users at lists.maptools.org
> > Message-ID: <D69A4B4D-8A6C-4912-99FA-E1E1DB5CB216 at strategy5.com>
> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> >
> > If you only have a few alerts (less than 50) you should consider using
> > geoObjects instead of a layer. That way you can issue an AJAX request
> > that returns an updated array of alerts and handle with javascript
> > rather than the bulk of refreshing a layer.
> >
> > Having said that, there is auto-refresh timers built into kamap that
> > can be used to refresh a layer.
> >
> > Here is an example of a layer I use for radar weather images updating
> > every 10 minutes.
> >
> > LAYER
> > GROUP "Weather"
> > NAME "weather"
> > STATUS OFF
> > METADATA
> > "opacity" "50"
> > "redraw_interval" "600"
> > "tile_source" "redraw"
> > "refresh_interval" "300"
> > END
> > TYPE RASTER
> > STATUS OFF
> > DATA "../data/weather/weather.gif"
> > END
> >
> >
> > ---
> > Edward J. Cooley
> > Strategy Systems, Inc.
> > http://www.strategysystems.com
> > Phone: 479-271-7400 Ext. 103
> > Photograph Blog - Photo Galleries
> >
> >
> >
> >
> >
> > On Aug 22, 2008, at 1:41 AM, marco mugnaini wrote:
> >
> > > Hello,
> > > i'm a rookie for ka-map and i need some information...
> > >
> > > ka-map it's the right application to make visual alert system?
> > >
> > > in practice, it's possible to set an autorefresh for the layers?
> > >
> > > have you any experience in that?
> > >
> > > ...to make an example: info traffic in real time..
> > >
> > > thanks to everyone from italy!
> > > _______________________________________________
> > > ka-Map-users mailing list
> > > ka-Map-users at lists.maptools.org
> > > http://lists.maptools.org/mailman/listinfo/ka-map-users
> >
> >
> >
> > ------------------------------
> >
> > _______________________________________________
> > ka-Map-users mailing list
> > ka-Map-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/ka-map-users
> >
> >
> > End of ka-Map-users Digest, Vol 41, Issue 1
> > *******************************************
>
> ------------------------------------------------------------------------
> Entra ya en I love Messenger y consigue 30 emoticonos ¡Gratis! 
> <http://www.vivelive.com/ilovemessenger>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>   


More information about the ka-Map-users mailing list