manywaypark's Blog
개발, 검색, 함수

'5179'에 해당되는 글 1건

  1. 2016.05.30 [PostGIS] 5179 not found in spatial_ref_sys

PostGIS에서 SRID로 5179를 쓰려고 했는데 다음과 같은 에러가 났다.


5179 not found in spatial_ref_sys


아마도 한국에서만 쓰는 것이라 기본으로 포함되지는 않은 듯하다.


아래와 같이 해주면 사용 가능하다.


INSERT INTO "spatial_ref_sys" ("srid","auth_name","auth_srid","srtext","proj4text") VALUES (5179,'EPSG',5179,'GEOGCS ["Korea 2000", DATUM ["Geocentric datum of Korea", SPHEROID ["GRS 1980", 6378137.0, 298.257222101, AUTHORITY ["EPSG","7019"]], TOWGS84 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], AUTHORITY ["EPSG","6737"]], PRIMEM ["Greenwich", 0.0, AUTHORITY ["EPSG","8901"]], UNIT ["degree", 0.017453292519943295], AXIS ["Geodetic longitude", EAST], AXIS ["Geodetic latitude", NORTH], AUTHORITY ["EPSG","4737"]], PROJECTION ["Transverse_Mercator", AUTHORITY ["EPSG","9807"]], PARAMETER ["central_meridian", 127.5], PARAMETER ["latitude_of_origin", 38.0], PARAMETER ["scale_factor", 0.9996], PARAMETER ["false_easting", 1000000.0], PARAMETER ["false_northing", 2000000.0], UNIT ["m", 1.0], AXIS ["Easting", EAST], AXIS ["Northing", NORTH], AUTHORITY ["EPSG","5179"]]','+proj=tmerc +lat_0=38 +lon_0=127.5 +k=0.9996 +x_0=1000000 +y_0=2000000 +ellps=GRS80 +units=m +no_defs ');


refs:

  • https://gist.github.com/hangum/a0af73450c87cb651be7#file-test1-sql
  • https://epsg.io/5179

happy hackin'


글을 다 쓰고 자세히 보니

https://epsg.io/5179 에서 Export로 PostGIS용 insert statement를 제공하네. Orz.



1 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

03-29 16:00