From 5d486d18e16f9e7a0bff67dce5704b70b42ffd8c Mon Sep 17 00:00:00 2001 From: Roland Date: Tue, 8 Mar 2022 13:35:29 -0700 Subject: [PATCH] Using map import script in map install script. --- scripts/ubuntu_20.04_install_map.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/ubuntu_20.04_install_map.sh b/scripts/ubuntu_20.04_install_map.sh index 2a2d8613..2a9b2803 100755 --- a/scripts/ubuntu_20.04_install_map.sh +++ b/scripts/ubuntu_20.04_install_map.sh @@ -47,9 +47,7 @@ fi # Use D.C. to initialized DB because it is so small. wget --continue https://download.geofabrik.de/north-america/us/district-of-columbia-latest.osm.pbf \ -O /tmp/district-of-columbia-latest.osm.pbf -sudo -u wrolpi /usr/bin/osm2pgsql -d gis --create --slim -G --hstore --tag-transform-script \ - /opt/openstreetmap-carto/openstreetmap-carto.lua -C 2000 --number-processes 4 \ - -S /opt/openstreetmap-carto/openstreetmap-carto.style /tmp/district-of-columbia-latest.osm.pbf +sudo -u wrolpi /bin/bash /opt/wrolpi/scripts/import_map.sh /tmp/district-of-columbia-latest.osm.pbf # Initialize indexes and global polygons. sudo -u wrolpi psql -d gis -f /opt/openstreetmap-carto/indexes.sql sudo -u wrolpi /opt/openstreetmap-carto/scripts/get-external-data.py -d gis -U wrolpi