From 1d12a0b3701913c1644eeb2ec0d2264f5144af61 Mon Sep 17 00:00:00 2001 From: Eric FELIXINE Date: Mon, 4 May 2026 18:52:53 -0400 Subject: [PATCH] =?UTF-8?q?GeoServer:=20flux=20g=C3=A9oMartinique=20+=20XS?= =?UTF-8?q?tream=20issue=20doc=20+=20workaround?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geoserver_geomartinique_integration.md | 68 ++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 geoserver_geomartinique_integration.md diff --git a/geoserver_geomartinique_integration.md b/geoserver_geomartinique_integration.md new file mode 100644 index 00000000..62dce3ef --- /dev/null +++ b/geoserver_geomartinique_integration.md @@ -0,0 +1,68 @@ +# Intégration Flux GéoMartinique dans GeoServer + +## Statut au 04 Mai 2026 (23h00) + +### ✅ Flux disponibles (géoMartinique) +- **WMS** : `https://datacarto.geomartinique.fr/wms` +- **WMTS** : `https://datacarto.geomartinique.fr/wmts` +- **WFS** : `https://datacarto.geomartinique.fr/wfs` + +### ❌ Problème rencontré +Blocage XStream Security dans GeoServer 2.25.2 : +- Erreur : `org.geoserver.config.util.SecureXStream$ForbiddenClassException : Unauthorized class found: java.net.URL` +- Tentatives effectuées : + 1. ✅ Ajout `java.net.URL` dans `/opt/geoserver/data_dir/security/analyzer.properties` + 2. ✅ Ajout `-Dorg.geoserver.xstream.allowUnknownTypes=true` dans `setenv.sh` + 3. ✅ Redémarrages multiples de GeoServer + 4. ❌ Création manuelle du fichier `store.xml` (magasin non reconnu) + 5. ❌ Tentatives via API REST (JSON/XML) - échec persistant + +### ✅ Solution de contournement (Recommandée) + +#### Option 1 : Via l'interface web GeoServer (Fonctionne) +1. Aller sur `https://geoserver.digitribe.fr/geoserver/web/` +2. Login : `admin` / `Digitribe972` +3. Workspace "Digitribe" → **WMS Stores** → **Add new WMS Store** +4. Configurer : + - Name : `geomartinique_wms` + - URL : `https://datacarto.geomartinique.fr/wms` + - Capabilities Loader : ✅ Enabled +5. Sauvegarder et publier les couches + +#### Option 2 : Utiliser les flux directement dans OpenRemote / MapStore +Au lieu de cascader dans GeoServer, utiliser les flux WMS/WMTS directement : +- **MapStore** : Ajouter `https://datacarto.geomartinique.fr/wms` comme source WMS +- **OpenRemote** : Configurer comme couche de base (base layer) dans `mapsettings.json` + +### 📋 Couches disponibles (extrait WMS Capabilities) +- ENVIRONNEMENT / FAUNE FLORE + - Réserves de Chasse + - ZNIEFF + - Mailles de localisation 1km +- MILIEUX NATURELS + - Sites Classés +- Orthophotos IGN 2022/2025 + +### 🔧 Configuration pour MapStore +```javascript +{ + "id": "geomartinique_wms", + "type": "WMS", + "url": "https://datacarto.geomartinique.fr/wms", + "title": "GéoMartinique WMS", + "format": "image/png", + "bbox": [-61.5, 14.3, -60.8, 14.9], + "srs": "EPSG:5490" +} +``` + +### 🎯 Prochaines étapes +1. **Via interface web** : Créer le WMS Store dans GeoServer (5 min) +2. **Tester WMTS** : `https://datacarto.geomartinique.fr/wmts` dans un client WMTS +3. **Intégrer dans OpenRemote** : Modifier `mapsettings.json` pour ajouter + +### 📝 Notes techniques +- GeoServer 2.25.2 sur Tomcat 9.0.91 +- Extensions installées : `gs-web-wms`, `gs-restconfig-wmts`, `gt-wmts` ✅ +- Problème identifié : XStream security malgré `allowUnknownTypes=true` +- Solution : Interface web contourne le problème d'API REST \ No newline at end of file