Skip to content

Instantly share code, notes, and snippets.

@todashuta
Created November 23, 2022 11:48
Show Gist options
  • Select an option

  • Save todashuta/80d55c6f08c68cee24fc71f6ed80bc2c to your computer and use it in GitHub Desktop.

Select an option

Save todashuta/80d55c6f08c68cee24fc71f6ed80bc2c to your computer and use it in GitHub Desktop.
from pyproj import Transformer
# EPSG:4326 WGS84 地理座標系(緯度経度)
# EPSG:6677 JGD2011 IX(9)系
transformer = Transformer.from_crs(4326, 6677)
# 緯度経度 (十進法度単位)
lat = 36.103774792 # 緯度
lon = 140.087855042 # 経度
result = transformer.transform(lat, lon)
print(result) # (11543.688358545745, 22916.243584267566) 平面直角座標系 X座標 Y座標
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment