Sistem Referensi Koordinat

Bekerja dengan Data Geospasial di Python

Joris Van den Bossche

Open source software developer and teacher, GeoPandas maintainer

Coordinate Reference System (CRS)

Lokasi Menara Eiffel:

POINT (2.2945 48.8584)

Coordinate Reference System (CRS) mengaitkan koordinat ke lokasi spesifik di bumi.

Bekerja dengan Data Geospasial di Python

Koordinat geografis

Derajat lintang dan bujur.

Mis. 48°51′U, 2°17′T

Dipakai di GPS, aplikasi pemetaan web...

Perhatian!
di Python kita pakai (lon, lat), bukan (lat, long)

  • Bujur: [-180, 180]
  • Lintang: [-90, 90]
Bekerja dengan Data Geospasial di Python

Peta itu 2D

Bekerja dengan Data Geospasial di Python

Koordinat terproyeksi

Koordinat (x, y) biasanya dalam meter atau kaki

Bekerja dengan Data Geospasial di Python

Koordinat terproyeksi - Contoh

Proyeksi Albers Equal Area

Bekerja dengan Data Geospasial di Python

Koordinat terproyeksi - Contoh

Proyeksi Mercator

Bekerja dengan Data Geospasial di Python

Koordinat terproyeksi - Contoh

Ukuran terproyeksi vs ukuran nyata (proyeksi Mercator)

Bekerja dengan Data Geospasial di Python

Menentukan CRS

String proj4

Contoh: +proj=longlat +datum=WGS84 +no_defs

Representasi dict:

{'proj': 'longlat', 'datum': 'WGS84', 'no_defs': True}

Kode EPSG

Contoh:

EPSG:4326 = CRS geografis WGS84 (bujur, lintang)

Bekerja dengan Data Geospasial di Python

CRS di GeoPandas

Atribut .crs dari GeoDataFrame/GeoSeries:

import geopandas
gdf = geopandas.read_file("countries.shp")
print(gdf.crs)
{'init': 'epsg:4326'}
Bekerja dengan Data Geospasial di Python

Ringkasan

  • Koordinat "geografis" (long, lat) vs "terproyeksi" (x, y)
  • CRS di GeoPandas: atribut .crs
  • CRS geografis paling umum: WGS84 atau EPSG:4326
Bekerja dengan Data Geospasial di Python

Ayo berlatih!

Bekerja dengan Data Geospasial di Python

Preparing Video For Download...