OSM, POSTGIS, GEOSERVER, WMS
Google 지도와 유사한 OSM 데이터로 Geowebcache 계층을 만들기 위한 단계별 튜토리얼
osmgwc란 무엇인가?
오스mgwc는 구글 맵스의 디자인과 유사해 보이는 빠른 캐시 WMS 레이어를 만드는 방법에 대한 단계별 튜토리얼이다. 주요 차이점은 포스트에 저장된 무료 오픈 소스 오픈스트리트맵(OSM) 데이터를 기반으로 한다는 것이다.GIS 데이터베이스 및 GeoServer와 함께 제공됨. 또 다른 차이점은 당신이 선택한 공간 참조 시스템(SRS)에 저장된다는 것이다.
아래 단계에 따라 OSM 데이터를 다운로드하고 빈 데이터베이스를 생성한 다음 원하는 SRS의 지오다타로 채운 다음 데이터를 다른 테이블(설정, 강 등)으로 분할하고 GeoServer에서 레이어로 추가한 다음 CSS 스타일로 스타일을 설정하고 결합 레이어 그룹을 생성하고 SRS에 대한 그리드를 정의한 후 캐시된 데이터베이스를 게시하십시오. 층을 이루다
이 튜토리얼에서는 헝가리의 데이터를 사용할 것이다. 이 나라의 OSM 데이터의 크기는 처리하는데 합리적인 시간이 필요하다.
fegyi001/osmgwc
A step-by-step tutorial to create a geowebcache layer from OSM data which will look a lot like Google Maps - fegyi001/osmgwc
github.com
computingforgeeks.com/how-to-install-pgadmin-4-on-ubuntu/
Install pgAdmin 4 on Ubuntu 20.04/18.04/16.04 | ComputingForGeeks
How to Install pgAdmin4 on Ubuntu 20.04/18.04/16.04?. This post has been written primarily to guide new users on installing pgAdmin 4 on Ubuntu
computingforgeeks.com
Prerequisites
-
PostgreSQL with PostGIS:
For this tutorial I used PostgreSQL v.9.6.1 with PostGIS v.2.3.0
-
GeoServer with the CSS plugin:
For this tutorial I used GeoServer v.2.10.0. Download the CSS plugin from here, then unzip it into GeoServer's lib folder which can be found here: [GeoServer install dir]/webapps/geoserver/WEB-INF/lib, then restart GeoServer.
-
osm2pgsql
osm2pgsql is an open source tool to populate a PostGIS database with osm data. For Windows download from here, for Linux run this command: apt-get install -y osm2pgsql
-
bzip2
bzip2 is an unzipper tool that can be used to extract data from .bz2 files. For Windows download from here, for Linux run this command: apt-get install -y bzip2
-
proj
To be able to store OSM data in an SRS of your choice the proj library is needed. If you use Windows, the usage of OSGeo4W is recommended. With advanced install you should select the proj package from the commandline utilities as well as from the libs. If you use Linux run this command: apt-get install -y libproj-dev
computingforgeeks.com/how-to-install-pgadmin-4-on-ubuntu/
computingforgeeks.com/how-to-install-pgadmin-4-on-ubuntu
computingforgeeks.com/install-postgresql-12-on-ubuntu/
computingforgeeks.com/install-postgresql-12-on-ubuntu/
PostgreSQL Database Download
Please Note: EDB no longer provides Linux installers for PostgreSQL 11 and later versions, and users are encouraged to use the platform-native packages. Version 10.x and below will be supported until their end of life. For more information, please see this
www.enterprisedb.com
Download OSM data
The data is freely available on GEOFABRIK's download site. For Hungary download the latest dataset in bz2 format from here (~200 MB). After download, extract it to a folder of your choice. Its extension is .osm and its size is about 2.5 GB.
Create a new PostGIS database
Create a new database (in this tutorial this will be called 'osm'), then run this for the newly created database:
create extension postgis;