LIWO
Zie het downloadvoorbeeld.
Download het LIWO-klassenraster en polygoniseer uitsluitend klassen 1 en 6.
download_raster(target_path, *, overwrite=False, timeout=300, progress=True)
Download and validate the national native-grid WCS coverage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_path
|
Path
|
Destination GeoTIFF. Replacement is atomic after validation. |
required |
overwrite
|
bool
|
Replace an existing raster. Otherwise validate and reuse it offline. |
False
|
timeout
|
int
|
HTTP timeout in seconds. |
300
|
progress
|
bool
|
Show named download progress. |
True
|
Returns:
| Type | Description |
|---|---|
Path
|
Validated GeoTIFF path. |
polygonize_selected(raster_path, target_path)
Polygonize valid LIWO cells of classes 1 and 6 with four-cell connectivity.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raster_path
|
Path
|
Single-band native-grid LIWO GeoTIFF, national or a subset. |
required |
target_path
|
Path
|
Output GeoPackage, atomically replaced after validation. The output
retains EPSG:28992 and contains |
required |
Returns:
| Type | Description |
|---|---|
Path
|
GeoPackage containing only the selected classes. Adjacent classes stay separate; diagonal cells are not joined. No smoothing is applied. |
Redactie: AI