Een productie starten vanuit Python
Kies een kaartlaag voor de aanroep, de standaardinstellingen en de uitvoer.
Personenauto’s berekenen · main
waterlagen.autos.productie.main
Python-aanroep
main(
data_store=None,
*,
area=Area.nederland,
write_geoparquet=True,
run_id=None,
resume=False,
overwrite=False,
refresh_sources=False,
offline=False,
preparation=None,
)
Produce an area with complete CBS-buurt context.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
Produced GeoPackage; complete selected buurten are retained. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
data_store
|
DataStore
|
Source and production locations. |
None
|
area
|
str or Area or ProductionArea
|
Input selection: Nederland, a named polygon or water authority code. |
Area.nederland
|
write_geoparquet
|
bool
|
Write a GeoParquet companion, default True. |
True
|
run_id
|
str
|
Unique production run, default a UTC timestamp. |
None
|
resume
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
overwrite
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
refresh_sources
|
bool
|
Refresh sources for a new run; default reuse. |
False
|
offline
|
bool
|
Require local source data without network access. |
False
|
preparation
|
SourcePreparation
|
Shared source policy for nested productions. |
None
|
Inwoners berekenen · main
waterlagen.inwoners.productie.main
Python-aanroep
main(
data_store=None,
*,
area=Area.nederland,
write_geoparquet=True,
run_id=None,
resume=False,
overwrite=False,
refresh_sources=False,
offline=False,
preparation=None,
)
Produce an area with complete CBS-buurt context.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
Produced GeoPackage; complete selected buurten are retained. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
data_store
|
DataStore
|
Source and production locations. |
None
|
area
|
str or Area or ProductionArea
|
Input selection: Nederland, a named polygon or water authority code. |
Area.nederland
|
write_geoparquet
|
bool
|
Write a GeoParquet companion, default True. |
True
|
run_id
|
str
|
Unique production run, default a UTC timestamp. |
None
|
resume
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
overwrite
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
refresh_sources
|
bool
|
Refresh sources for a new run; default reuse. |
False
|
offline
|
bool
|
Require local source data without network access. |
False
|
preparation
|
SourcePreparation
|
Shared source policy for nested productions. |
None
|
Afwateringseenheden berekenen · main
waterlagen.afwateringseenheden.productie.main
Python-aanroep
main(
data_store=None,
*,
area=Area.nederland,
workers=None,
run_id=None,
resume=False,
overwrite=False,
refresh_sources=False,
offline=False,
preparation=None,
brandlagen=None,
overige_waterschappen=False,
eigen_hydamo=None,
rijkswateren_url=RIJKSWATEREN_URL,
duiker_tolerance=0.5,
max_aansluitlengte=None,
max_complex_routelengte=100.0,
dem_resampling="min",
)
Produce full tiles with separate drainage targets and surrounding burn context.
Joint water/culvert raster connectivity is always prepared, including without additional burn sources.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
Combined afwateringseenheden GeoPackage. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
data_store
|
DataStore
|
Source and output locations. |
None
|
area
|
str or Area or ProductionArea
|
Input selection; results are not clipped to this boundary. A water authority code also selects that authority's primary drainage targets. |
Area.nederland
|
workers
|
int
|
Override the configured number of processes. |
None
|
run_id
|
str
|
Unique output run, default a UTC timestamp. |
None
|
resume
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
overwrite
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
refresh_sources
|
bool
|
Refresh sources for a new run, or require local sources. |
False
|
offline
|
bool
|
Refresh sources for a new run, or require local sources. |
False
|
preparation
|
SourcePreparation
|
Shared source policy for nested productions. |
None
|
brandlagen
|
BrandlagenConfig
|
Optional burn layers. Explicit public sources are prepared for the full calculation context; local user files are never downloaded or replaced. Checked before AHN preparation. Recorded source identities and defaults must match when resuming a run. |
None
|
overige_waterschappen
|
bool
|
Include surrounding water authorities as targets, default False. Requires an authority area. RWS remains burn context when an authority is chosen. |
False
|
eigen_hydamo
|
pathlib.Path
|
Complete hydroobject/gemaal/stuw/duikersifonhevel replacement for the selected authority. Validated before AHN preparation. Requires an authority area. |
None
|
rijkswateren_url
|
str
|
Published RWS source location. Local sources are reused unless refresh is requested. Without an authority code, RWS also supplies targets. |
RIJKSWATEREN_URL
|
duiker_tolerance
|
float
|
Inclusive maximum endpoint distance to primary lines, default 0.5 m. |
0.5
|
max_complex_routelengte
|
float
|
Maximum full parallel route length in metres, default 100; zero disables complex target exclusion. Burning remains unchanged. |
100.0
|
max_aansluitlengte
|
float
|
Maximum direct adjoining length excluded from targets, default None. Does not change primary burning. Finite, non-negative; zero is valid. |
None
|
dem_resampling
|
str
|
DEM warp method, default bilinear. Supported: nearest, bilinear, cubic, cubic_spline, lanczos, average, min, max, med, q1, q3. A different method requires a new run ID. Missing legacy metadata means bilinear; all other run compatibility checks still apply. |
'min'
|
Landgebruik berekenen · main
waterlagen.functioneel_landgebruik.productie.main
Python-aanroep
main(
data_store=None,
*,
area=Area.nederland,
workers=None,
building_context_m=5.0,
mapping_csv=None,
bgt_path=None,
run_id=None,
resume=False,
overwrite=False,
refresh_sources=False,
offline=False,
preparation=None,
)
Produce functional land use with building companions for an area.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
The functional-land-use COG in the area-specific production folder. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
data_store
|
DataStore
|
Configured source and processed-data locations. |
None
|
area
|
Area
|
Named input area or water authority code; complete intersecting tiles are retained. |
Area.nederland
|
workers
|
int
|
Override settings.functioneel_landgebruik_workers; may change on resume. |
None
|
building_context_m
|
float
|
Prepared neighbour distance needed for subsequent building sampling. |
5.0
|
mapping_csv
|
pathlib.Path
|
Classification table and prepared BGT override. Other sources use the datastore. |
None
|
bgt_path
|
pathlib.Path
|
Classification table and prepared BGT override. Other sources use the datastore. |
None
|
run_id
|
str
|
Output run name, default a UTC timestamp. |
None
|
resume
|
bool
|
Explicitly reuse or rebuild a compatible run. Existing inputs are checked. |
False
|
overwrite
|
bool
|
Explicitly reuse or rebuild a compatible run. Existing inputs are checked. |
False
|
refresh_sources
|
bool
|
Refresh sources for a new run, or require local inputs without downloads. |
False
|
offline
|
bool
|
Refresh sources for a new run, or require local inputs without downloads. |
False
|
preparation
|
SourcePreparation
|
Shared source policy for nested productions. |
None
|
DEM berekenen · main
waterlagen.dem.workflow.main
Python-aanroep
main(
*,
area=Area.nederland,
landuse_run=None,
data_store=None,
output_root=None,
ahn_vrt=None,
ahn_version=None,
ahn_coverage_report=None,
workers=None,
building_workers=None,
config=None,
run_id=None,
resume=False,
overwrite=False,
refresh_sources=False,
offline=False,
preparation=None,
)
Resolve suitable land use, prepare sources and produce an area DEM.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
Validated DEM GeoTIFF. A Float32 companion is also produced. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
area
|
str or Area or ProductionArea
|
Shared input selection; complete tile outputs are retained. |
Area.nederland
|
landuse_run
|
pathlib.Path
|
Explicit completed land-use production. Otherwise discover or produce it. |
None
|
data_store
|
DataStore
|
Source caches and default production locations. |
None
|
output_root
|
pathlib.Path
|
Override the DEM output location for Python callers. The CLI instead configures the datastore for both DEM and dependent productions. |
None
|
ahn_vrt
|
pathlib.Path
|
Optional terrain-model VRT with ground elevations in metres relative to NAP. Otherwise use the newest published AHN tile for each location. |
None
|
ahn_version
|
(4, 5, 6)
|
Pin the run to one AHN version. Cannot be combined with ahn_vrt. |
4
|
ahn_coverage_report
|
pathlib.Path
|
Fixed-product coverage accepted with the script. Newly missing sheets stop source preparation until the updated coverage is accepted. |
None
|
workers
|
int
|
Override configured counts for tile and building processes. |
None
|
building_workers
|
int
|
Override configured counts for tile and building processes. |
None
|
config
|
DemConfig
|
Interpolation and building elevation settings. |
None
|
run_id
|
str
|
Unique run name, default a UTC timestamp. |
None
|
resume
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
overwrite
|
bool
|
Reuse or rebuild a compatible existing run. |
False
|
refresh_sources
|
bool
|
Refresh sources for a new run, or require locally available sources. Explicit source overrides are not refreshed. |
False
|
offline
|
bool
|
Refresh sources for a new run, or require locally available sources. Explicit source overrides are not refreshed. |
False
|
preparation
|
SourcePreparation
|
Shared source policy for nested productions. |
None
|
Gebieden
Gebruik area="alkmaar" voor Alkmaar of maak een eigen rechthoek met area_from_bounds.
Gebied uit coördinaten · area_from_bounds
waterlagen.areas.area_from_bounds
area_from_bounds(bounds)
Create a rectangular input selection without performing I/O.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
ProductionArea
|
Bbox polygon with a canonical coordinate-based name. The selection does not clip production outputs or change their grids. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
bounds
|
sequence of float
|
Four finite coordinates: xmin, ymin, xmax, ymax, in |
Verplicht |
Mogelijke fouten
| Type | Betekenis |
|---|---|
ValueError
|
If the coordinates do not describe a finite, nonempty rectangle. |
Redactie: AI