mapcache icon indicating copy to clipboard operation
mapcache copied to clipboard

Problem with WMTS TileMatrix-values in some viewers

Open rillat opened this issue 12 years ago • 4 comments

Some viewers (like the Geocortex Silverlight Viewer and arcgis.com) won't show wmts-tilesets because of a discrepancy in the capabilities provided by mapcache. These viewers expect a TileMatrix-value in a TileMatrixSetLink to be the same as/correspond with the ows:Identifier-value for the TileMatrix in the TileMatrixSet.

rillat avatar Jan 13 '14 15:01 rillat

@rillat, it would be helpful if you could post a diff between a working and failing capabilities document.

tbonfort avatar Jan 13 '14 16:01 tbonfort

I don't have a full working capabilities document.

Currently the capabilities are like this:

... <TileMatrixSetLink> <TileMatrixSet>GoogleMaps</TileMatrixSet> <TileMatrixSetLimits> <TileMatrixLimits> <TileMatrix>GoogleMaps:0</TileMatrix> <MinTileRow>0</MinTileRow> <MaxTileRow>0</MaxTileRow> <MinTileCol>0</MinTileCol> <MaxTileCol>0</MaxTileCol> </TileMatrixLimits> ... <TileMatrixSet> <ows:Identifier>GoogleMaps</ows:Identifier> <ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.3:3857"> <ows:LowerCorner>-20037508.342789 -20037508.342789</ows:LowerCorner> <ows:UpperCorner>20037508.342789 20037508.342789</ows:UpperCorner> </ows:BoundingBox> <ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.3:3857</ows:SupportedCRS> <WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet> <TileMatrix> <ows:Identifier>0</ows:Identifier> <ScaleDenominator>559082264.02871787548065185547</ScaleDenominator> <TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>1</MatrixWidth> <MatrixHeight>1</MatrixHeight> </TileMatrix> ...

As pointed out to me by users of the viewers mentioned above it should be like this:

... <TileMatrixSetLink> <TileMatrixSet>GoogleMaps</TileMatrixSet> <TileMatrixSetLimits> <TileMatrixLimits> <TileMatrix>0</TileMatrix> <MinTileRow>0</MinTileRow> <MaxTileRow>0</MaxTileRow> <MinTileCol>0</MinTileCol> <MaxTileCol>0</MaxTileCol> </TileMatrixLimits> ... <TileMatrixSet> <ows:Identifier>GoogleMaps</ows:Identifier> <ows:BoundingBox crs="urn:ogc:def:crs:EPSG:6.3:3857"> <ows:LowerCorner>-20037508.342789 -20037508.342789</ows:LowerCorner> <ows:UpperCorner>20037508.342789 20037508.342789</ows:UpperCorner> </ows:BoundingBox> <ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.3:3857</ows:SupportedCRS> <WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet> <TileMatrix> <ows:Identifier>0</ows:Identifier> <ScaleDenominator>559082264.02871787548065185547</ScaleDenominator> <TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>1</MatrixWidth> <MatrixHeight>1</MatrixHeight> </TileMatrix> ...

...

rillat avatar Jan 14 '14 07:01 rillat

@rillat please confirm that the provided fix is OK

tbonfort avatar Jan 14 '14 09:01 tbonfort

Fix makes WMTS unusable in Qgis. Further investigation is needed into why the mentioned viewers don't accept the mapcache WMTS.

rillat avatar Jan 27 '14 07:01 rillat