Thanks for that pointer, Thomas. So, if I read the code correctly, here is the line which reads the "restricted_extent" attribute from the configuration file: https://github.com/mapserver/mapcache/blob/master/lib/configuration_xml.c#L680 and stores it in gridlink->restricted_extent. Here is the line which produces the error I see, after checking against tile->grid_link->grid_limits https://github.com/mapserver/mapcache/blob/master/lib/tileset.c#L176
But I can find nowhere in the code where either 1) gridlink->restricted_extent is substituted into grid_link->grid_limits, or 2) A check is performed of tile->grid_link->grid_limits against gridlink->restricted_extent Shouldn't I be able to find such code? Regards /julian ________________________________ Fra: thomas bonfort <[email protected]> Sendt: 22. juni 2018 10:12:45 Til: Julian Hollingbery Cc: Rahkonen Jukka (MML); Ian Turton; [email protected] Emne: Re: [mapserver-users] Wrong case of "TileOutOfRange" Error? here is how the y=5 you are seeing is calculated: https://github.com/mapserver/mapcache/blob/master/lib/service_wmts.c#L830 On Fri, Jun 22, 2018 at 9:05 AM Julian Hollingbery <[email protected]<mailto:[email protected]>> wrote: Hi Ian and Jukka, Thanks for your response! However, I’m pretty sure that the TileMatrix-parameter is good, since this works nicely: .. &TILEMATRIXSET=GSTutm32&TILEMATRIX=5&TILEROW=39&TILECOL=64&FORMAT=image%2Fpng (TileRow changed from 40 to 39). After all, I copied the request from http://xx.xx.xx.xx/servicename/demo/wmts, which, incidentally, shows the infamous pink tiles, if I pan to the outer edges of the tilegrid. Regards, /julian Fra: Rahkonen Jukka (MML) <[email protected]<mailto:[email protected]>> Sendt: 21. juni 2018 17:58 Til: Ian Turton <[email protected]<mailto:[email protected]>>; Julian Hollingbery <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Emne: Re: [mapserver-users] Wrong case of "TileOutOfRange" Error? Hi, I don’t see a relevant part of GetCapabilities but I believe that the name of the tile matrix in MapCache based WMTS services is plain ”5” like here https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts/1.0.0/WMTSCapabilities.xml GetTile example https://avoin-karttakuva.maanmittauslaitos.fi/avoin/wmts?service=WMTS&request=GetTile&version=1.0.0&layer=maastokartta&style=default&format=image/png&TileMatrixSet=ETRS-TM35FIN&TileMatrix=6&TileRow=44&TileCol=27 -Jukka Rahkonen- Lähettäjä: mapserver-users [mailto:[email protected]] Puolesta Ian Turton Lähetetty: 21. kesäkuuta 2018 17:12 Vastaanottaja: Julian Hollingbery <[email protected]<mailto:[email protected]>> Kopio: [email protected]<mailto:[email protected]> Aihe: Re: [mapserver-users] Wrong case of "TileOutOfRange" Error? It looks like MapServer is mixing up tileset and tilerow (probably a cut and paste error in the error message) - I think the tile matrix should be GSTutm32:5 not just 5. Ian _______________________________________________ mapserver-users mailing list [email protected]<mailto:[email protected]> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/mapserver-users
