#!/bin/bash # Configure tous les datastores GeoServer pour Smart City Digital Twin # Usage: bash configure-all-datastores.sh GEOSERVER_URL="https://geoserver.digitribe.fr/geoserver" USER="admin" PASS="Digitribe972" # 1. Create workspace smartcity curl -s -u $USER:$PASS -X POST "$GEOSERVER_URL/rest/workspaces" \ -H "Content-type: text/xml" \ -d 'smartcity' # 2. FROST PostgreSQL (SensorThings) curl -s -u $USER:$PASS -X POST "$GEOSERVER_URL/rest/workspaces/smartcity/datastores" \ -H "Content-type: text/xml" \ -d ' frost-sensorthings 0cd2213a58ad 5432 sensorthings sensorthings Digitribe972 postgis ' echo "✅ FROST datastore configured" # 3. Stellio PostgreSQL + TimescaleDB # (À compléter avec identifiants Stellio) # 4. MapStore PostGIS # (À compléter avec identifiants MapStore) # 5. Orion-LD MongoDB # Nécessite extension MongoDB dans GeoServer # (À installer si manquante) echo "🎉 Configuration terminée"