OSM-drinkwaterlocaties
Drinkwaterlocaties downloaden · download_osm_drinkwater
waterlagen.functioneel_landgebruik.osm_drinkwater.download_osm_drinkwater
Python-aanroep
download_osm_drinkwater(
target_path=None,
*,
data_store=None,
reviews_path=None,
endpoint=OVERPASS_ENDPOINT,
cache_dir=None,
offline=False,
overwrite=False,
include_buildings=False,
timeout=150,
)
Build drinking-water polygons from OSM in the configured source data.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
GeoPackage with a BAG matching layer and separate review layers. BAG matching uses the existing Waterlagen representative-point rule. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
target_path
|
pathlib.Path
|
GeoPackage output. Defaults to source_data/osm/drinkwaterlocaties.gpkg. |
None
|
data_store
|
DataStore
|
Configured Waterlagen data store. |
None
|
reviews_path
|
pathlib.Path
|
JSON with reviewed locations. Defaults to the bundled source review. |
None
|
endpoint
|
str
|
Overpass API endpoint. |
OVERPASS_ENDPOINT
|
cache_dir
|
pathlib.Path
|
Directory for validated raw Overpass JSON responses. |
None
|
offline
|
bool
|
Read the geometry response from cache without network access. |
False
|
overwrite
|
bool
|
Replace a validated existing GeoPackage. Otherwise reuse it. |
False
|
include_buildings
|
bool
|
Also include building-only OSM polygons in the BAG matching layer. |
False
|
timeout
|
float
|
HTTP timeout in seconds. |
150
|
Redactie: AI