[gdal-dev] Get bounds of object before reprojection?

Even Rouault even.rouault at spatialys.com
Tue Jul 13 14:27:39 PDT 2021


Craig,

you can for example use GDALAutoCreateWarpedVRT() to create a in-memory 
VRT (without reprojecting any pixel data) in the target projection and 
query its bounds

Even

Le 13/07/2021 à 23:21, Craig Delancy a écrit :
>
> Using the c++ API, how would I go about getting the bounds of a raster 
> dataset, reprojected into another projection, without actually 
> performing the reprojection first? Is there a way to do this, or do I 
> have to do the reprojection to get this info?
>
> I was thinking I could get the corners and reproject them as points, 
> but I think this could give an incorrect answer depending on the 
> target projection.
>
> Thank you.
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210713/d1535c1a/attachment.html>


More information about the gdal-dev mailing list