14 lines
456 B
Python
14 lines
456 B
Python
import geopandas as gpd
|
|
from os import path
|
|
|
|
PATH = '/media/cgeier/SRV/FICHIERS'
|
|
file = 'OUTILS/CARTOGRAPHIE/ESPACE DE TRAVAIL/SITES/Lone de la Negria/Faune-Flore/Synthèse/synthese_observations_2026-04-23.geojson'
|
|
|
|
df = gpd.read_file(path.join(PATH,file), use_arrow=True)
|
|
|
|
df['ha'] = df.to_crs(2154).area
|
|
df.sort_values('ha', ascending=False, inplace=True)
|
|
df.reset_index(inplace=True)
|
|
df.drop(columns='ha', inplace=True)
|
|
|
|
df.to_file(path.join(PATH,file)) |