[MapProxy] Wrong WGS84BoundingBox in WMTS GetCapabilities

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Tue Nov 29 07:46:48 PST 2016


Hi Oliver,

Oh yeah, naturally. But I made a better image http://latuviitta.org/downloads/WGS84BoundingBox.png about our situation.

In context of http://osgeo-org.1560.x6.nabble.com/gdal-dev-How-does-WMTS-driver-detect-DataWindow-tc5297692.html I wonder if it would it be better to write the BoundingBox of the layer in the same SRS as the TileMatrix. GeoWebCache does not write the bounding box for layers at all but it does write a bounding box for TileMatrixSet:

<TileMatrixSet>
<ows:Identifier>ETRS-TM35FIN</ows:Identifier>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.3:3067">
<ows:LowerCorner>-548576.000000 6291456.000000</ows:LowerCorner>
<ows:UpperCorner>1548576.000000 8388608.000000</ows:UpperCorner>
</ows:BoundingBox>

This makes GDAL to find a reasonable DataWindow. However, there may be something to fix also on the GDAL side.

-Jukka Rahkonen-


Oliver Tonnhofer wrote:

> Hi,

> please have a look at this example: https://gist.github.com/anonymous/2445ea91a8ac7b15bf39

> You are expecting WGS84BoundingBox to cover the red box, but the green one is the correct box.


> Regards,
> Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com





> On 29.11.2016, at 15:13, Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi> wrote:
> 
> Hi,
>  
> We have defined this gridset
>  
>  
>    ETRS-TM35FIN:
>         srs: 'EPSG:3067'
>         tile_size: [256, 256]
>         res: [8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25]
>         bbox: [-548576, 6291456, 1548576, 8388608]
>         bbox_srs: 'EPSG:3067'
>  
> However, in the WMTS GetCapabilities the WGS84BoundingBox does not suit with the EPSG:3067 bbox of the tile matrix set
>  
> <Layer>
> <ows:Title>Geology</ows:Title>
> <ows:Abstract/><ows:WGS84BoundingBox>
> <ows:LowerCorner>-6.38153862706 55.6179644952</ows:LowerCorner>
> <ows:UpperCorner>60.3815386271 75.5825702342</ows:UpperCorner>
> </ows:WGS84BoundingBox>
> <ows:Identifier>geology</ows:Identifier>
> <Style><ows:Identifier>default</ows:Identifier></Style>
> <Format>image/png</Format>
> <TileMatrixSetLink>
> <TileMatrixSet>ETRS-TM35FIN</TileMatrixSet>
> </TileMatrixSetLink>
> </Layer>
>  
> WGS84BoundingBox is optional in the WMTS standard and it does not need to be accurate
> “This WGS84BoundingBox can be approximate, but SHOULD be as precise as practical.”
> However, I think it should be a bit more accurate than this.
>  
> correct                                                                         bbox: [-548576, 6291456, 1548576, 8388608]
> calculated from WGS84BoundingBox             bbox: [-1553363, 6681098, 1381718, 8645537]
>  
>  
> -Jukka Rahkonen-
>  
>                             
>  
>  
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list