[gdal-dev] FWTools 1.1.3 vs 2-0.6 gdal_translate

Dori izzybitsie at gmail.com
Fri Mar 6 18:46:38 EST 2009


Hi,

a while ago I wrote an application using gdal_translate to translate tags in
a geotiff image.  I used the following command: gdal_translate -a_srs $tagfn
$infn $outfn where $tagfn is the file used to modify the tags, $infn is the
input filename and $outfn is the output file name (with the tags required).
I am running the same program with FWTools 2-0.6 on a new host.
I noticed by running the gdalinfo that there are significant differences in
Coordinate System between the 2 versions.  I am no expert on the Geotiff
area so, I cannot comprehend what changes  done  to GDAL might be affecting
this translation.
Any idea on how to resolve this issue would be apreciated.

Thanks
Isidora
izzybitsie at gmail.com
*
With 1.1.3*:

*Driver: GTiff/GeoTIFF
Files: WO_SATIR_00_21Z.tif_denwxp1
Size is 7479, 3033
Coordinate System is:
GEOGCS["unnamed",
    DATUM["unknown",
        SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433]]
Origin = (-179.999899999999997,73.000000000000000)
Pixel Size = (0.048132577673166,-0.048139266469396)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
*

*With 2-0.6*

*Driver: GTiff/GeoTIFF
Files: WO_SATIR_00_21Z.tif
Size is 7479, 3033
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-179.999899999999997,73.000000000000000)
Pixel Size = (0.048132577673166,-0.048139266469396)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND*


*This is $tagfn:*
*Geotiff_Information:
   Version: 1
   Key_Revision: 1.0
   Tagged_Information:
      ModelTiepointTag (2,3):
         0                0                0
         -179.9999        73               0
      ModelPixelScaleTag (1,3):
         0.0481125224     0.0481125224     0
      End_Of_Tags.
   Keyed_Information:
      GTModelTypeGeoKey (Short,1): ModelTypeGeographic
      GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
      GTCitationGeoKey (Ascii,8): "unnamed"
      GeographicTypeGeoKey (Short,1): GCS_WGS_84
      GeogCitationGeoKey (Ascii,8): "unnamed"
      GeogAngularUnitsGeoKey (Short,1): Angular_Degree
      ProjectedCSTypeGeoKey (Short,1): User-Defined
      ProjectionGeoKey (Short,1): User-Defined
      ProjCoordTransGeoKey (Short,1): CT_Equirectangular
      ProjLinearUnitsGeoKey (Short,1): User-Defined
      ProjLinearUnitSizeGeoKey (Double,1): 0.0174532925
      ProjFalseEastingGeoKey (Double,1): 0
      ProjFalseNorthingGeoKey (Double,1): 0
      ProjCenterLongGeoKey (Double,1): 142
      ProjCenterLatGeoKey (Double,1): 30
      End_Of_Keys.
   End_Of_Geotiff.

Projection Method: CT_Equirectangular
   ProjCenterLatGeoKey: 30.000000 ( 30d 0' 0.00"N)
   ProjCenterLongGeoKey: 142.000000 (142d 0' 0.00"E)
   ProjFalseEastingGeoKey: 0.000000 m
   ProjFalseNorthingGeoKey: 0.000000 m
GCS: 4326/WGS 84
Datum: 6326/World Geodetic System 1984
Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31)
Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)

Corner Coordinates:
Upper Left    (   -180.000,     73.000)  (141d59'53.28"E,  0d 0' 2.36"N)
Lower Left    (   -180.000,    -73.022)  (141d59'53.28"E,  0d 0' 2.36"S)
Upper Right   (    179.978,     73.000)  (142d 0' 6.72"E,  0d 0' 2.36"N)
Lower Right   (    179.978,    -73.022)  (142d 0' 6.72"E,  0d 0' 2.36"S)
Center        (     -0.011,     -0.011)  (141d60' 0.00"E,  0d 0' 0.00"S)*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090306/058389cf/attachment-0001.html


More information about the gdal-dev mailing list