Raspberrypi.osm-tile-server

Aus OrgaMon Wiki
Zur Navigation springen Zur Suche springen

hole software

apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql
sudo -u postgres psql

CREATE EXTENSION postgis;
SELECT name, default_version,installed_version FROM pg_available_extensions WHERE name LIKE 'postgis%';
\q

hole Deutschland

wget https://download.geofabrik.de/europe/germany-latest.osm.pbf

erstelle die Datenbank

sudo -u postgres createdb gis
sudo -u postgres psql gis -c "CREATE EXTENSION postgis";

importiere Deutschland

sudo -u postgres osm2pgsql --slim --username postgres --database gis germany-latest.osm.pbf