Rijkswateren
Bekijk het downloadvoorbeeld Over deze bron
Voorbereide Rijkswateren downloaden · download_rijkswateren
waterlagen.rijkswateren.download_rijkswateren
download_rijkswateren(
download_dir=None,
*,
source_url=RIJKSWATEREN_URL,
overwrite=False,
timeout=30,
progress=True,
)
Download or reuse the published Rijkswateren GeoPackage atomically.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
Validated local source, preserving its original CRS. Source selection explicitly transforms geometries to the project CRS when reading. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
download_dir
|
pathlib.Path
|
Destination directory, default |
None
|
source_url
|
str
|
Redirect to a public Nextcloud share, share URL, or direct GeoPackage URL.
Shares contain |
RIJKSWATEREN_URL
|
overwrite
|
bool
|
Refresh an existing source. Otherwise validate and reuse it offline. |
False
|
timeout
|
float
|
Timeout in seconds for each HTTP request. |
30
|
progress
|
bool
|
Show named byte progress for the GeoPackage download. |
True
|
Mogelijke fouten
| Type | Betekenis |
|---|---|
ValueError
|
Invalid payload, missing hydroobject layer, category, identifier or CRS. |
requests.HTTPError
|
The share or file request failed. An existing source remains intact. |
Redactie: AI