데이터셋 소개

Python으로 지리공간 데이터 다루기

Joris Van den Bossche

Open source software developer and teacher, GeoPandas maintainer

IPIS의 수공 채굴지 데이터

IPIS: International Peace Information Service

이미지: Connormah, CC BY-SA 3.0, Wikimedia Commons 제공

Python으로 지리공간 데이터 다루기

IPIS의 수공 채굴지 데이터

IPIS: International Peace Information Service 이미지: G.A.O, 퍼블릭 도메인, Wikimedia Commons 제공

Python으로 지리공간 데이터 다루기

IPIS의 수공 채굴지 데이터

Python으로 지리공간 데이터 다루기

공간 파일 형식

파일 읽기: geopandas.read_file("path/to/file.geojson")

지원 형식:

  • ESRI Shapefile
    • 하나의 “파일”은 여러 파일로 구성됩니다! (.shp, .dbf, .shx, .prj, ...)
  • GeoJSON
  • GeoPackage (.gpkg)
  • ...

그리고 PostGIS 데이터베이스도 가능합니다!

Python으로 지리공간 데이터 다루기

공간 파일 형식으로 저장하기

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으로 지리공간 데이터 다루기

연습해 봅시다!

Python으로 지리공간 데이터 다루기

Preparing Video For Download...