rasterio.features.rasterize
How Rasterio runs Rasterize: rasterio.features.rasterize.
| Engine | Rasterio |
|---|---|
| Tool name | rasterio.features.rasterize |
| Interface | python |
| Implements | Rasterize |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
shapes | any | yes | Not stated | Not stated | Not stated |
out_shape | any | no | Not stated | Not stated | Not stated |
fill | integer | no | 0 | Not stated | Not stated |
nodata | any | no | Not stated | Not stated | Not stated |
masked | boolean | no | no | Not stated | Not stated |
out | any | no | Not stated | Not stated | Not stated |
transform | any | no | Not stated | Not stated | default Affine(1.0, 0.0, 0.0, 0.0, 1.0, 0.0) |
all_touched | boolean | no | no | Not stated | Not stated |
merge_alg | any | no | Not stated | Not stated | default <MergeAlg.replace: 'REPLACE'> |
default_value | integer | no | 1 | Not stated | Not stated |
dtype | any | no | Not stated | Not stated | Not stated |
skip_invalid | boolean | no | yes | Not stated | Not stated |
dst_path | any | no | Not stated | Not stated | Not stated |
dst_kwds | any | no | Not stated | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
layer | shapes | Not stated |
resolution | Not stated | Give out_shape and transform instead (rasterio.transform.from_origin(west, north, res, res)). |
value | default_value | Not stated |
field | Not stated | Pass (geometry, value) pairs as shapes. |
all_touched | all_touched | Not stated |
Differences from the operation
- Returns an array; cells outside every shape get fill (default 0).
Harvested by the python-packages harvester from engine version
1.5.2. Names can change when an engine is harvested again.