[MapServer-users] WG: mapcache tms it not working properly

Travis Kirstine traviskirstine at gmail.com
Tue Apr 11 11:44:27 PDT 2023


My guess <origin>top-left</origin> is your issue, I believe the tms
standard is for bottom-left









On Tue, 11 Apr 2023 at 08:44, STEINER Andreas <asteiner at eurofunk.com> wrote:

> Hello everyone,
>
>
>
> I set up a mapcache layer for a customer of mine.
> The layer looks like this:
>
>
> https://user-images.githubusercontent.com/59861665/231165591-1fb8d097-70e1-487d-91c6-152291b3ae43.png
>
>
>
> When requesting the layer via wmts or wms everything works fine.
> My customer requires TMS – when I request the tiles with tms the tiles are
> not at the right place.
>
>
>
> Z0: At Z0 the tiles match:
>
>
>
>
> https://user-images.githubusercontent.com/59861665/231165657-742f7944-f2a4-444c-9a82-24c10574bdc8.png
>
>
>
> At Z1 they are not at the same place:
>
> https://user-images.githubusercontent.com/59861665/231165693-29e2399a-04cd-4df0-b63a-1ab3f606ce92.png
>
> And e.g. at Z6 it looks like this:
>
>
> https://user-images.githubusercontent.com/59861665/231165727-a638e7d8-8803-4c81-a2bd-7ff70ed04020.png
>
>
>
> That’s the configuration for the GRID:
>
>   <grid name="WORLD">
>
>       <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>
>
>       <size>256 256</size>
>
>       <srsalias>EPSG:900913</srsalias>
>
>       <origin>top-left</origin>
>
>       <resolutions>156543.03392800014 78271.51696399994 39135.75848200009
> 19567.87924099992 9783.93962049996 4891.96981024998 2445.98490512499
> 1222.992452562495 611.4962262813797 305.74811314055756 152.87405657041106
> 76.43702828507324 38.21851414253662 19.10925707126831 9.554628535634155
> 4.77731426794937 2.388657133974685 1.1943285668550503
> 0.5971642835598172</resolutions>
>
>   </grid>
>
>
>
>
>
> I also tried to use a EPSG:4326 with a extend -180 -180 180 180 but it’s
> the same result.
>
> The url I used looks like this: http://XX
> /mapcache/tms/1.0.0/<tileset>@WORLD/{z}/{x}/{y}.png
>
> Maybe someone has an idea why it doesn’t work.
>
>
>
> Thanks in advance.
>
>
>
> Best regards
>
> Andy
>
>
>
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20230411/c21b28d3/attachment.htm>


More information about the MapServer-users mailing list