Opened 11 years ago

Last modified 11 years ago

#5218 closed defect

GDALRasterizeLayers with ALL_TOUCHED and ATTRIBUTE options — at Initial Version

Reported by: royeral Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.10.0
Severity: normal Keywords:
Cc:

Description

I have a river layer and a lake layer (shapefile) that I rasterize with GDALRasterizeLayers to GeoTIFF. With the ALL_TOUCHED option, all the pixels of the layers are rasterize. With the ALL_TOUCHED and ATTRIBUTE options, lots of pixels are missing.

I'm using GDAL version 1.10 in C++.

char** options = nullptr;

options = CSLSetNameValue(options, "ALL_TOUCHED", "TRUE");
options = CSLSetNameValue(options, "ATTRIBUTE", "ID");
	
GDALRasterizeLayers(dst_dataset, 1, &band_list[0], 2, (OGRLayerH*)&layers[0], NULL, NULL, NULL, options, NULL, NULL);

CSLDestroy(options);

(sorry for my English, I'm french canadian)

Change History (0)

Note: See TracTickets for help on using tickets.