[gdal-dev] gdal.AutoCreateWarpedVRT returning different results than osr.CoordinateTransformation

Frank Warmerdam warmerdam at pobox.com
Sat May 5 17:15:57 EDT 2012


On 12-05-05 01:19 PM, Billy Newman wrote:
> Can you think of a way that I can get the same metadata as gdalwarp would give
> for a warped image without actually warping the image?

Billy,

Just open the .vrt and read the corners (that is compute them from the
size and geotransform).  There will not be any actual warping done just
to get this metadata from the .vrt but you will get the result
representative of the reprojected image.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the gdal-dev mailing list