mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
6 lines
4.8 KiB
HTML
6 lines
4.8 KiB
HTML
<html><head>
|
|
<style type="text/css">
|
|
dl { border: 3px double #ccc; padding: 0.5em; } dt { float: left; clear: left; text-align: left; font-weight: bold; color: green; } dt:after { content: ":"; } dd { margin: 0 0 0 220px; padding: 0 0 0.5em 0; }
|
|
</style>
|
|
</head><body><h1>Rasterization</h1><h2>Brief Description</h2>Rasterize a vector dataset.<h2>Tags</h2>Vector Data Manipulation<h2>Long Description</h2>This application allows reprojecting and rasterizing 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.<h2>Parameters</h2><ul><li><b>[param] -in</b> <string> The input vector dataset to be rasterized. Mandatory: True. Default Value: ""</li><li><b>[param] -out</b> <string> An output image containing the rasterized vector dataset. Mandatory: True. Default Value: ""</li><li><b>[param] -im</b> <string> A reference image from which to import output grid and projection reference system information.. Mandatory: False. Default Value: ""</li><li><b>[param] -szx</b> <int32> Output size along x axis (useless if support image is given). Mandatory: False. Default Value: "0"</li><li><b>[param] -szy</b> <int32> Output size along y axis (useless if support image is given). Mandatory: False. Default Value: "0"</li><li><b>[param] -epsg</b> <int32> EPSG code for the output projection reference system (EPSG 4326 for WGS84, 32631 for UTM31N...,useless if support image is given). Mandatory: False. Default Value: "0"</li><li><b>[param] -orx</b> <float> Output upper-left corner x coordinate (useless if support image is given). Mandatory: False. Default Value: "0.0"</li><li><b>[param] -ory</b> <float> Output upper-left corner y coordinate (useless if support image is given). Mandatory: False. Default Value: "0.0"</li><li><b>[param] -spx</b> <float> Spacing (ground sampling distance) along x axis (useless if support image is given). Mandatory: False. Default Value: "0.0"</li><li><b>[param] -spy</b> <float> Spacing (ground sampling distance) along y axis (useless if support image is given). Mandatory: False. Default Value: "0.0"</li><li><b>[param] -background</b> <float> Default value for pixels not belonging to any geometry. Mandatory: True. Default Value: "0"</li><li><b>[param] -ram</b> <int32> Available memory for processing (in MB). Mandatory: False. Default Value: "128"</li><li><b>[param] -inxml</b> <string> Load otb application from xml file. Mandatory: False. Default Value: ""</li><li><b>[param] -outxml</b> <string> Save otb application to xml file. Mandatory: False. Default Value: ""</li><b>[choice] -mode</b> Choice of rasterization modes binary,attribute. Mandatory: True. Default Value: "binary"<ul><li><b>[group] -binary</b></li><ul><li><b>[param] -mode.binary.foreground</b> <float> Value for pixels inside a geometry. Mandatory: True. Default Value: "255"</li></ul><li><b>[group] -attribute</b></li><ul><li><b>[param] -mode.attribute.field</b> <string> Name of the attribute field to burn. Mandatory: True. Default Value: "DN"</li></ul></ul></ul><h2>Limitations</h2>None<h2>Authors</h2>OTB-Team<h2>See Also</h2>For now, support of input dataset with multiple layers having different projection reference system is limited.<h2>Example of use</h2><ul><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">in: qb_RoadExtract_classification.shp</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">out: rasterImage.tif</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">spx: 1.</p></li><li><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">spy: 1.</p></li></ul></body></html> |