[gdal-dev] GDAL_WMS/TMS with local CRS and bbox problem
Stefan Keller
sfkeller at gmail.com
Fri Jan 15 03:46:33 PST 2016
Hi
I have a GDAL .vrt from a GDAL_WMS/TMS which was tweaked to
projection/CRS EPSG:21781 [see below *].
The problem here is, that the bbox is way too large. It should be
Switzerland but it's larger than europe. (in 21781 it's lowerleftX
480000 loverleft Y 70000 upperrightX 840000 upperrightY 300000)
How can I configure the correct bbox in the .vrt?
Or is this a problem at server side config. (http://tile.osm.ch/21781/)?
In fact I'm wondering anyhow about these current UpperLeftX/UpperLeftY
numbers...(which somehow work)?
:Stefan
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>http://tile.osm.ch/21781/${z}/${x}/${y}.png</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>18</TileLevel>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:21781</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<Cache />
</GDAL_WMS>
More information about the gdal-dev
mailing list