[gdal-dev] Projection error messages when warping from worldwide to local projection

thomas bonfort thomas.bonfort at gmail.com
Fri Nov 9 03:47:17 PST 2018


Hi,
I'm trying to warp an extract of a epsg:3857 tiled layer to a local
transverse mercator projection.

osm.xml:

<GDAL_WMS>
<Service name="TMS">
<ServerUrl>https://a.tile.openstreetmap.org/${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:3857</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<MaxConnections>5</MaxConnections>
<Cache/>
</GDAL_WMS>

I then run an extract over a 200 meter square:

gdalwarp -r bilinear -t_srs "+proj=tmerc +lon_0=1.45 +ellps=WGS84 +units=m"
-tr 0.5 0.5 -te -100 4826000 100 4826200  osm.xml osm.tif
Creating output file that is 400P x 400L.
Processing osm.xml [1/1] : 0ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: latitude or longitude exceeded limits
ERROR 1: Reprojection failed, err = -14, further errors will be suppressed
on the transform object.
...10...20...30...40...50...60...70...80...90...100 - done.

The generated file at the end is correct, however is there a way to get rid
of these errors/warnings?

Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20181109/e7de6e64/attachment.html>


More information about the gdal-dev mailing list