feat: intersection géographique bureaux de vote / IRIS#2
Open
dmenig wants to merge 1 commit intolafranceinsoumise:mainfrom
Open
feat: intersection géographique bureaux de vote / IRIS#2dmenig wants to merge 1 commit intolafranceinsoumise:mainfrom
dmenig wants to merge 1 commit intolafranceinsoumise:mainfrom
Conversation
78ed739 to
2abd2b4
Compare
2abd2b4 to
e875e47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objectif
Ajouter la capacité de calculer la part de surface de chaque bureau de vote couverte par chaque zone IRIS.
Ce croisement géographique permet d'estimer des indicateurs socio-démographiques (revenus, emploi…) au niveau du bureau de vote, par pondération des données IRIS (FILOSOFI).
Données ajoutées
Source
contours-france-entiere-latest-v2.geojson, 645 Mo)Jeu de données national d'Etalab/INSEE proposant une géométrie pour chaque bureau de vote de France.
Source : data.gouv.fr
Production
data/03_main/geodata/bureau_iris_relative_areas.csvPour chaque bureau de vote, la part de sa surface couverte par chaque zone IRIS (valeur entre 0 et 1).
Colonnes :
Code Bureau de Vote Departement,CODE_IRIS,NOM_IRIS,relative_area.Pipeline DVC
Deux nouvelles étapes :
convert_contours_to_parquet— Conversion du GeoJSON source en Parquet (format plus rapide à charger avec geopandas).bureau_iris_intersection— Intersection géométrique des contours de bureaux de vote avec les contours IRIS (projection EPSG:2154), calcul des surfaces relatives.Fichiers modifiés
contours-france-entiere-latest-v2.geojson.dvccontours-france-entiere-latest-v2.geojson.tomldata/01_raw/ministere_interieur/.gitignorebureau_iris_relative_areas.csv.tomlsrc/hexagonal/convert_geodata.pysrc/hexagonal/bureau_iris_intersection_area.pydvc.yamldvc.locksources.mdproductions.md