[MapProxy] seed a WMTS service and create a WMS service
Oliver Tonnhofer
olt at omniscale.de
Fri Aug 9 05:49:36 PDT 2013
Hi,
here is a short guide to create a MapProxy grid from a WMTS capabilities.
On 09.08.2013, at 07:52, Daniel O'donohue wrote:
> here is the Get Capbilities file from the WMTS service
> [...]
> <TileMatrixSet>
> <ows:Identifier>View1</ows:Identifier>
We start with a custom grid
grids:
view1: # you can choose any name here
origin: 'nw' # as defined by WMTS
> <ows:BoundingBox>
> <ows:LowerCorner>120000 5900000</ows:LowerCorner>
> <ows:UpperCorner>1000000 6500000</ows:UpperCorner>
> </ows:BoundingBox>
bbox: [120000, 5900000, 1000000, 6500000]
> <ows:SupportedCRS>urn:ogc:def:crs:EPSG::25832</ows:SupportedCRS>
srs: 'EPSG:25832'
> <TileMatrix>
> <ows:Identifier>L00</ows:Identifier>
> <ScaleDenominator>5851428.57142857</ScaleDenominator>
Here we have a scale. I'll spare you the rant and just point to yesterdays mail from Frank :)
You need to divide the scale denominator by 0.28/1000, which gives 1638.4.
You can do that with mapproxy-util scales
% mapproxy-util scales --as-res-conf 5851428.57142857 2925714.28571429
res: [
# res level scale @90.7 DPI
1638.4000000000, # 0 5851428.57142857
819.2000000000, # 1 2925714.28571429
]
grids:
view1: # you can choose any name here
origin: 'nw' # as defined by WMTS
bbox: [120000, 5900000, 1000000, 6500000]
srs: 'EPSG:25832'
res: [1638.4, 819.2, # and for all other levels]
Regards,
Oliver
--
Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.com
http://mapproxy.org | https://github.com/olt | @oltonn
More information about the MapProxy
mailing list