Ga naar inhoud

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.

Parameters:

Name Type Description Default
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

Returns:

Type Description
GeoPackageDownload

Output path and download metadata.

Raises:

Type Description
HTTPError

The server returns an unsuccessful HTTP status.

DownloadPayloadError

The response is incomplete or is not a valid GeoPackage.

Redactie: AI