[MapProxy] New to MapProxy
Oliver Tonnhofer
olt at omniscale.de
Tue Mar 4 07:05:08 PST 2014
On 04.03.2014, at 15:29, Javier de la Torre wrote:
> Yes,
>
> Here it is
>
> http://map1.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi?SERVICE=WMTS&request=GetCapabilities
From the EPSG4326_500m tile matrix set:
<TileMatrix><ows:Identifier>0</ows:Identifier><ScaleDenominator>223632905.6114871</ScaleDenominator><TopLeftCorner>-180 90</TopLeftCorner><TileWidth>512</TileWidth><TileHeight>512</TileHeight><MatrixWidth>2</MatrixWidth><MatrixHeight>1</MatrixHeight></TileMatrix>
<TileMatrix><ows:Identifier>1</ows:Identifier><ScaleDenominator>111816452.8057436</ScaleDenominator><TopLeftCorner>-180 90</TopLeftCorner><TileWidth>512</TileWidth><TileHeight>512</TileHeight><MatrixWidth>3</MatrixWidth><MatrixHeight>2</MatrixHeight></TileMatrix>
<TileMatrix><ows:Identifier>2</ows:Identifier><ScaleDenominator>55908226.40287178</ScaleDenominator><TopLeftCorner>-180 90</TopLeftCorner><TileWidth>512</TileWidth><TileHeight>512</TileHeight><MatrixWidth>5</MatrixWidth><MatrixHeight>3</MatrixHeight></TileMatrix>
<TileMatrix><ows:Identifier>3</ows:Identifier><ScaleDenominator>27954113.20143589</ScaleDenominator><TopLeftCorner>-180 90</TopLeftCorner><TileWidth>512</TileWidth><TileHeight>512</TileHeight><MatrixWidth>10</MatrixWidth><MatrixHeight>5</MatrixHeight></TileMatrix>
[...]
You can convert the ScaleDenominator to resolution with `mapproxy-util scales`. For example:
% mapproxy-util scales --as-res-config --unit d 223632905.6114871 111816452.8057436 55908226.40287178
res: [
# res level scale @90.7 DPI
0.5625000000, # 0 223632905.61148709
0.2812500000, # 1 111816452.80574360
0.1406250000, # 2 55908226.40287178
]
So something like the following should work:
grids:
EPSG4326_500m:
bbox: [-180, -90, 180, 90]
srs: 'EPSG:4326'
tile_size: [512, 512]
origin: ul
res: [
# res level scale @90.7 DPI
0.5625000000, # 0 223632905.61148709
0.2812500000, # 1 111816452.80574360
0.1406250000, # 2 55908226.40287178
.....
]
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