[gdal-dev] Using a MapQuest TMS via GDAL

Even Rouault even.rouault at mines-paris.org
Wed Oct 23 00:21:34 PDT 2013


Le mardi 22 octobre 2013 22:21:41, Jukka Rahkonen a écrit :
> Chris Hanson <xenon <at> alphapixel.com> writes:
> > What is the proper process for requesting a DataWindow region
> > and getting a proper reoreferenced raster subset back?
> 
> I am not sure about how changing the DataWindow size in the XML
> configuration file should work but anyway, it is not so good place to play.

Yes playing with DataWindow is not appropriate. It defines the the bounding box 
of the source layer, in the tile scheme of the source. in particular at which 
coordinates http://otile1.mqcdn.com/tiles/1.0.0/sat/0/0/0.png will be.

What you would want is the capability to define a window of interest, but that 
doesn't exist in the WMS XML format.

> Instead, define the TMS source to cover the whole world as in
> http://www.gdal.org/frmt_wms_openstreetmap_tms.xml and control the area you
> want with the gdal_translate parameters
> http://www.gdal.org/gdal_translate.html
> 
> I believe you want to use -projwin.

+1

You can also create a virtual dataset file with gdal_translate -of VRT -projwin 

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list