[ka-Map-users] Precaching single layer
Lorenzo Becchi
lorenzo at ominiverdi.com
Tue Mar 27 13:12:07 EST 2007
> On Tue, Mar 27, 2007 at 11:06:06AM -0600, János Gonzales wrote:
> > Hello,
> >
> > Suppose I pre-cached all of my map layers and then i changed my mind
> > about the symbology of one particular layer.
> >
> > I'm looking at
> > http://ka-map.ominiverdi.org/wiki/index.php/Pre-caching_system and I
> > don't see an option to re- pre-cache just one single layer/group.
> >
> > I can think of a solution, but it is cumbersome. I can take my
> > mapfile and rewrite it so that it contains only one group. And do
> > that for each group I need re-cached and then run precache.php on it.
> >
> > Is there an easier way?
>
> I'm not 100% sure I understand what you're saying, but keep in mind that
> ka-Map generally is going to generate *one image* for your group of
> layers (unless you're in a different situation than I have used ka-map
> in the past). If you have a layer pre-cached, you have a number of
> images with all the data in those images -- you can't change a single
> layer in those images without regenerating the whole thing.
>
> But maybe you're looking at something else and I'm just crazy. It
> wouldn't be the first time.
Heh, Chris, I've the same opinion about me
:-)
my "crazy" solution:
delete the cache of just the changed layer in all zoom levels (in the
cache dir)
ex:
rm -rf kamapcache/myMap/*/myLayer
or something like that
than do the precaching again fort that map without forcing redraw, this
should create only those tile that does not exists.
does it make sense?
ciao
Lorenzo
More information about the ka-Map-users
mailing list