<div dir="auto">Maybe I don't understand your question, but in gdalinfo you have the four corners as lat-lon</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 3 May 2024, 21:46 Simon Eves via gdal-dev, <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So we are trying to optimize our raster import process, and particularly the steps to derive the final WGS84/4326 bounding box for a raster file or tile thereof.<div><br></div><div>Obviously in the general case, the transform is from integer pixel coordinate through the Affine Transformation matrix and then whatever OGRCoordinateTransformation is required to get to WGS84/4326, and perhaps a GCP-based mesh transformation too.</div><div><br></div><div>Currently we are deriving the bounding box by passing all pixels of the four edges of the file/tile through the full transform, except in the simple Affine-only case where we just transform the four corners.</div><div><br></div><div>Is there any shortcut API provided by GDAL or PROJ to allow the bounding box to be computed (or at least safely over-estimated) in the general case? I'm assuming that even a non-GCP  OGRCT could still be non-linear such that just transforming the corners is insufficient.</div><div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Simon</div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Simon Eves<div>Senior Rendering Engineer</div><div>+1 (415) 902-1996<br><a href="mailto:simon.eves@heavy.ai" target="_blank" rel="noreferrer">simon.eves@heavy.ai</a></div><div><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="http://www.heavy.ai" target="_blank" rel="noreferrer"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(17,85,204);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><span style="border:none;display:inline-block;overflow:hidden;width:156px;height:29px"><img src="https://lh4.googleusercontent.com/mzi9GaXA9r6isEqIx5nIYx0oQnpZtzBnF19Pu83MUBPDvp_rpcQXv55z-IZcQrybunkhKf6mXNJjIQinIbkHTigssDxIks_tXAaV1aDQzVT8FpE1wOn3MW0W_iiTnDjVZzMUNgs" width="156" height="29" style="margin-left:0px;margin-top:0px"></span></span></a></p></span></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank" rel="noreferrer">gdal-dev@lists.osgeo.org</a><br>
<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>
</blockquote></div>