Ga naar inhoud

Waterketen DAMO

Bekijk het downloadvoorbeeld

Waterketengegevens downloaden · download_waterketen_damo

waterlagen.waterketen_damo.download_waterketen_damo

download_waterketen_damo(
    download_dir=None,
    *,
    target_path=None,
    overwrite=True,
    progress=True,
    chunk_size=1024 * 1024,
    timeout=30,
)

Download the current PDOK Waterketen DAMO GeoPackage.

Use the GeoPackage endpoint published in the PDOK ATOM feed. New downloads are streamed to a temporary file beside the target, validated and brought into the configured project CRS before atomically replacing the target.

Wat krijgt u terug?

Type Betekenis
GeoPackageDownload

Output path and download metadata.

Instellingen en invoer

Naam Type Betekenis Standaardwaarde
download_dir Path

Source directory, defaulting to datastore.waterketen_damo_dir.

None
target_path Path

Output path overriding download_dir / "waterketen_damo.gpkg".

None
overwrite bool

Replace an existing target, by default True. With False, reuse it without a network request or revalidation.

True
progress bool

Write named download progress to stdout, by default True.

True
chunk_size int

HTTP download chunk size in bytes, by default 1048576.

1024 * 1024
timeout int

HTTP timeout in seconds, by default 30.

30

Mogelijke fouten

Type Betekenis
requests.HTTPError

The server returns an unsuccessful HTTP status.

waterlagen._downloads.DownloadPayloadError

The response is incomplete or is not a valid GeoPackage.

options: docstring_style: numpy

Redactie: AI