My Own Mapserver: Unterschied zwischen den Versionen

Aus DL8RDS Wiki
Wechseln zu: Navigation, Suche
(Preparations)
(Data Import)
Zeile 22: Zeile 22:
 
  postgresql-9.5-postgis-scripts
 
  postgresql-9.5-postgis-scripts
  
=== Data Import ===
+
=== Get the Mapnik style ===
  
$ sudo aptitude install postgis imposm git postgresql postgresql-9.1-postgis
 
 
  $ mkdir ~/src
 
  $ mkdir ~/src
 
+
  $ cd ~/src
  cd ~/src && wget http://download.geofabrik.de/europe/germany/rheinland-pfalz-latest.osm.pbf
+
$ svn co http://svn.openstreetmap.org/applications/rendering/mapnik mapnik-style
 
+
$ cd ~/src/mapnik-style
 +
$ sudo ./get-coastlines.sh /usr/local/share
  
 
=== OSM-Bright Configuration ===
 
=== OSM-Bright Configuration ===

Version vom 29. Dezember 2017, 04:45 Uhr

1 Scope

We have a really great high performance computer at DB0HSR, and since we're going to do several geography based experiments with it, we need our own mapserver to display positions.

There are other mapservers in the HAMNET:

2 Implementation

I am replicating this report:

2.1 Preparations

$ sudo apt-get install libmapnik-dev mapnik-utils git subversion \
dh-autoreconf apache2-dev apache2 unzip postgis make cmake g++ \
libboost-dev libboost-system-dev libboost-filesystem-dev \
libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev \
lua5.2 liblua5.2-dev postgis imposm git postgresql postgresql-9.5-postgis-2.2 \
postgresql-9.5-postgis-scripts

2.2 Get the Mapnik style

$ mkdir ~/src
$ cd ~/src
$ svn co http://svn.openstreetmap.org/applications/rendering/mapnik mapnik-style
$ cd ~/src/mapnik-style
$ sudo ./get-coastlines.sh /usr/local/share

2.3 OSM-Bright Configuration

2.4 Generate MBTiles with TileMill

2.5 Deploy MBTiles with TileStream