Am 15.01.2016 um 12:46 schrieb Stefan Keller:
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>
Those values are the worldwide bounds for EPSG:3857.
If you look at tile http://tile.osm.ch/21781/0/0/0.png, you see half of
the world (without the americas). The bbox for Switzerland can be set
smaller indeed.
HTH,
André Joost
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev