[MapProxy] WMTS TopLeftCorner issue

Eric Lemoine eric.lemoine at gmail.com
Wed Dec 19 06:48:30 PST 2012


Hi

My mapproxy.yaml config includes the following for the grid definition:

grids:
  swiss_grid_new:
    srs: 'EPSG:21781'
    bbox: [420000, 30000, 900000, 360000]
    bbox_srs: 'EPSG:21781'
    res: [250, 100, 50, 20, 10, 5, 2.5, 2, 1.5, 1, 0.5 ,0.25, 0.125, 0.0625]
    origin: 'nw'

The WMTS GetCapabilities document that MapProxy generates includes
TileMatrix blocks that look like this:

<TileMatrix>
<ows:Identifier>00</ows:Identifier>
<ScaleDenominator>892857.142857</ScaleDenominator>
<TopLeftCorner>420000.0 40000.0</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8</MatrixWidth>
<MatrixHeight>6</MatrixHeight>
</TileMatrix>

Given my grid's bbox I'd expect TopLeftCorner to be:

<TopLeftCorner>420000.0 360000.0</TopLeftCorner>

The other TileMatrix blocks, for the other zoom levels, also look
wrong to me, but with different values for Top.

Any insight on the problem?

Thanks,


--
Eric


More information about the MapProxy mailing list