<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In reference to this older thread:</div><div style="font-size:12.8px"><a href="https://lists.osgeo.org/pipermail/gdal-dev/2012-April/032343.html" target="_blank">https://lists.osgeo.org/pipermail/gdal-dev/2012-April/032343.html</a><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Is there a way to consider NoData pixels in the RPC_DEM, and preventing them from being used for locating the output extents?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Example command:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">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</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Benjamin</div></div>