Raspberrypi.osm-tile-server: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 2: | Zeile 2: | ||
apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql | apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql | ||
== test == | |||
sudo -u postgres psql | sudo -u postgres psql | ||
Version vom 26. März 2020, 23:33 Uhr
hole software
apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql
test
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