HYDAMO
download_hydamo(download_dir=datastore.hydamo_dir, *, target_path=None, overwrite=True, progress=True, chunk_size=1024 * 1024, timeout=30)
Download the national GKW HYDAMO GeoPackage.
The GKW distribution is a ZIP archive containing one GeoPackage. The archive is streamed to a temporary file, its GeoPackage member is validated, and the result is atomically moved to the target after validation. Spatial layers are kept in the configured project CRS.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
download_dir
|
Path
|
Directory for the default output path, by default |
hydamo_dir
|
target_path
|
Path
|
Output GeoPackage path. Defaults to |
None
|
overwrite
|
bool
|
Whether to replace an existing target. With False, the existing target is reused and no archive is downloaded. |
True
|
progress
|
bool
|
Whether to write named download progress to stdout. |
True
|
chunk_size
|
int
|
HTTP download chunk size in bytes. |
1024 * 1024
|
timeout
|
int
|
HTTP timeout in seconds. |
30
|
Returns:
| Type | Description |
|---|---|
GeoPackageDownload
|
Output path and download metadata. |
Redactie: AI