Raspberrypi.osm-tile-server: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 3: | Zeile 3: | ||
apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql | apt install postgresql-postgis mapnik-vector-tile mapnik-utils osm2pgsql | ||
sudo -u postgres psql | sudo -u postgres psql | ||
CREATE EXTENSION postgis; | CREATE EXTENSION postgis; | ||
SELECT name, default_version,installed_version FROM pg_available_extensions WHERE name LIKE 'postgis%'; | SELECT name, default_version,installed_version FROM pg_available_extensions WHERE name LIKE 'postgis%'; | ||
\q | |||
== hole Deutschland == | == hole Deutschland == |
Version vom 26. März 2020, 23:26 Uhr
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
importiere Deutschland
sudo -u postgres osm2pgsql --slim --username postgres --database gis germany-latest.osm.pbf