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)
http://trac.osgeo.org/mapguide/attachment/wiki/MapGuideRfc51/MapToLayerCS.png
Hermann
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev