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

Mark Volz MarkVolz at co.lyon.mn.us
Wed Oct 23 10:03:10 PDT 2019


Steve,

Thank you for your reply.  I had also thought about configuring the caches at the client level as you suggest.  Unfortunately, I do not have control over all of the potential clients as some outside users might connect to my services via Leaflet, OpenLayers, ArcMap, QGIS, etc.  It sounds like my best option is to swap caches as you suggest (the political cache will only have 4 zoom levels), and hope outside users either repeat the same process or only use the air photo cache.

Thanks!
Sincerely,
Mark Volz

From: Steve Lime <sdlime at gmail.com>
Sent: Wednesday, October 23, 2019 10:31 AM
To: Mark Volz <MarkVolz at co.lyon.mn.us>
Cc: 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?

SWHHS/LYON/LINCOLN COUNTY SECURITY NOTICE:
This email originated from an external sender. Exercise caution before clicking on any links or attachments and consider whether you know the sender. For more information please contact IT support.
________________________________
That seems more like a client configuration issue to me. That is, you'd have the two caches (air photos and political) but then configure the client to swap at different zoom levels. For example, with Leaflet you could simply set maxZoom/minZoom map attributes. Here's an example that uses a map (1 tileset) at small scales and then transitions to aerial photos w/overlays (2 tilesets) as the user zooms in:

   http://maps1.dnr.state.mn.us/test/tiles/switch.html

Presumably you can tell MapCache to only generate tiles over certain zoom ranges for each tileset - thus reducing disk space. Perhaps I'm miss interpreting your question though. --Steve

On Wed, Oct 23, 2019 at 9:29 AM Mark Volz <MarkVolz at co.lyon.mn.us<mailto:MarkVolz at co.lyon.mn.us>> wrote:
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<mailto:mapserver-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapserver-users<https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.osgeo.org%2fmailman%2flistinfo%2fmapserver-users&c=E,1,lECnGbIX0YoSzreux3ITULYLABHISgEy3M_AVOrLyIpIHAKjbzPFhtCfz0QD_UctHcbbpR6bY3qojgl7junn8uKhJwSvBg_KRa4We3r-VY8FeePCam7CGw,,&typo=1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20191023/13f5f556/attachment-0001.html>


More information about the mapserver-users mailing list