[Gdal-dev] Problem using gdal_translate

Jimmy Wang nekewong at yahoo.com
Tue Dec 6 04:26:47 EST 2005


  Hi all,
  I use global mapper to generate a 24bit RGB .tif file from a USGS DEM demdata.dem, but I found that the .tif file has a odd coordinate.
   
  gdalinfo  demdata.dem:
  Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)
Size is 1201, 1201
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        TOWGS84[0,0,0,0,0,0,0],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
        AUTHORITY["EPSG","9108"]],
    AXIS["Lat",NORTH],
    AXIS["Long",EAST],
    AUTHORITY["EPSG","4326"]]
Origin = (110.999583,31.000417)
Pixel Size = (0.00083333,-0.00083333)
Metadata:
  AREA_OR_POINT=Point
Corner Coordinates:
Upper Left  ( 110.9995833,  31.0004167) (110d59'58.50"E, 31d 0'1.50"N)
Lower Left  ( 110.9995833,  29.9995833) (110d59'58.50"E, 29d59'58.50"N)
Upper Right ( 112.0004167,  31.0004167) (112d 0'1.50"E, 31d 0'1.50"N)
Lower Right ( 112.0004167,  29.9995833) (112d 0'1.50"E, 29d59'58.50"N)
Center      ( 111.5000000,  30.5000000) (111d30'0.00"E, 30d30'0.00"N)
Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined
  NoData Value=-32767
  Unit Type: m
  
gdalinfo tiffile.tif:
  
Driver: GTiff/GeoTIFF
Size is 1201, 1201
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235630016,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["arc-second",4.848136811095357e-006],
    AUTHORITY["EPSG","4326"]]
Origin = (399598.500000,111601.500000)
Pixel Size = (3.00000000,-3.00000000)
Metadata:
  AREA_OR_POINT=Area
Corner Coordinates:
Upper Left  (  399598.500,  111601.500) (399598d30'0.00"E,111601d30'0.00"N)
Lower Left  (  399598.500,  107998.500) (399598d30'0.00"E,107998d30'0.00"N)
Upper Right (  403201.500,  111601.500) (403201d30'0.00"E,111601d30'0.00"N)
Lower Right (  403201.500,  107998.500) (403201d30'0.00"E,107998d30'0.00"N)
Center      (  401400.000,  109800.000) (401400d 0'0.00"E,109800d 0'0.00"N)
Band 1 Block=1201x1 Type=Byte, ColorInterp=Red
Band 2 Block=1201x1 Type=Byte, ColorInterp=Green
Band 3 Block=1201x1 Type=Byte, ColorInterp=Blue

   
  My question is that how can I use gdal_translate to generate a 24bit RGB .tif file from the DEM in the same area.
   
  Thanks for your help!
   
  Jimmy



		
---------------------------------
 Yahoo! Personals
 Let fate take it's course directly to your email.
 See who's waiting for you Yahoo! Personals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20051206/8cef1be0/attachment.html


More information about the Gdal-dev mailing list