RE: [gdal-dev] gdalinfo: corner coords in other projection

2011-05-25 Thread Lefman, Jonathan ERDC-TEC-VA
Hermann,

Thank you for the response.  I think the way that I phrased the question was 
not the best.  I am actually searching for a way to translate the coordinates 
of a gtiff from UTM coordinates to decimal degree coordinates.

Thanks,

Jon

--

Message: 5
Date: Tue, 24 May 2011 19:00:01 +0200
From: Hermann Peifer pei...@gmx.eu
Subject: [gdal-dev] Re: gdalinfo: corner coords in other projection
To: gdal-dev@lists.osgeo.org
Message-ID: irgo6a$tte$1...@dough.gmane.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 24/05/2011 18:15, Lefman, Jonathan ERDC-TEC-VA wrote:
 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?


Couldn't you just simply use gdalinfo's output, see below?

Hermann

$ gdalinfo highway_number_3035.tif
Driver: GTiff/GeoTIFF
Files: highway_number_3035.tif
Size is 10384, 7031
Coordinate System is:
PROJCS[ETRS89 / ETRS-LAEA,
 GEOGCS[ETRS89,
 DATUM[European_Terrestrial_Reference_System_1989,
 SPHEROID[GRS 1980,6378137,298.2572221010002,
 AUTHORITY[EPSG,7019]],
 AUTHORITY[EPSG,6258]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4258]],
 PROJECTION[Lambert_Azimuthal_Equal_Area],
 PARAMETER[latitude_of_center,52],
 PARAMETER[longitude_of_center,10],
 PARAMETER[false_easting,4321000],
 PARAMETER[false_northing,321],
 UNIT[metre,1,
 AUTHORITY[EPSG,9001]],
 AUTHORITY[EPSG,3035]]
Origin = (270937.427360458299518,5929526.137714201584458)
Pixel Size = (701.323508343892058,-701.323508343892058)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  270937.427, 5929526.138) ( 67d52'39.91W, 53d13'23.14N)
Lower Left  (  270937.427,  998520.551) ( 29d49'49.65W, 22d27'34.90N)
Upper Right ( 7553480.738, 5929526.138) ( 81d 0' 6.31E, 59d42'39.88N)
Lower Right ( 7553480.738,  998520.551) ( 42d23'31.15E, 25d49'31.87N)
Center  ( 3912209.083, 3464023.344) (  3d44'23.41E, 54d 7'25.38N)



smime.p7s
Description: S/MIME cryptographic signature
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] gdalinfo: corner coords in other projection

2011-05-24 Thread Lefman, Jonathan ERDC-TEC-VA
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?

Thanks,

Jon


--

Jonathan Lefman, PhD
Geospatial Research and Engineering Division / Army Geospatial Center
Engineer
Research and Development Center U.S. Army Corps of Engineers
jonathan.lef...@usace.army.mil
703-428-8039


___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] gdalinfo: corner coords in other projection

2011-05-24 Thread Eli Adam
Jon,

   gdaltransform does some of this.  It looks to do 4 corners you would 
need to do it four times or list the coordinate pairs on four lines and get 
four lines of output back.  There might be a clever way to take the output of 
gdalinfo as input into gdaltransform saving you some typing and potential 
transposing.  More here  http://gdal.org/gdaltransform.html

HTH, Eli

 On 5/24/2011 at 9:15 AM, in message
ff46ee5c24ad134c86774e7498509c3d014a8...@erd-ml1itl.erd.ds.usace.army.mil,
Lefman, Jonathan ERDC-TEC-VA jonathan.lef...@usace.army.mil wrote:
 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?
 
 Thanks,
 
 Jon
 
 
 --
 
 Jonathan Lefman, PhD
 Geospatial Research and Engineering Division / Army Geospatial Center
 Engineer
 Research and Development Center U.S. Army Corps of Engineers
 jonathan.lef...@usace.army.mil 
 703-428-8039
 
 
 ___
 gdal-dev mailing list
 gdal-dev@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/gdal-dev

___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev