GeoServer: flux géoMartinique + XStream issue doc + workaround
This commit is contained in:
68
geoserver_geomartinique_integration.md
Normal file
68
geoserver_geomartinique_integration.md
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user