Hoogtemodel (DEM)
Start een DEM-productie voor een gebied. Voor een eigen workflow kunt u de tegels of alleen de gebouwhoogten berekenen.
DEM-tegels berekenen · bouw_dem_tiles
waterlagen.dem.bouw_dem_tiles
bouw_dem_tiles(
target_dir,
*,
ahn_vrt_path,
landuse_tiles,
config=None,
overwrite=False,
workers=None,
building_workers=None,
landgebied_path=None,
)
Produce a DEM on exactly the supplied functional-land-use tile grid.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
pathlib.Path
|
|
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
target_dir
|
pathlib.Path
|
Dedicated output folder. Matching completed tiles/heights are reused. |
Verplicht |
ahn_vrt_path
|
pathlib.Path
|
Terrain-model mosaic covering tile cores and the surrounding search area. |
Verplicht |
landuse_tiles
|
list of pathlib.Path
|
Land-use cores with matching bronnen, gebouw_ids and gebouwen companions. Complete prepared geometries are used for building sampling; only source code 10 determines building output cells. No BAG is read here. |
Verplicht |
config
|
DemConfig
|
Buffer/percentile/interpolation settings; no landgebied restriction. |
None
|
overwrite
|
bool
|
Rebuild products within the same input/configuration identity. Changed inputs or settings require a new output directory. |
False
|
workers
|
int
|
Parallel core tiles; defaults to settings.dem_workers. Building heights are determined first. Worker count may change on resume. |
None
|
building_workers
|
int
|
Parallel building-height batches; defaults to settings.dem_building_workers. Completed batches and partial height tables are reused after interruption. |
None
|
landgebied_path
|
pathlib.Path
|
GeoPackage with the landgebied boundary for the final coverage check. NoData is reported separately outside it, in water cells (100, 228), and in other land use. NoData never blocks publication. This affects validation only; computed tiles and heights remain reusable. |
None
|
Mogelijke fouten
| Type | Betekenis |
|---|---|
ValueError
|
If inputs/configuration changed or grids disagree. Remaining NoData is recorded in diagnostics and does not prevent publication. |
Gebouwhoogten berekenen · calculate_building_elevations
waterlagen.dem.gebouwen.calculate_building_elevations
calculate_building_elevations(
buildings, selected_ids, ahn, config
)
Sample complete footprints once, retaining unresolved buildings.
Wat krijgt u terug?
| Type | Betekenis |
|---|---|
geopandas.GeoDataFrame
|
One row per selected ID with hoogte_m, zoekafstand_m and donor_aantal. hoogte_m includes the configured offset after converting AHN values to metres. Unresolved heights are NaN and are not a production failure. |
Instellingen en invoer
| Naam | Type | Betekenis | Standaardwaarde |
|---|---|---|---|
buildings
|
geopandas.GeoDataFrame
|
Complete prepared land-use geometries with gebouw_id and identificatie. Includes neighbours for donor exclusion. |
Verplicht |
selected_ids
|
set of int
|
IDs actually present in source-code-10 output cells. |
Verplicht |
ahn
|
rasterio.io.DatasetReader
|
Original DTM, including surrounding donor coverage. |
Verplicht |
config
|
DemConfig
|
Search distances, percentile and building height offset in metres. |
Verplicht |
Redactie: AI