[mapserver-users] Wrong case of "TileOutOfRange" Error?

Julian Hollingbery julian at northtech.dk
Thu Jun 21 07:05:08 PDT 2018


Hi list,

we are using MapCache 1.6.1 as a WMTS and TMS server in front of a WMS, for the most part with success :-)

However, a request like

http://xx.xx.xx.xx/servicename/wmts/?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=layername&STYLE=default&TILEMATRIXSET=GSTutm32&TILEMATRIX=5&TILEROW=40&TILECOL=64&FORMAT=image%2Fpng

returns

<?xml version="1.0" encoding="UTF-8"?>
<ExceptionReport xmlns="http://www.opengis.net/ows/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ows/2.0 owsExceptionReport.xsd<http://www.opengis.net/ows/2.0%20owsExceptionReport.xsd>" version="1.0.0" xml:lang="en">
<!-- tile y=5 not in [6,44[ -->
<Exception exceptionCode="TileOutOfRange" locator="TileRow"/>
</ExceptionReport>

which puzzles me for two reasons:
1) I did not request a tile with "y=5"
2) The GetCapabilities show me
                           <Contents>
                                                      <Layer>
                                                                                  <ows:Title>layername</ows:Title>
                                                                                  <ows:Identifier>layername</ows:Identifier>
                                                                                  <Style isDefault="true">
                                                                                                             <ows:Identifier>default</ows:Identifier>
                                                                                  </Style>
                                                                                  <Format>image/png</Format>
                                                                                  <TileMatrixSetLink>
                                                                                                             <TileMatrixSet>GSTutm32</TileMatrixSet>
                                                                                                             <TileMatrixSetLimits>
                                                                                                             ...
                                                                                                                                        <TileMatrixLimits>
                                                                                                                                                                   <TileMatrix>GSTutm32:5</TileMatrix>
                                                                                                                                                                   <MinTileRow>6</MinTileRow>
                                                                                                                                                                   <MaxTileRow>43</MaxTileRow>
                                                                                                                                                                   <MinTileCol>19</MinTileCol>
                                                                                                                                                                   <MaxTileCol>64</MaxTileCol>
                                                                                                                                        </TileMatrixLimits>

In the configuration file, I have:

<?xml version="1.0"?>
<mapcache xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <grid name="GSTutm32">
    <metadata />
    <extent>120000 5900000 1000000 6500000</extent>
    <srs>EPSG:25832</srs>
    <units>m</units>
    <size>256 256</size>
    <resolutions>1638.4 819.2 409.6 204.8 102.4 51.2 25.6 12.8 6.4 3.2 1.6 0.8 0.4 0.2 0.1 0.05</resolutions>
  </grid>
  <source name="source_service" type="wms">
    <getmap>
      <params>
        <FORMAT>image/png</FORMAT>
        <LAYERS>wms_layername</LAYERS>
      </params>
    </getmap>
    <http>
      <url>http://172.30.229.42/fcgi-bin/mapserv.fcgi?map=/mapserver/config/source_service.map</url<http://172.30.229.42/fcgi-bin/mapserv.fcgi?map=/mapserver/config/source_service.map%3c/url>>
    </http>
  </source>
  <cache name="couchbase" type="memcache">
    <server>
      <host>yy.yy.yy.yy</host>
      <port>11211</port>
    </server>
  </cache>
  <tileset name="layername">
    <source>source_service</source>
    <cache>couchbase</cache>
    <grid restricted_extent="440000 6048000 894000 6404000" use_wms_intermediate_resolutions="false">GSTutm32</grid>
    <format>PNG</format>
    <metatile>5 5</metatile>
    <metabuffer>10</metabuffer>
  </tileset>
...

Am i missing something, or is this simply a bug in the handling of a <grid> with restricted_extent?

Best Regards,
/julian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180621/0998f8a9/attachment.htm>


More information about the MapServer-users mailing list