rasterio.sample.sample_gen
How Rasterio runs Extract Values to Points: rasterio.sample.sample_gen.
| Engine | Rasterio |
|---|---|
| Tool name | rasterio.sample.sample_gen |
| Interface | python |
| Implements | Extract Values to Points |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
dataset | any | yes | Not stated | Not stated | Not stated |
xy | any | yes | Not stated | Not stated | Not stated |
indexes | any | no | Not stated | Not stated | Not stated |
masked | boolean | no | no | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
raster | dataset | Not stated |
points | xy | An iterable of (x, y) coordinate pairs in the raster's CRS. |
resampling | Not stated | always nearest |
Differences from the operation
- Yields an array of band values per point; DatasetReader.sample is the same as a method of an open raster.
Harvested by the python-packages harvester from engine version
1.5.2. Names can change when an engine is harvested again.