공간정보
l 공간 자체와 공간과 연관된 정보
l 공간 자체 정보 = 공간에 대한 표현 및 혹은 모양, 위치, 좌표
l 공간과 연관된 정보 = 주소 : 서울시 강남구 대치동 943-2
l 공간 수치 : 경위도 : lat 37.506863 lon127.058637
l 공간정보 : 루첸타워 => 37.506863, 127.058637, 오토에버
l 공간 = 3차원
l 종이지도 = 2차원
l 3D지도 = 3차원
l 3D지도 + 시간 = 4차원
좌표
l 2차원 좌표 : (X, Y)
l 3차원 좌표 : (X, Y, Z) : 경도, 위도, 고도
l 2차원 좌표계 : 데카르트 (Cartesian) 좌표계, 직교좌표계
l 경위도 자표계 : x, y, z
l 2차원 경위도 좌표 : x, y : lat 37.05 lon127.08
l 지구는 타원체
l 지구전도는 2차원 지도
l 타원체를 2차원 지도로 만드는 방법 : 투영 projection
좌표계
l 경위도 좌표계
l TM 좌표계
l UTM 좌표계
l 좌표와 좌표계의 차이?
l 측정과 계산
l 지구 = 타원체
경위도좌표계 - 투영
l특징 : 적도는 정확하고 양 극으로 이동할수록 왜곡이 심해진다.
TM좌표계 - 투영
UTM좌표계 – 횡측 투영
l특징 : 자오선을 6도마다 하나씩 지정
l국내 : 중부원점 : 38N 127E
l국내 생산한 지도의 원본 측량의 기준은 UTM 일 가능성이 높다
지도
GIS
l Geographic Information System
l 공간 데이터 = 좌표, 모양 (shape)
l 속성 데이터 = 예, 주소, 맛집
수치화한 DB와 이를 이용할 수 있는 응용시스템
GIS 데이터 저장
l속성 데이터 + 공간 데이터
이름 | 주소 | 모양 | 중심좌표 (경위도) |
빌딩 | 대치동 943-2 | ![]() |
37.507380, 127.060324 |
코엑스 | 영동대로 513 | ![]() |
37.512458, 127.059922 |
삼성역 4번 출구 | NONE | ![]() |
37.508326, 127.062523 |
Digital map
GIS 공간 데이터 구조
lPoint
lMulti point
lLine
lMulti Line
lCurve
lPolygon
lMulti Polygon
lGeometry
lLayer
GIS 공간 데이터 구조
WKT : Well Known Text
POINT (30 10)
MULTIPOINT ((10 40), (40 30), (20 20), (30 10))
LINESTRING (30 10, 10 30, 40 40)
MULTILINESTRING ((10 10, 20 20, 10 40),
(40 40, 30 30, 40 20, 30 10))
POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))
MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)),
((15 5, 40 10, 10 20, 5 10, 15 5)))
GeoJSON
{
"type": "Point",
"coordinates": [30, 10]
}
{
"type": "MultiPoint",
"coordinates":
[ [10, 40], [40, 30], [20, 20], [30, 10] ]
}
{
"type": "LineString",
"coordinates":
[ [30, 10], [10, 30], [40, 40] ]
}
{
"type": "MultiLineString",
"coordinates":
[ [[10, 10], [20, 20], [10, 40]],
[[40, 40], [30, 30], [40, 20], [30, 10]]
]
}
{
"type": "Polygon",
"coordinates": [ [[30, 10], [40, 40], [20, 40],
[10, 20], [30, 10]] ]
}
{
"type": "MultiPolygon",
"coordinates":
[ [ [[30, 20], [45, 40], [10, 40], [30, 20]] ],
[ [[15, 5], [40, 10], [10, 20],
[5, 10], [15, 5]] ]
]
}
Image : Raster data
Standard : Open Geospatial Consortium
Standard : WFS : how to query
Mysql : how to query
Mysql : spatial geometry data type
지도 관련 어플리케이션 개발
l 지도이미지 – tile map
l 위치 poi point of interest
l 모양 geometry
l 지도 layer
l point layer
l geometry layer
지도 관련 어플리케이션 개발
Network data model
Network data model : Tables
참고자료 :
국가공간정보포털
http://www.nsdi.go.kr/lxportal/?menuno=2679
인터넷지도좌표추출방법
https://blog.naver.com/jackieee/221183329871
GPS 위도, 경도 도분, 도분초 변환방법
https://m.blog.naver.com/PostView.nhn?blogId=caolympiad&logNo=220855909060&proxyReferer=https:%2F%2Fwww.google.com%2F
데카르트 좌표계 : 직각좌표계
http://blog.daum.net/_blog/BlogTypeView.do?blogid=0dHZY&articleno=21&categoryId=5®dt=20130405063352
국내 직교좌표계 기준
https://sangug.tistory.com/306
좌표계 설명
http://www.biz-gis.com/index.php?mid=pds&document_srl=65754
Gis data
http://www2.stat.duke.edu/~cr173/Sta323_Sp16/more_spatial_data.html
Gis 개념 정리
https://jaeman1990.tistory.com/54
네이버 지도 api
https://d2.naver.com/helloworld/3380225
Mysql geotry data type
https://itnext.io/playing-with-geometry-spatial-data-type-in-mysql-645b83880331?gi=6b9c55109e75
Mysql multi polygon
https://dev.mysql.com/doc/refman/5.7/en/gis-polygon-property-functions.html
Network data model
https://www.oracle.com/technetwork/database/enterprise-edition/spatial-twp-buildgisapps-10gr2-0512-132522.pdf4
network data model