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で扱う地理空間データ