[mapserver-users] Wrong case of "TileOutOfRange" Error?
Julian Hollingbery
julian at northtech.dk
Wed Jun 27 04:14:18 PDT 2018
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 <thomas.bonfort at gmail.com>
Sendt: 22. juni 2018 10:12:45
Til: Julian Hollingbery
Cc: Rahkonen Jukka (MML); Ian Turton; mapserver-users at lists.osgeo.org
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 <julian at northtech.dk<mailto:julian at northtech.dk>> 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) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>
Sendt: 21. juni 2018 17:58
Til: Ian Turton <ijturton at gmail.com<mailto:ijturton at gmail.com>>; Julian Hollingbery <julian at northtech.dk<mailto:julian at northtech.dk>>
Cc: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
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:mapserver-users-bounces at lists.osgeo.org] Puolesta Ian Turton
Lähetetty: 21. kesäkuuta 2018 17:12
Vastaanottaja: Julian Hollingbery <julian at northtech.dk<mailto:julian at northtech.dk>>
Kopio: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
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
mapserver-users at lists.osgeo.org<mailto: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/20180627/28e8355e/attachment.htm>
More information about the MapServer-users
mailing list