[gdal-dev] gdal_rasterize use SHP FID as burn attribute

Peter Rankor peter.rankor at googlemail.com
Mon Feb 8 10:54:07 EST 2010


List,

I need to rasterize a polygon layer coming from a SHP file. However, the
values in the outputraster need to be the FID of the corresponding polygon.

My command:
gdal_rasterize -a FID -l FECS FECS.shp flattenedRaster.tif

I get:
Failed to find field FID on layer FECS, skipping.

And the program aborts.

Any idea how to use a FID as rasterization attribute?

Regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100208/d3640144/attachment.html


More information about the gdal-dev mailing list