Travailler avec des données géospatiales en Python
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS : International Peace Information Service

Image : Connormah, CC BY-SA 3.0, de Wikimedia Commons
IPIS : International Peace Information Service
Image : G.A.O, domaine public, de Wikimedia Commons
Lecture de fichiers : geopandas.read_file("path/to/file.geojson")
Formats pris en charge :
.shp, .dbf, .shx, .prj, ...).gpkg)Et bases de données PostGIS !
Écrire un GeoDataFrame dans un fichier avec la méthode to_file() :
# Écriture d'un fichier Shapefile
geodataframe.to_file("mydata.shp", driver='ESRI Shapefile')
# Écriture d'un fichier GeoJSON
geodataframe.to_file("mydata.geojson", driver='GeoJSON')
# Écriture d'un fichier GeoPackage
geodataframe.to_file("mydata.gpkg", driver='GPKG')
Travailler avec des données géospatiales en Python