Arbeta med geospatial data i Python
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS: International Peace Information Service
Bild: G.A.O, public domain, från Wikimedia Commons
Läsa filer: geopandas.read_file("path/to/file.geojson")
Format som stöds:
.shp, .dbf, .shx, .prj, ...).gpkg)& PostGIS-databaser!
Skriva en GeoDataFrame till fil med metoden 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')
Arbeta med geospatial data i Python