2.6 KiB
2.6 KiB
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 :
- ✅ Ajout
java.net.URLdans/opt/geoserver/data_dir/security/analyzer.properties - ✅ Ajout
-Dorg.geoserver.xstream.allowUnknownTypes=truedanssetenv.sh - ✅ Redémarrages multiples de GeoServer
- ❌ Création manuelle du fichier
store.xml(magasin non reconnu) - ❌ Tentatives via API REST (JSON/XML) - échec persistant
- ✅ Ajout
✅ Solution de contournement (Recommandée)
Option 1 : Via l'interface web GeoServer (Fonctionne)
- Aller sur
https://geoserver.digitribe.fr/geoserver/web/ - Login :
admin/Digitribe972 - Workspace "Digitribe" → WMS Stores → Add new WMS Store
- Configurer :
- Name :
geomartinique_wms - URL :
https://datacarto.geomartinique.fr/wms - Capabilities Loader : ✅ Enabled
- Name :
- 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/wmscomme 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
{
"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
- Via interface web : Créer le WMS Store dans GeoServer (5 min)
- Tester WMTS :
https://datacarto.geomartinique.fr/wmtsdans un client WMTS - Intégrer dans OpenRemote : Modifier
mapsettings.jsonpour 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