Opened 10 years ago

Last modified 9 years ago

#5605 closed defect

GeoTIFF TIFFTAG_GDAL_NODATA unavailable as a creation option for gdal_grid in 1.11.0 — at Version 3

Reported by: drf5n Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: default Version: 1.11.0
Severity: normal Keywords:
Cc:

Description (last modified by drf5n)

Per http://www.gdal.org/frmt_gtiff.html there should be a creation option of TIFFTAG_GDAL_NODATA available in the GDALGeoTIFF profile of the GTIFF driver.

Something like :

  gdal_grid  -of GTiff \
    -co PROFILE=GDALGeoTIFF -co TIFFTAG_GDAL_NODATA=-9999 -nodata -9999 \
    -a invdist:power=2.0:smoothing=1.0:radius1=100:radius2=100:nodata=-9999 \
    -txe 85000 89000 -tye 894000 890000\
    -outsize 400 400 -ot Float64 -l dem dem.vrt dem.tiff

...seems like it should make a geotiff with identified nodata.

I'm using a Mac with Kyngsbourne's distribution of "GDAL 1.11.0, released 2014/04/16"

I can workaround this with:

gdal_translate -a_nodata -9999 dem.tiff dem_nd.tiff

Change History (3)

comment:1 by drf5n, 10 years ago

Description: modified (diff)

comment:2 by drf5n, 10 years ago

Description: modified (diff)

comment:3 by drf5n, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.