init depot renew
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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))
|
||||
Reference in New Issue
Block a user