Get area stats for parcelles and batiments for each parcelle
✓ Published0🌍 Public
TThomasG77
Last edited Oct 20, 2025
Created on Oct 20, 2025
This example maps French cadastral data for the commune 91114, calculating the built surface area of buildings (batiments) on each land parcel (parcelle). It uses DuckDB’s spatial SQL functions—`ST_intersects`, `ST_intersection`, and `ST_Area`—to query a remote GeoParquet file from data.gouv.fr, then aggregates results with a `LEFT JOIN` to include parcels without buildings. The final query outputs a CSV of per-parcelle statistics, including total building footprint and parcel geometry attributes.
AI-generated description