Rasterization
Brief Description
Rasterize a vector dataset.
Tags
Vector Data Manipulation
Long Description
This application allows reprojecting and rasterize a vector dataset. The grid of the rasterized output can be set by using a reference image, or by setting all parmeters (origin, size, spacing) by hand. In the latter case, at least the spacing (ground sampling distance) is needed (other parameters are computed automatically). The rasterized output can also be in a different projection reference system than the input dataset.
There are two rasterize mode available in the application. The first is the binary mode: it allows rendering all pixels belonging to a geometry of the input dataset in the foreground color, while rendering the other in background color. The second one allows rendering pixels belonging to a geometry woth respect to an attribute of this geometry. The field of the attribute to render can be set by the user. In the second mode, the background value is still used for unassociated pixels.
Parameters
Input vector dataset (in): The input vector dataset to be rasterized
Output image (out): An output image containing the rasterized vector dataset
Input reference image (im): A reference image from which to import output grid and projection reference system information.
Output size x (szx): Output size along x axis (useless if support image is given)
Output size y (szy): Output size along y axis (useless if support image is given)
Output EPSG code (epsg): EPSG code for the output projection reference system (EPSG 4326 for WGS84, 32631 for UTM31N...,useless if support image is given)
Output Upper-left x (orx): Output upper-left corner x coordinate (useless if support image is given)
Output Upper-left y (ory): Output upper-left corner y coordinate (useless if support image is given)
Spacing (GSD) x (spx): Spacing (ground sampling distance) along x axis (useless if support image is given)
Spacing (GSD) y (spy): Spacing (ground sampling distance) along y axis (useless if support image is given)
Background value (background): Default value for pixels not belonging to any geometry
Rasterization mode (mode): Choice of rasterization modes
Binary mode (binary): In this mode, pixels within a geometry will hold the user-defined foreground value
Foreground value (mode.binary.foreground): Value for pixels inside a geometry
Attribute burning mode (attribute): In this mode, pixels within a geometry will hold the value of a user-defined field extracted from this geometry.
The attribute field to burn (mode.attribute.field): Name of the attribute field to burn
Available RAM (Mb) (ram): Available memory for processing (in MB)
Load otb application from xml file (inxml): Load otb application from xml file
Save otb application to xml file (outxml): Save otb application to xml file
Limitations
None
Authors
OTB-Team
See also
For now, support of input dataset with multiple layers having different projection reference system is limited.
Example of use
in: qb_RoadExtract_classification.shp
out: rasterImage.tif
spx: 1.
spy: 1.
otbcli_Rasterization -in qb_RoadExtract_classification.shp -out rasterImage.tif -spx 1. -spy 1.