[ka-Map-users] precaching only at some scales?

Lorenzo Becchi lorenzo at ominiverdi.com
Tue Oct 7 12:41:32 EDT 2008


have you tried with precache.php [1]?

"-s" option should allow you to specify an exact scale

lorenzo

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


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.
>
> sacha
>
> 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
>> 1:25,000
>>
>> 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
>> finish!
>>
>> 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
>>        METADATA
>>            "tile_source" "cache"
>>        END
>>
>> Of course it didn´t worked because when going to smallers scales cache was
>> empty and the browser kept repeating the request.
>>
>> 2nd attempt:
>>        METADATA
>>            "tile_source" "auto"
>>            "redraw_interval" "100000"
>>            "refresh_interval" "200000"
>>        END
>>
>> 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
>> Juan
>> --
>> 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
>> 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
>
>   


More information about the ka-Map-users mailing list