Ticket #4292 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

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

Changed 19 months ago by rouault

  • status changed from new to closed
  • resolution set to fixed
  • component changed from Utilities to Algorithms
  • milestone set to 1.9.0

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.