[gdal-dev] no date value by gdal_merge from DEM to GTiff ?

Bruce Liang bruce.h.liang at gmail.com
Sat Dec 5 15:26:09 EST 2009


Hello, guys,

I have several DEMs from USGS GTOPO30, and by merging them with
gdal_merge.py, it seems the no data value can not be assigned?

the command is like:
gdal_merge.py  -of GTiff  -o Europe.tiff -n -9999 -co "PROFILE=GeoTIFF"  -co
"INTERLEAVE=PIXEL"  -co "COMPRESS=NONE"  -co "TILED=YES"   *.DEM

and to check it with "gdalinfo -stats Europe.tiff ",  i got:

Band 1 Block=256x256 Type=UInt16, ColorInterp=Gray
  Minimum=1.000, Maximum=65535.000, Mean=30979.953, StdDev=27318.154
  Metadata:
    STATISTICS_MINIMUM=1
    STATISTICS_MAXIMUM=65535
    STATISTICS_MEAN=30979.952856589
    STATISTICS_STDDEV=27318.154016739

seems the no data value is now 65535 ? how to assign it correctly?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20091205/f36c6dfc/attachment.html


More information about the gdal-dev mailing list