Python으로 지리공간 데이터 다루기
Joris Van den Bossche
Open source software developer and teacher, GeoPandas maintainer
IPIS: International Peace Information Service
이미지: G.A.O, 퍼블릭 도메인, Wikimedia Commons 제공
파일 읽기: geopandas.read_file("path/to/file.geojson")
지원 형식:
.shp, .dbf, .shx, .prj, ...).gpkg)그리고 PostGIS 데이터베이스도 가능합니다!
to_file() 메서드로 GeoDataFrame을 파일로 저장:
# Shapefile 저장
geodataframe.to_file("mydata.shp", driver='ESRI Shapefile')
# GeoJSON 저장
geodataframe.to_file("mydata.geojson", driver='GeoJSON')
# GeoPackage 저장
geodataframe.to_file("mydata.gpkg", driver='GPKG')
Python으로 지리공간 데이터 다루기