[gdal-dev] gdal_translate -a_srs

Greg Coats gregcoats at mac.com
Sat Jul 3 09:53:52 EDT 2010


gdal_translate -a_srs provides for the output file to be in a different projection than the input file.
What is the syntax for telling gdal_translate -a_srs to use the projection shown by gdalinfo to be used in the GeoTiff below, which is NAD 1983, UTM Zone 18N?
Greg

$ gdalinfo dcua_reduce7.tif 
Driver: GTiff/GeoTIFF
Files: /Users/gregcoats/gis/dcua_reduce4_04_8GB/Mosaics/dcua_reduce7.tif
Size is 2032, 1524
Coordinate System is:
PROJCS["NAD83 / UTM zone 18N",
   GEOGCS["NAD83",
       DATUM["North_American_Datum_1983",
           SPHEROID["GRS 1980",6378137,298.2572221010002,
               AUTHORITY["EPSG","7019"]],
           AUTHORITY["EPSG","6269"]],
       PRIMEM["Greenwich",0],
       UNIT["degree",0.0174532925199433],
       AUTHORITY["EPSG","4269"]],
   PROJECTION["Transverse_Mercator"],
   PARAMETER["latitude_of_origin",0],
   PARAMETER["central_meridian",-75],
   PARAMETER["scale_factor",0.9996],
   PARAMETER["false_easting",500000],
   PARAMETER["false_northing",0],
   UNIT["metre",1,
       AUTHORITY["EPSG","9001"]],
   AUTHORITY["EPSG","26918"]]
Origin = (271500.000000000000000,4335000.000000000000000)
Pixel Size = (38.385826771653548,-38.385826771653548)
Metadata:
 TIFFTAG_XRESOLUTION=100
 TIFFTAG_YRESOLUTION=100
 TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
 AREA_OR_POINT=Area
Image Structure Metadata:
 INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (  271500.000, 4335000.000) ( 77d38'37.06"W, 39d 8'3.20"N)
Lower Left  (  271500.000, 4276500.000) ( 77d37'27.05"W, 38d36'27.38"N)
Upper Right (  349500.000, 4335000.000) ( 76d44'30.12"W, 39d 9'4.32"N)
Lower Right (  349500.000, 4276500.000) ( 76d43'43.95"W, 38d37'27.36"N)
Center      (  310500.000, 4305750.000) ( 77d11'4.69"W, 38d52'48.70"N)
Band 1 Block=128x128 Type=Byte, ColorInterp=Red
Band 2 Block=128x128 Type=Byte, ColorInterp=Green
Band 3 Block=128x128 Type=Byte, ColorInterp=Blue


More information about the gdal-dev mailing list