[mapserver-users] Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels?

Eichner, Andreas - SID Andreas.Eichner at sid.sachsen.de
Fri Oct 25 05:23:16 PDT 2019


Hmm, seems the Composite-Cache would be the better way to go: https://mapserver.org/mapcache/caches.html#composite-caches

In the past symbolic links (aka soft links) worked for me on Linux. But with that tiles might be seeded through multiple caches giving error "unknown error (another thread/process failed to create the tile I was waiting for)" in the logs.
So better try a composite cache.

> -----Original Message-----
> From: mapserver-users [mailto:mapserver-users-
> bounces at lists.osgeo.org] On Behalf Of Mark Volz
> Sent: Thursday, October 24, 2019 10:35 PM
> To: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] Mapcache - Is it possible to have
> two tilesets share a single cache at particular zoom levels?
> 
> Andreas,
> 
> Good idea.  It looks like Windows can create symlinks.  I suppose
> I could try symlinking the cache for levels 5-11.  Do you know if
> I would need to create hard or soft links to do this?   Also, I
> would like to make sure our backup software does not try to backup
> the actual data twice...
> Reference:  https://www.howtogeek.com/howto/16226/complete-guide-
> to-symbolic-links-symlinks-on-windows-or-linux/
> 
> Thanks!
> 
> Sincerely,
> Mark Volz, GISP
> Lyon County GIS Coordinator
> 504 Fairgrounds Rd
> Marshall, MN 56258
> Ph:  (507) 532-8218
> http://lyonco.org/
> http://geomoose.lyonco.org/
> 
> 
> >What about symlinking the level directories?
> 
> 
> > -----Original Message-----
> > From: mapserver-users [mailto:mapserver-users-
> > bounces at lists.osgeo.org] On Behalf Of Mark Volz
> > Sent: Wednesday, October 23, 2019 4:12 PM
> > To: mapserver-users at lists.osgeo.org
> > Subject: [mapserver-users] Mapcache - Is it possible to have two
> > tilesets share a single cache at particular zoom levels?
> >
> > Hello,
> >
> >
> >
> > I have two similar tilesets configured in Mapcache.  One of the
> > tilesets displays a political map at small scales, then changes
> to an
> > air photo map as the user zooms into the map.  The second
> tileset
> > displays air photos at every zoom level.  It would be useful if
> these
> > tilesets could share a single cache for zoom levels 5-11.  This
> way we
> > could save a significant amount of space on the server.
> >
> >
> >
> > Example #1:
> >
> > Political and Air Photo Basemap:
> >
> > *         Zoom level 0-4:  Use the cache from the "political map
> > cache"
> >
> > *         Zoom level 5-11: Use the cache from the "air photo
> > cache"
> >
> > Air Photo Basemap
> >
> > *         Zoom level 0-11:  Use the cache from the "air photo
> > cache"
> >
> > Result:
> >
> > *         Any tiles at level 5-11, which will take up the
> majority
> > of the space on the sever will not need to be duplicated between
> the
> > two tilesets.
> >
> >
> >
> > Please let me know if it is possible to share caches between
> different
> > tilesets.
> >
> >
> >
> > Thanks!
> >
> >
> >
> > Sincerely,
> >
> > Mark Volz, GISP
> >
> > Lyon County GIS Coordinator
> >
> >
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list