Ga naar inhoud

HYDAMO

Bekijk het downloadvoorbeeld

HyDAMO downloaden · download_hydamo

waterlagen.hydamo.download_hydamo

download_hydamo(
    download_dir=None,
    *,
    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.

Wat krijgt u terug?

Type Betekenis
GeoPackageDownload

Output path and download metadata.

Instellingen en invoer

Naam Type Betekenis Standaardwaarde
download_dir Path

Directory for the default output path, by default datastore.hydamo_dir.

None
target_path Path

Output GeoPackage path. Defaults to download_dir / "hydamo.gpkg".

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

Redactie: AI