[gdal-dev] Re: gdalinfo: corner coords in other projection
peifer at gmx.eu
Fri May 27 08:49:57 EDT 2011
On 26/05/2011 09:21, Jukka Rahkonen wrote:
> Lefman, Jonathan ERDC-TEC-VA<Jonathan.Lefman<at> usace.army.mil> writes:
>> Hi all,
>> Is there an executable utility that takes the corner coordinates from a gtiff
>> and translates them into another projection system? For example, I have a
>> gtiff in UTM and I want to translate the coordinates of the bounding box (or
>> corners) into WGS84. Or is there a way to do this non-programmatically using
>> a combination of executable utilities?
> The programmers should stop reading now, this is a farmer's son recipe for doing
> what you want with something that already exists.
> - Use gdaltindex for sending the bounding box of your image into a shapefile
> - Use ogr2ogr with s_srs and t_srs and reproject the shapefile into the system
> you are interested in.
> - Use ogrinfo for listing the extents of the reprojected shapefile.
Just to add that "the extents of the reprojected shapefile" might well
be what the OP wanted to know, but it is not what he asked for: "the
corner coordinates from a gtiff translated into another projection system"
Here a picture from osgeo.org/mapguide which shows the difference
(although the picture was made to illustrate something different)
More information about the gdal-dev