[mapserver-users] mapcache - multiple resolutions for the same grid

Travis Kirstine traviskirstine at gmail.com
Mon Mar 4 08:14:20 PST 2013


I have set up mapcache with a generic grid for all my caches.  The grid has
resolutions defined for zoom levels 0-21, however depending on the
resolution of my source data the tileset may only be seeded to level 19.
The tileset no longer has the ability to connect to the source.  As a
result blank images are displayed the when a client using the mapcache WMS
zooms in beyond the max resolution.  Is there a way to address this without
creating additional grids?


   <!-- Google Grid for >=10cm Levels 0-21 -->
   <grid name="gmaps">
      <metadata>
         <title>GoogleMapsCompatible</title>

<WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet>
      </metadata>
      <extent>-20037508.3427892480 -20037508.3427892480 20037508.3427892480
20037508.3427892480</extent>
      <srs>EPSG:3857</srs>
      <srsalias>EPSG:900913</srsalias>
      <units>m</units>
      <size>256 256</size>
      <resolutions>156543.0339280410 78271.51696402048 39135.75848201023
19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640
1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525
76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032
4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395
0.29858214173896975 0.149291070869484875 0.0746455354347424375</resolutions>
   </grid>

 <tileset name="0237DURH_cache">
     <!--source>0237DURH</source-->
     <cache>disk</cache>
     <grid restricted_extent="-8831574.381510 5432633.752429
-8731299.465116 5547099.028228">gmaps</grid>
     <format>mixed</format>
     <metatile>4 4</metatile>
     <metabuffer>0</metabuffer>
   </tileset>

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130304/663168b0/attachment.html>


More information about the mapserver-users mailing list