Lucrul cu date geospațiale în Python
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS: International Peace Information Service

Imagine: Connormah, CC BY-SA 3.0, din Wikimedia Commons
IPIS: International Peace Information Service
Imagine: G.A.O, domeniu public, din Wikimedia Commons
Citirea fișierelor: geopandas.read_file("path/to/file.geojson")
Formate acceptate:
.shp, .dbf, .shx, .prj, ...).gpkg)& baze de date PostGIS!
Scrierea unui GeoDataFrame într-un fișier cu metoda to_file():
# Writing a Shapefile file
geodataframe.to_file("mydata.shp", driver='ESRI Shapefile')
# Writing a GeoJSON file
geodataframe.to_file("mydata.geojson", driver='GeoJSON')
# Writing a GeoPackage file
geodataframe.to_file("mydata.gpkg", driver='GPKG')
Lucrul cu date geospațiale în Python