[gdal-dev] gdal_contour and "nodata" oceans

Maxime Guillaud maxime at mguillaud.net
Wed Feb 24 02:26:42 EST 2010


On Tue, 23 Feb 2010 23:00:31 +0100 Even Rouault
<even.rouault at mines-paris.org> wrote:
> you can try the following tricks to remap your nodata value from
> -32768 (this is type typical value for most DEM) to 0 :
> 
> 1) gdalwarp -srcnodata -32768 -dstnodata 0 src_dem.tif out_dem.tif

Thanks, that helped. I had to run gdalwarp a second time on the output
with "-scrnodata -32768 -dstnodata -32768" to reset the value of nodata
in the GeoTIFF metadata, otherwise gdal_contour is honoring altitude
zero as nodata.

Maxime


More information about the gdal-dev mailing list