<div dir="ltr"><br clear="all"><div>  I'm trying to access a web mapping service (MapQuest in this case) using the GDAL WMS driver.</div><div><br></div><div>  Inspired by this page:</div><div><a href="http://www.3liz.com/blog/rldhont/index.php?post/2012/07/17/OpenStreetMap-Tiles-in-QGIS">http://www.3liz.com/blog/rldhont/index.php?post/2012/07/17/OpenStreetMap-Tiles-in-QGIS</a><br>

</div><div><br></div><div>  and this</div><div><a href="http://developer.mapquest.com/web/products/open/map">http://developer.mapquest.com/web/products/open/map</a><br></div><div><br> I formulate an XML string such as this:</div>

<div><br></div><div><GDAL_WMS><Service name="TMS"><ServerUrl><a href="http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png">http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png</a></ServerUrl></Service><DataWindow><UpperLeftX>-1.035240e+007</UpperLeftX><UpperLeftY>5.297933e+006</UpperLeftY><LowerRightX>-1.035144e+007</LowerRightX><LowerRightY>5.297055e+006</LowerRightY><TileLevel>1</TileLevel><TileCountX>1</TileCountX><TileCountY>1</TileCountY><YOrigin>top</YOrigin></DataWindow><Projection>EPSG:3857</Projection><BlockSizeX>256</BlockSizeX><BlockSizeY>256</BlockSizeY><BandsCount>3</BandsCount><Cache /></GDAL_WMS><br>

</div><div><br></div><div>  I was hoping this was going to return a georeferenced raster of just the area I'm interested in (defined by the DataWindow) but instead it seem to return a virtual image comprising the whole world. However, it comes bearing georeferencing info </div>

<div><br></div><div><div>Corner Coordinates:</div><div>Upper Left    (-10352400.000, 5297933.000)</div><div>Lower Left    (-10352400.000, 5297055.000)</div><div>Upper Right   (-10351440.000, 5297933.000)</div><div>Lower Right   (-10351440.000, 5297055.000)</div>

<div>Center        (-10351920.000, 5297494.000)</div></div><div><br></div><div>That indicates it IS the area I requested. But when you look at it, it's the whole world image.</div><div><br></div><div>  Is the DataWindow just ignored here?</div>

<div><br></div><div>  What is the proper process for requesting a DataWindow region and getting a proper reoreferenced raster subset back?</div><div><br></div><div>  And yes, we are within the license term for MapQuest. They've been helping us, but it looks like this issue isn't really them, it's how I'm using GDAL.</div>

<div><br></div><div>  Google, VirtualEarth and OSM all react the same way -- ignoring the DataWindow.</div><div><br></div><div><br></div>-- <br><div dir="ltr"><div style="text-align:center">Chris 'Xenon' Hanson, omo sanza lettere. Xenon@AlphaPixel.com <a href="http://www.alphapixel.com/" target="_blank">http://www.alphapixel.com/</a></div>

<div style="text-align:center">Training • Consulting • Contracting</div><div style="text-align:center">3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL</div>

<div style="text-align:center">Digital Imaging • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android</div><div style="text-align:center">

<a href="https://twitter.com/alphapixel" target="_blank">@alphapixel</a> <a href="http://facebook.com/alphapixel" target="_blank">facebook.com/alphapixel</a> (775) 623-PIXL [7495]</div></div>
</div>