You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-f, --of, --format, --output-format <OUTPUT-FORMAT> Output format
38
38
--co, --creation-option <KEY>=<VALUE> Creation option [may be repeated]
39
-
-b, --band <BAND> The band(s) to burn values into. [may be repeated]
39
+
-b, --band <BAND> The band(s) to burn values into [may be repeated]
40
40
--invert Invert the rasterization
41
41
--all-touched Enables the ALL_TOUCHED rasterization option
42
42
--burn <BURN> Burn value [may be repeated]
43
43
-a, --attribute-name <ATTRIBUTE-NAME> Attribute name
44
-
--3d Indicates that a burn value should be extracted from the Z values of the feature.
44
+
--3d Indicates that a burn value should be extracted from the Z values of the feature
45
45
--add Add to existing raster
46
46
-l, --layer, --layer-name <LAYER-NAME> Layer name
47
47
Mutually exclusive with --sql
@@ -51,16 +51,16 @@ Synopsis
51
51
--dialect <DIALECT> SQL dialect
52
52
--nodata <NODATA> Assign a specified nodata value to output bands
53
53
--init <INIT> Pre-initialize output bands with specified value [may be repeated]
54
-
--srs <SRS> Override the projection for the output file
54
+
--crs <CRS> Override the projection for the output file
55
55
--transformer-option <NAME>=<VALUE> Set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2 [may be repeated]
56
-
--target-extent <xmin><ymin><xmax><ymax> Set the target georeferenced extent [4 values]
57
-
--target-resolution <xres><yres> Set the target resolution [2 values]
58
-
Mutually exclusive with --target-size
59
-
--tap(target aligned pixels) Align the coordinates of the extent of the output file to the values of the target-resolution
60
-
--target-size <xsize><ysize> Set the target size in pixels and lines [2 values]
61
-
Mutually exclusive with --target-resolution
56
+
--extent <xmin>,<ymin>,<xmax>,<ymax> Set the target georeferenced extent [4 values]
57
+
--resolution <xres>,<yres> Set the target resolution [2 values]
58
+
Mutually exclusive with --size
59
+
--target-aligned-pixels (target aligned pixels) Align the coordinates of the extent of the output file to the values of the resolution
60
+
--size <xsize>,<ysize> Set the target size in pixels and lines [2 values]
61
+
Mutually exclusive with --resolution
62
62
--ot, --datatype, --output-data-type <OUTPUT-DATA-TYPE> Output data type. OUTPUT-DATA-TYPE=Byte|Int8|UInt16|Int16|UInt32|Int32|UInt64|Int64|CInt16|CInt32|Float32|Float64|CFloat32|CFloat64
63
-
--optimization <OPTIMIZATION> Force the algorithm used (results are identical).. OPTIMIZATION=AUTO|RASTER|VECTOR (default: AUTO)
63
+
--optimization <OPTIMIZATION> Force the algorithm used (results are identical). OPTIMIZATION=AUTO|RASTER|VECTOR (default: AUTO)
64
64
65
65
Advanced Options:
66
66
--oo, --open-option <KEY=VALUE> Open options [may be repeated]
@@ -69,6 +69,7 @@ Synopsis
69
69
For more details, consult https://gdal.org/programs/gdal_vector_rasterize.html
70
70
71
71
72
+
72
73
Description
73
74
-----------
74
75
@@ -113,7 +114,7 @@ Standard options
113
114
114
115
.. option:: --3d
115
116
116
-
Indicates that a burn value should be extracted from the "Z" values of the feature. Works with points and lines (linear interpolation along each segment). For polygons, works properly only if the are flat (same Z value for all vertices).
117
+
Indicates that a burn value should be extracted from the "Z" values of the feature. Works with points and lines (linear interpolation along each segment). For polygons, works properly only if they are flat (same Z value for all vertices).
117
118
118
119
.. option:: --add
119
120
@@ -132,9 +133,7 @@ Standard options
132
133
An SQL statement to be evaluated against the datasource to produce a virtual layer of features to be burned in.
133
134
Starting with GDAL 3.7, the @filename syntax can be used to indicate that the content is in the pointed filename.
134
135
135
-
.. option:: --dialect <DIALECT>
136
-
137
-
SQL dialect. In some cases can be used to use (unoptimized) OGR SQL instead of the native SQL of an RDBMS by passing OGRSQL. The "SQLITE" dialect can also be used with any datasource.
136
+
.. include:: gdal_options/sql_dialect.rst
138
137
139
138
.. option:: --nodata <NODATA>
140
139
@@ -144,9 +143,9 @@ Standard options
144
143
145
144
Pre-initialize output bands with specified value. May be repeated.
146
145
147
-
.. option:: --crs <SRS>
146
+
.. option:: --crs <CRS>
148
147
149
-
Override the projection for the output file. If not specified, the projection of the input vector file will be used if available. When using this option, no reprojection of features from the SRS of the input vector to the specified SRS of the output raster, so use only this option to correct an invalid source SRS. The <srs_def> may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT.
148
+
Override the projection for the output file. If not specified, the projection of the input vector file will be used if available. When using this option, no reprojection of features from the CRS of the input vector to the specified CRS of the output raster, so use only this option to correct an invalid source CRS. The ``<CRS>`` may be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT.
150
149
151
150
.. option:: --transformer-option <NAME>=<VALUE>
152
151
@@ -158,19 +157,19 @@ Standard options
158
157
159
158
.. option:: --resolution <xres>,<yres>
160
159
161
-
Set target resolution. The values must be expressed in georeferenced units. Both must be positive values. Note that `--target-resolution` cannot be used with `--target-size`.
160
+
Set target resolution. The values must be expressed in georeferenced units. Both must be positive values. Note that `--resolution` cannot be used with `--size`.
162
161
163
162
.. option:: --target-aligned-pixels
164
163
165
164
(target aligned pixels) Align the coordinates of the extent of the output file to the values of the -tr, such that the aligned extent includes the minimum extent. Alignment means that xmin / resx, ymin / resy, xmax / resx and ymax / resy are integer values.
166
165
167
166
.. option:: --size <xsize>,<ysize>
168
167
169
-
Set output file size in pixels and lines. Note that `--target-size` cannot be used with `--target-resolution`.
168
+
Set output file size in pixels and lines. Note that `--size` cannot be used with `--resolution`.
Force the output bands to be of the indicated data type. Defaults to `Float64`, unless the attribute field to burn is of type `Int6`4, in which case `Int64`` is used for the output raster data type if the output driver supports it.
172
+
Force the output bands to be of the indicated data type. Defaults to ``Float64``, unless the attribute field to burn is of type ``Int64``, in which case ``Int64`` is used for the output raster data type if the output driver supports it.
0 commit comments