<DIV id=RTEContent> <DIV>Hi all,</DIV> <DIV>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.</DIV> <DIV> </DIV> <DIV>gdalinfo demdata.dem:</DIV> <DIV>Driver: USGSDEM/USGS Optional ASCII DEM (and CDED)<BR>Size is 1201, 1201<BR>Coordinate System is:<BR>GEOGCS["WGS 84",<BR> DATUM["WGS_1984",<BR> SPHEROID["WGS 84",6378137,298.257223563,<BR> AUTHORITY["EPSG","7030"]],<BR> TOWGS84[0,0,0,0,0,0,0],<BR> AUTHORITY["EPSG","6326"]],<BR> PRIMEM["Greenwich",0,<BR> AUTHORITY["EPSG","8901"]],<BR> UNIT["degree",0.0174532925199433,<BR>
AUTHORITY["EPSG","9108"]],<BR> AXIS["Lat",NORTH],<BR> AXIS["Long",EAST],<BR> AUTHORITY["EPSG","4326"]]<BR>Origin = (110.999583,31.000417)<BR>Pixel Size = (0.00083333,-0.00083333)<BR>Metadata:<BR> AREA_OR_POINT=Point<BR>Corner Coordinates:<BR>Upper Left ( 110.9995833, 31.0004167) (110d59'58.50"E, 31d 0'1.50"N)<BR>Lower Left ( 110.9995833, 29.9995833) (110d59'58.50"E, 29d59'58.50"N)<BR>Upper Right ( 112.0004167, 31.0004167) (112d 0'1.50"E, 31d 0'1.50"N)<BR>Lower Right ( 112.0004167, 29.9995833) (112d 0'1.50"E, 29d59'58.50"N)<BR>Center ( 111.5000000, 30.5000000) (111d30'0.00"E, 30d30'0.00"N)<BR>Band 1 Block=1201x1201 Type=Int16, ColorInterp=Undefined<BR> NoData Value=-32767<BR> Unit Type: m</DIV> <DIV><BR>gdalinfo tiffile.tif:</DIV> <DIV><BR>Driver: GTiff/GeoTIFF<BR>Size is 1201, 1201<BR>Coordinate System is:<BR>GEOGCS["WGS
84",<BR> DATUM["WGS_1984",<BR> SPHEROID["WGS 84",6378137,298.2572235630016,<BR> AUTHORITY["EPSG","7030"]],<BR> AUTHORITY["EPSG","6326"]],<BR> PRIMEM["Greenwich",0],<BR> UNIT["arc-second",4.848136811095357e-006],<BR> AUTHORITY["EPSG","4326"]]<BR>Origin = (399598.500000,111601.500000)<BR>Pixel Size = (3.00000000,-3.00000000)<BR>Metadata:<BR> AREA_OR_POINT=Area<BR>Corner Coordinates:<BR>Upper Left ( 399598.500, 111601.500) (399598d30'0.00"E,111601d30'0.00"N)<BR>Lower Left ( 399598.500, 107998.500) (399598d30'0.00"E,107998d30'0.00"N)<BR>Upper Right ( 403201.500, 111601.500) (403201d30'0.00"E,111601d30'0.00"N)<BR>Lower Right ( 403201.500, 107998.500)
(403201d30'0.00"E,107998d30'0.00"N)<BR>Center ( 401400.000, 109800.000) (401400d 0'0.00"E,109800d 0'0.00"N)<BR>Band 1 Block=1201x1 Type=Byte, ColorInterp=Red<BR>Band 2 Block=1201x1 Type=Byte, ColorInterp=Green<BR>Band 3 Block=1201x1 Type=Byte, ColorInterp=Blue<BR></DIV> <DIV> </DIV> <DIV>My question is that how can I use gdal_translate to generate a 24bit RGB .tif file from the DEM in the same area.</DIV> <DIV> </DIV> <DIV>Thanks for your help!</DIV> <DIV> </DIV> <DIV>Jimmy<BR></DIV></DIV><p>
                <hr size=1> <B>Yahoo! Personals</B><BR>
Let fate take it's course directly to your email.<br>
See who's waiting for you <a href="http://us.rd.yahoo.com/evt=36106/*http://personals.yahoo.com
">Yahoo! Personals</a>