Loading views...
geoserver-openlayer frontend

geoserver-openlayer frontend

Date
Date
2019 Dec 5 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Mar 3 9:27
Refs
Refs
 
notion image
 
이상하게 지오서버에서부터의 데이터가 좌표계가 잘못된건지 이상해서 이거 관리가 필요할 듯하다
 
notion image
아 그리고 지오서버 레이어는 포토샵과 다르게 아래서부터 쌓는 게 아니라 위에서부터 쌓는다 왠지는 몰겠지만...
 
notion image
osm 에 feature는 쌓았는데 위에놈은 원래 world가 있어서 빼줘야 할 것 같다
notion image

위에 있던 giant poligon을 빼주니 이렇게 잘 작동한다

 
근데 geoserver에 있던 데이터들이 아주 엉망이다.. 흠 손도 안댔는데 이런 걸 보니 건물이 문제인가 싶었는데 건물이 oms랑 맞아떨어지는 걸 보니 geoserver deafult data가 엉망인걸로 한다
 
 
notion image
notion image
봐바 oms랑 하나도 안맞음 - 약간씩 비껴나가 있다 젠부 geoserver문제인걸로 하고 넘어간다!
 
 
 

좌표관리


notion image
유정님이 주신자료를 봤는데 아프리카 바다에 나온다... 콩고에서 스트리트뷰를 찍으신건가?!
 
바다라서 그건 아닐테고 데이터에서부터 문제인데, qgis에서도 아프리카로 떴다!
 
notion image
아마 prj가 없어서 좌표 시스템 문제인거 같은데.. 뭐가맞는지 shp로부터 확인하기 위해서 qgis에 osm을 올려보기로 했다
 
notion image
새버전에서는 plugin인데도 osm은 alt w 탭에 존재한다
 
notion image
오 두가지 중 하나는 맞는듯! 그래도 공식 좌표는 물어봐야할 것 같다
 
notion image
참고로 qgis의 레이어도 또 일반 포토샵과 동일하다!
한국 주요 좌표계 EPSG코드 및 proj4 인자 정리
출처 : OSGeo(Open Source GeoSpatial) 한국어 지부 - OSGeo Korean Chapter [전지구 좌표계] *WGS84 경위도 EPSG:4326, EPSG:4166 (Korean 1995) +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs *Bessel 1841 경위도 EPSG:4004, EPSG:4162 (Korean 1985) +proj=longlat +ellps=bessel +no_defs +towgs84=-145.907,505.034,685.756,-1.162,2.347,1.592,6.342 *GRS80 경위도 EPSG:4019, EPSG:4737 (Korean 2000) +proj=longlat +ellps=GRS80 +no_defs *Google Mercator, 구글지도/빙지도/야후지도/OSM 등 에서 사용중인 좌표계 EPSG:900913(통칭), EPSG:3857(공식) +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0...
한국 주요 좌표계 EPSG코드 및 proj4 인자 정리
뭐 전지구 좌표계라서 여기저기 호환이 되는듯 하다..?
옆에처럼 뉴욕쪽도 알맞게 잘 나옴
notion image
 
 

줌관리


 
notion image
처음 줌이 1로 설정되어서 이렇게 나오는데 wms로 가져온 데이터에 줌되어 geoserver openlayer처럼 나오게 하고싶다
 
geoserver에서 zoom을 어떻게 설정하는지 보면 될듯!
Open Layers 3 center the map based on extent on vector layer?
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
Open Layers 3 center the map based on extent on vector layer?
 
 
extent랑 fit 이라는 개념을 사용하는거 같은데 잘 안된다!! zoom 하고 상호 동시 존재가 안되는 건지 둘 사이에 순서가 있는건지
 
 
 
 

Tile → WMTS


tiledwms보다 wmts가 좋다고 하니 wms tiled코드를 수정해야할듯
 
 
 
notion image
마지막으로 vscode 팁 세미콜론 전체없엠 prettier extension

left Small


wmts 문법분석
 
 
 

Next Big


 
 
 
 

 

Recommendations