Ga naar inhoud

Inwoners

Zie het productievoorbeeld. De volledige productie-ingang staat in de productie-API.

Inwoners per woon-VBO verwerken.

InwonersBuild dataclass

Summary of one inwoners per woon-VBO processing run.

bereken_inwoners_per_vbo(bag_vbo, cbs_buurten)

Calculate both inwoners distributions for selected VBO's.

aantal_inwoners and aantal_huishoudens are retained in the result so the two calculated variants remain traceable to their CBS source values. Missing CBS values and zero denominators produce missing calculated values.

Returns:

Type Description
tuple[GeoDataFrame, int, int]

Result, number of VBO's missing required CBS values, and number of CBS buurten for which the inwonerbehoudende control could not be performed.

bouw_inwoners(bag_vbo_path=datastore.bag_vbo_path, cbs_buurt_path=datastore.cbs_buurt_path, *, target_path=datastore.inwoners_path, geoparquet_path=datastore.inwoners_parquet_path, bag_vbo_layer=BAG_VBO_LAYER, cbs_buurt_layer=CBS_BUURT_OUTPUT_LAYER, overwrite=True, write_geoparquet=False)

Build inwoners per woon-VBO from the shared VBO-buurt products.

The BAG point geometry is retained. CBS values are joined by buurtcode; no spatial join is repeated. Optionally write standard GeoParquet in the existing Hilbert order. When overwrite is False, an existing GeoPackage is reused without reading the input GeoPackages.

Redactie: AI