[MapProxy] WMTS MatrixWidth at Level 0

Oliver Tonnhofer olt at omniscale.de
Wed Aug 12 00:05:20 PDT 2015


Hi,

you need to convert the WMTS TileMatrixSet to a MapProxy grid. 
There is no script for that but you’ll find some guidance in this mail: http://lists.osgeo.org/pipermail/mapproxy/2013-August/001674.html

You can use mapproxy-util grids (http://mapproxy.org/docs/nightly/mapproxy_util.html#grids) to show you the final grid (MatrixWidth and MatrixHeight of each level).

Please let us know if it works and how the final grid looks like.

Regards,
Oliver

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




> On 11.08.2015, at 15:44, Starck Heinrich <Heinrich.Starck at energieag.at> wrote:
> 
> Hello,
>  
> I try to access to a WMTS offer of our local government:
> http://srv.doris.at/arcgis/rest/services/Basisdaten/FlaeWi/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
>  
> But I get the wrong tiles. X,Y are to low.
>  
> Mapproxy:
>          http://srv.doris.at/arcgis/rest/services/Basisdaten/FlaeWi/MapServer/WMTS/tile/1.0.0/Basisdaten_FlaeWi/default/default028mm/9/5/45.png
>  
> Correct something like this:
>          http://srv.doris.at/arcgis/rest/services/Basisdaten/FlaeWi/MapServer/WMTS/tile/1.0.0/Basisdaten_FlaeWi/default/default028mm/6/3449/4182.png
>  
> I think the reason is the TileMatrixSet definition:
>  
> <TileMatrixSet>
>          <ows:Title>TileMatrix using 0.28mm</ows:Title>
>          <ows:Abstract>The tile matrix set that has scale values calculated based on the dpi defined by OGC specification (dpi assumes 0.28mm as the physical distance of a pixel).</ows:Abstract>
>          <ows:Identifier>default028mm</ows:Identifier>
>          <ows:SupportedCRS>urn:ogc:def:crs:EPSG::31255</ows:SupportedCRS>
>          <TileMatrix>
>                    <ows:Identifier>0</ows:Identifier>
>                    <ScaleDenominator>2267861.678580215</ScaleDenominator>
>                    <TopLeftCorner>5001000.0 -5622500.0</TopLeftCorner>
>                    <TileWidth>256</TileWidth>
>                    <TileHeight>256</TileHeight>
>                    <MatrixWidth>36</MatrixWidth>       <------ Level 0 starts with [36:60] instead of [1:1]
>                    <MatrixHeight>60</MatrixHeight>
>          </TileMatrix>
>          <TileMatrix>
>                    <ows:Identifier>1</ows:Identifier>
>                    <ScaleDenominator>1133930.8392901076</ScaleDenominator>
>                    <TopLeftCorner>5001000.0 -5622500.0</TopLeftCorner>
>                    <TileWidth>256</TileWidth>
>                   <TileHeight>256</TileHeight>
>                    <MatrixWidth>71</MatrixWidth>
>                    <MatrixHeight>119</MatrixHeight>
>          </TileMatrix>
>          ...
>         
> I found no way to reflect this in my mapproxy.yaml.
> Is there a config possibility/solution?
>  
>  
> Or can I hack the mapproxy python source?
> A first look shows me no starting point.
> Currently I don't understand metatile,tile pattern etc. and their relationships.
>  
> best regards,
>  
> Heinrich.
>  
>  
>  
>  
> mfG,
> Heinrich Starck
> Konzern-IT-Services
> Consultant
>  
> Energie AG Oberösterreich Business Services GmbH
> Böhmerwaldstraße 3, 4020 Linz, Austria
> Sitz: Linz, FN 282575 b LG Linz
>  
> Tel.: +43 (0)732 9000-3491
> Fax: +43 (0)732 9000-53491
> Mobil: +43 (0)664 60 165 3491
> E-Mail: heinrich.starck at energieag.at
> Internet: www.energieag.at
>  
> 
> 
> Diese Mitteilung ist vertraulich und nur fuer den Adressaten bestimmt. Weitergabe oder Vervielfaeltigung durch andere als den Adressaten ist verboten. Wenn Sie die Sendung irrtuemlich erhalten, verstaendigen Sie bitte unverzueglich den Absender.
> This message is confidential. It may not be disclosed to, or used by, anyone other than the addressee. If you receive this message by mistake, please advise the sender.
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list