I'm trying to convert a polygon to raster. This error pops up:
ERROR 6: At least one of -3d, -burn or -a required.
What am I missing?
The parameters for the
gdal_rasterize are described in the following link:
The parameters in your error are described as follows from the link:
Identifies an attribute field on the features to be used for a burn-in value. The value will be burned into all output bands.
A fixed value to burn into a band for all objects. A list of -burn options can be supplied, one per band being written to.
Indicates that a burn value should be extracted from the "Z" values of the feature. As of now, only points and lines are drawn in 3D.
Essentially, the tool requires a value from the polygon layer to be burned into the raster. The
-a parameter allows you to use values from an attribute field;
-burn parameter allows you to use a single value instead of values in a field;
-3d parameter is currently only for points and lines so you can ignore this one.