[ka-Map-users] precaching only at some scales?
lorenzo at ominiverdi.com
Tue Oct 7 12:41:32 EDT 2008
have you tried with precache.php ?
"-s" option should allow you to specify an exact scale
Sacha Black wrote:
> hi Jaun,
> I think you want to run precache as normal, but with an edited
> config.php where you first delete the scales below 100,000. This will
> create all the tiles for the upper scales.
> then re-edit config.php to insert back all your desired lower scales,
> and use tile.php as default. Tile.php should check if a tile exists
> before creating it, so for the upper level scales, it will always use
> the precache cache, and for the lower scales it will add new tiles to
> the cache on the fly as needed.
> On Mon, Oct 6, 2008 at 3:54 PM, juanbatman <elsueniero at gmail.com> wrote:
>> Hello List,
>> I have my map with scales defined in config.php ranging from 1:25,000,000 to
>> The thing is that the map is so big that according to my calcs building the
>> precache for the 1:50,000 and 1:25,000 scales will take a couple of days to
>> Those scales will be rarely used, so I figured out that maybe I could pre
>> calculate the cache for all scales up to 1:100,000 and then let tile.php do
>> the drawing for smallers scales, but I could´t figure out how.
>> What I tried so far was:
>> 1st attempt: In all layers use the cache mode
>> "tile_source" "cache"
>> Of course it didn´t worked because when going to smallers scales cache was
>> empty and the browser kept repeating the request.
>> 2nd attempt:
>> "tile_source" "auto"
>> "redraw_interval" "100000"
>> "refresh_interval" "200000"
>> and I precalculated the cache for all scales but 1:50,000 and 1:25,000
>> It didn´t work either. The application was redrawing all the scales, even
>> for those that precalculated cache was available.
>> Is there any know solution for this??
>> Thanks a lot
>> View this message in context: http://www.nabble.com/precaching-only-at-some-scales--tp19786156p19786156.html
>> Sent from the ka-map-users mailing list archive at Nabble.com.
>> ka-Map-users mailing list
>> ka-Map-users at lists.maptools.org
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
More information about the ka-Map-users