stable: finalized GIS aesthetics and Syria/Jordan routing synchronization
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
DATA_DIR="/home/hamzadoctor/app/infrastructure/osm-data"
|
||||
|
||||
echo "Downloading Syria map data..."
|
||||
curl -L -o "$DATA_DIR/syria-latest.osm.pbf" https://download.geofabrik.de/asia/syria-latest.osm.pbf
|
||||
|
||||
echo "Merging Syria and Jordan..."
|
||||
# Backup original Jordan if not already backed up
|
||||
if [ ! -f "$DATA_DIR/jordan-latest.orig.osm.pbf" ]; then
|
||||
cp "$DATA_DIR/jordan-latest.osm.pbf" "$DATA_DIR/jordan-latest.orig.osm.pbf"
|
||||
fi
|
||||
|
||||
# Use --overwrite flag and ensure .pbf extension is at the end
|
||||
osmium merge "$DATA_DIR/jordan-latest.orig.osm.pbf" "$DATA_DIR/syria-latest.osm.pbf" -o "$DATA_DIR/levant-latest.osm.pbf" --overwrite
|
||||
|
||||
echo "Replacing data file for import..."
|
||||
mv "$DATA_DIR/levant-latest.osm.pbf" "$DATA_DIR/jordan-latest.osm.pbf"
|
||||
|
||||
echo "Re-importing to database (this may take a few minutes)..."
|
||||
cd /home/hamzadoctor/app
|
||||
docker compose run --rm osm-import
|
||||
|
||||
echo "Restarting services..."
|
||||
docker compose restart martin api
|
||||
|
||||
echo "✅ Success! Jordan and Syria are now merged and imported."
|
||||
Reference in New Issue
Block a user