在 Python 中处理地理空间数据
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS:国际和平信息服务
图片:G.A.O,公有领域,来自维基共享资源
读取文件:geopandas.read_file("path/to/file.geojson")
支持的格式:
.shp, .dbf, .shx, .prj, ...).gpkg)以及 PostGIS 数据库!
使用 to_file() 方法将 GeoDataFrame 写入文件:
# 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')
在 Python 中处理地理空间数据