Opened 5 years ago

Closed 5 years ago

#4292 closed defect (fixed)

gdal_rasterize sometimes doesn't use -a_nodata correctly

Reported by: Alister Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: Algorithms Version: unspecified
Severity: normal Keywords:
Cc:

Description

By default geotiffs created by gdal_rasterize are Float64. Create a geotiff with gdal_rasterize, setting the nodata value to something large e.g. -a_nodata 2147483647 The nodata value will be set to what you specify, but any areas which should be nodata will actually be 2147483648.

Is there something I'm missing here?

I have gdal1.8.1 from osgeo4w, although I think this behaviour has been around for a while.

Change History (1)

comment:1 Changed 5 years ago by rouault

  • Component changed from Utilities to Algorithms
  • Milestone set to 1.9.0
  • Resolution set to fixed
  • Status changed from new to closed

r23250 /trunk/gdal/alg/gdalrasterize.cpp: rasterize: use double instead of float to avoid precision issue with big nodata values (#4292)

Note: See TracTickets for help on using tickets.