[gdal-dev] gdalwarp RPC_DEM NoData value

Benjamin Deschamps bdeschamps.home at gmail.com
Mon Jun 27 08:42:23 PDT 2016


Hi,

In reference to this older thread:
https://lists.osgeo.org/pipermail/gdal-dev/2012-April/032343.html

I encountered the same issue; I'm fairly certain that the issue is due to
invalid RPC_DEM values, in my case, NoData values of -32768. Setting the
NoData value in the GeoTiff has no effect either, gdalwarp still attempts
to apply the RPC model to these points. If I replace all these values with
"0", the RPC orthorectification is successful, probably because zero is a
more sensible elevation.

Is there a way to consider NoData pixels in the RPC_DEM, and preventing
them from being used for locating the output extents?

Example command:

gdalwarp -r cubic -rpc -overwrite -to "RPC_DEM=dem.tif" -tr 30 30 -t_srs
"+proj=aea +lat_1=44.75 +lat_2=55.75 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0
+ellps=WGS84 +datum=WGS84 +units=m +no_defs" image_with_rpc_metadata.tif
ortho_output.tif


Thanks,

Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160627/456848d6/attachment.html>


More information about the gdal-dev mailing list