feat(tactical): add tactical line of sight API, elevation engine, dynamic step resolution, weather module and executive showcase
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# ==============================================================================
|
||||
# Script: import_official_boundaries.sh
|
||||
# Purpose: Import and standardize Jordan Official International & Governorate Boundaries
|
||||
# Source: UN geoBoundaries Official ADM0 (National) & ADM1 (12 Governorates)
|
||||
# ==============================================================================
|
||||
|
||||
echo "================================================================="
|
||||
echo "🇯🇴 Importing Official Jordan International & Governorate Boundaries..."
|
||||
echo "================================================================="
|
||||
|
||||
if [ -f .env ]; then
|
||||
export $(grep -v '^#' .env | xargs)
|
||||
fi
|
||||
|
||||
DB_USER=${POSTGRES_USER:-postgres}
|
||||
DB_NAME=${POSTGRES_DB:-gis}
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
SQL_FILE="$SCRIPT_DIR/data/boundaries/import_official_jordan.sql"
|
||||
|
||||
if [ ! -f "$SQL_FILE" ]; then
|
||||
echo "Generating SQL from official GeoJSON files..."
|
||||
python3 "$SCRIPT_DIR/data/boundaries/generate_sql.py"
|
||||
fi
|
||||
|
||||
echo "1. Inserting official Jordan National Boundary & 12 Governorates into PostGIS..."
|
||||
docker exec -i map-db psql -U "$DB_USER" -d "$DB_NAME" < "$SQL_FILE"
|
||||
|
||||
echo "2. Restarting Martin Tile Server to apply updated boundary tiles..."
|
||||
docker compose restart martin
|
||||
|
||||
echo "================================================================="
|
||||
echo "✅ Official Jordan Boundaries applied successfully!"
|
||||
echo "Refresh your browser at https://map-saas.intaleqapp.com/#compare"
|
||||
echo "================================================================="
|
||||
Reference in New Issue
Block a user