Làm việc với Dữ liệu Không gian địa lý trong Python
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS: International Peace Information Service
Hình: G.A.O, phạm vi công cộng, từ Wikimedia Commons
Đọc tệp: geopandas.read_file("path/to/file.geojson")
Định dạng hỗ trợ:
.shp, .dbf, .shx, .prj, ...).gpkg)& cơ sở dữ liệu PostGIS!
Ghi GeoDataFrame ra tệp với phương thức to_file():
# Ghi tệp Shapefile
geodataframe.to_file("mydata.shp", driver='ESRI Shapefile')
# Ghi tệp GeoJSON
geodataframe.to_file("mydata.geojson", driver='GeoJSON')
# Ghi tệp GeoPackage
geodataframe.to_file("mydata.gpkg", driver='GPKG')
Làm việc với Dữ liệu Không gian địa lý trong Python