Opened 11 years ago

Last modified 11 years ago

#5218 closed defect

GDALRasterizeLayers with ALL_TOUCHED and ATTRIBUTE options — at Version 2

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

Description (last modified by royeral)

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++.

https://skydrive.live.com/redir?resid=7ECAD65B80CFE693!18543

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 (2)

comment:1 by royeral, 11 years ago

Component: defaultGDAL_Raster

comment:2 by royeral, 11 years ago

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