[mapserver-users] MapCache inverted Y values

Travis Kirstine tkirstine at firstbasesolutions.com
Wed Jun 25 06:17:53 PDT 2014


I just configured mapcache using a grid using 512 512 size.  Everything
seems OK however when I view the resultant tilesets in the demo map viewer
they have a inverted Y value, the latitudes are negative values when they
should be positive.  Do I need to create a custom cache to handle tile
sizes other that 256?


   <grid name="gmaps_512">
      <extent>-20037508.3427892480 -20037508.3427892480 20037508.3427892480
20037508.3427892480</extent>
      <srs>EPSG:3857</srs>
      <srsalias>EPSG:900913</srsalias>
      <units>m</units>
      <size>512 512</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>


   <cache name="disk" type="disk">
      <base>/opt/mapcache/512_cache</base>
      <creation_retry>10</creation_retry>
      <symlink_blank/>
   </cache>



  <tileset name="default_512">
    <source>default_wms</source>
    <cache>disk</cache>
    <grid>gmaps_512</grid>
    <format>mixed</format>
    <metatile>2 2</metatile>
    <metabuffer>10</metabuffer>
  </tileset>

  <source name="default_wms" type="wms">
    <getmap><params>
    <format>image/png</format>
    <layers>default</layers>
    <transparent>true</transparent>
    </params></getmap>
    <http><url>
http://wmts2.firstbasesolutions.com/cgi-bin/mapserver_wms_fcgi</url></http>
  </source>






-- 

*Travis Kirstine*
*First Base Solutions I**nc*.
tkirstine at firstbasesolutions.com

140 Renfrew Dr. | Suite 100 | Markham, ON | L3R 6B3
p. 905-477-3600 ext. 301 | m. 647-534-4798
http://www.firstbasesolutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140625/a81537c8/attachment.html>


More information about the mapserver-users mailing list