hydromodpy.data.common.administrative.france#

French administrative subdivision (département) detection.

Uses a bundled GeoPackage (departement.gpkg) containing simplified department polygons in EPSG:2154 (Lambert-93). The file ships with the package (~600 KB) so detection is purely local - no network call needed.

Source: IGN ADMIN EXPRESS COG CARTO (Licence Ouverte / ETALAB v2.0), simplified to 500 m tolerance.

Functions

bbox_for_departments(departments, *[, margin_m])

Return the EPSG:2154 bounding box covering the requested departments.

bbox_for_regions(regions, *[, margin_m])

Return the EPSG:2154 bounding box covering the requested regions.

department_code_to_padded(dept_code)

Normalize a department code to 3-character zero-padded format.

find_departments_in_bbox(bbox)

Return department codes whose territory intersects bbox.

find_departments_in_regions(regions)

Return department codes for French administrative regions.

geometry_for_departments(departments, *[, ...])

Return the union geometry covering the requested departments.

geometry_for_regions(regions, *[, target_crs])

Return the union geometry covering the requested French regions.