공간데이터베이스를 구성해 보았습니다.
이 공간데이터를 이용해서 지도 서비스를 만들어 보도록 하겠습니다.
지도 서비스를 만들기 위해서는 맵 서비스가 필요한데, 일반적으로 이제는 GeoServer 가 그 대세가 된 것이 아닌가 싶네요
1. GeoServer 구성하기
Download - GeoServer
Maintenance GeoServer 2.25 releases GeoServer 2.25 archives, Java 11 and Java 17 compatible:
geoserver.org
가. GeoServer 다운로드
Platform Independent Binary 를 받도록 한다.
https://sourceforge.net/projects/geoserver/files/GeoServer/2.26.1/geoserver-2.26.1-bin.zip/download
다운로드 받은 파일을 압축 해제 합니다.
나. JDK 다운로드
아래 링크를 확인해 보니 jdk 11이 좋을 듯 하네요
Java Considerations — GeoServer 2.27.x User Manual
Use supported JRE GeoServer’s speed depends a lot on the chosen Java Runtime Environment (JRE). The latest versions of GeoServer are tested with both Oracle JRE and OpenJDK. Implementations other than those tested may work correctly, but are generally no
docs.geoserver.org
jdk 11 링크는 다음과 같네요
JDK 11 Releases
JDK 11 Releases The JDK 11 Early Access Program has concluded. Please visit Java SE Downloads for production ready builds. Older releases, which do not include the most up to date security vulnerability fixes and are no longer recommended for use in produc
jdk.java.net
Archived OpenJDK GA Releases
Archived OpenJDK General-Availability Releases This page is an archive of previously released builds of the JDK licensed under the GNU General Public License, version 2, with Classpath Exception. WARNING: These older versions of the JDK are provided to he
jdk.java.net
JAVA_HOME 은 다음과 같이 설정 했습니다.
SET JAVA_HOME=C:\DEV\SDK\JDK\jdk-11.0.2
라. GeoServer 시작
다음 디렉토리에서 시작 종료 할 수 있습니다.
2. GeoServer 설정하기
다음 페이지로 접근 해 볼 수 있습니다.
http://localhost:8080/geoserver/web
초기 비번은 아래와 같습니다.
admin : geoserver
가. 작업공간 설정
작업공간> 새로운 작업공간 추가
다음과 같이 설정 하도록 합니다.
Name : CCH
네임스페이스 URI: http://g70.design/geoserver/CCH
나. 저장소 설정
이제 공간데이터베이스를 연결해서 레이어를 만들어 봅니다.
저장소 > 새로운 저장소 생성하기
저장하고 나면 다음과 같이 만들어 놓은 레이어 리스트가 보이는 것을 확인 할 수가 있습니다.
다. 레이어 설정
저장소를 설정하고 나면 이제 직접 지도 서비스를 위한 레이어를 설정해 볼 차례입니다.
레이어 > 새로운 레이어 추가하기
모두 발행해 보겠습니다.
똑 같은 지역에 대한 레이어 설정이므로 이 지역의 영역은 거의 비슷 할 것이므로 아래와 같이 BBox 를 확인 해 둡니다.
MinX : -158.27313232421875
MinY : 21.255352020263672
MaxX : -157.65646362304688
MaxY : 21.708740234375
발행이 다 된 모습입니다.
라. 레이어 확인
레이어 미리보기를 통해서 해당 데이터를 확인 할 수 있습니다.
레이어 미리보기 >
제대로 잘 된 듯 하네요
![]() |
![]() |
![]() |
![]() |
'프로그래밍 > GIS' 카테고리의 다른 글
공간 데이터베이스 서비스 이용하기 (0) | 2025.01.10 |
---|---|
공간 데이터베이스 구성하기 (0) | 2025.01.08 |
PostgreSQL과 PostGIS 설치 (0) | 2025.01.07 |
[OSRM] Chat GPT와 함께하는 TSP - 지도 표시 (1) | 2024.12.09 |
[OSRM] Chat GPT와 함께하는 TSP - 마무리 (1) | 2024.12.06 |