<div dir="ltr">Hi Elmir,<div><br></div><div>RPCs are just an approximation to the underlying camera model via rational polynomials; so just a pair of functions that go from XYZ world coordinates to line/sample in the image.  To make an orthophoto, you first figure out where the orthophoto is located on the earth, and at each projected xy coordinate, you look up your height at that coordinate in the DEM and project back to image space using the camera model (RPCs in this case).  </div><div><br></div><div>GDAL can do this for you, as you know.  You can feed GDAL DEM to use via the RPC_DEM option to gdalwarp; you can find some examples at <a href="http://fwarmerdam.blogspot.com/2013/09/exploring-rpcs.html">http://fwarmerdam.blogspot.com/2013/09/exploring-rpcs.html</a> .  </div><div><br></div><div>One thing that is easy to forget about is handling the verical datum correctly.  Often times, DEM heights are relative to the geoid, but you usually need the heights relative to the ellipsoid when you make your orthophoto.  GDAL can do the conversion for you if you specify the vertical datum right, although I usually mess it up!  </div><div><br></div><div>Hope that helps,</div><div>Patrick</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 15, 2020 at 1:49 PM elmir <<a href="mailto:elmirgeo@protonmail.com">elmirgeo@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Patrick,<br></div><div>Thank you very much for your idea. So, it is using the RPC.<br></div><div>Could you little explain me what the RPC does with DEM to orthorectify the image?<br></div><div>Thanks a lot.<br></div><div>Elmir</div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Wednesday, January 15, 2020 11:13 AM, Patrick Young <<a href="mailto:patrick.mckendree.young@gmail.com" target="_blank">patrick.mckendree.young@gmail.com</a>> wrote:<br></div><div> <br></div><blockquote type="cite"><div dir="auto"><div>Hi Elmir,<br></div><div dir="auto"><br></div><div dir="auto">When you run gdalinfo against the tif, it should report what files it's using to generate the summary info, including rpcs.  I believe gdal actually checks for rpcs in a few places, the XML file, maybe the IMD file, and also the RPB file.<br></div><div dir="auto"><br></div><div dir="auto">You can figure it out by moving these auxiliary files elsewhere and rerunning gdalinfo, seeing what changes.<br></div><div dir="auto"><br></div><div dir="auto">Hope that helps! <br></div><div dir="auto">Patrick<br></div><div dir="auto"><br></div></div><div><br></div><div class="gmail_quote"><div dir="ltr">On Tue, Jan 14, 2020, 4:55 PM elmir <<a href="mailto:elmirgeo@protonmail.com" target="_blank">elmirgeo@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello GDAL Developer,<br></div><div><br></div><div>I was trying to orthorectify World View 4 raster image using the gdalwarp.<br></div><div>I used '-rpc' with the input of DEM file.<br></div><div>However, I am wondering whether this method of orthorectification is making use of the ".RBP" file data available with the World View image OR is it just warping with the input DEM file without reading the ".RPB" file contents?<br></div><div>How can I make it read the ".RPB" file during gdalwarp/orthorectification?<br></div><div><br></div><div>Thank you for your support.<br></div><div><br></div><div>Best<br></div><div>Elmir<br></div><div>_______________________________________________<br></div><div> gdal-dev mailing list<br></div><div> <a href="mailto:gdal-dev@lists.osgeo.org" rel="noreferrer" target="_blank">gdal-dev@lists.osgeo.org</a><br></div><div> <a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div></blockquote></div></blockquote><div><br></div></blockquote></div>