<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi All,<div><br></div><div>My apologies if this has been asked previously. I’m relatively new to GDAL and recently was able to get it building with PDFium support using GDAL 3.11 for iOS. I’m the developer of a mapping application which allows users to import GeoPDFs and GeoTIFFs (among many other things). I was able to back port the GetExtent code that is going in to 3.12 and extract the extent from a GeoPDF, which was very exciting!</div><div><br></div><div>However, what I’m ultimately trying to do is take a GeoPDF/GeoTIFF and place it on the map. I do this now with KMZ GroundOverlays by bringing in the four corner points and transforming the image to fit those points. I’m guessing the flow I’ll use is something like (and assuming WGS84 just to make things easier):</div><div><br></div><div>- Call GDALGetExtentWGS84LongLat to get the envelope</div><div>- Call GDALGetGeoTransform to get the geotransfmrm</div><div>- Calculate the four corners to get the bounding box:</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>- LL: (env.MinX, env.MinY)</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>- UL: <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">(env.MaxX, env.MinY)</span></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>- LR: <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">(env.MinX, env.MaxY)</span></div><div><span class="Apple-tab-span" style="white-space:pre">   </span>- UR: <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">(env.MaxX, env.MaxY)</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">- Apply the transformation matrix from the GeoTransform</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><font color="#000000">Does this seem roughly correct? I know there’s GDALWarp but I don’t know enough about it to know if it would help handle this situation.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks so much!</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Cory</font></div><div><br></div><div><br></div></body></html>