1.6 KiB
1.6 KiB
GeoServer - Erreur 404 Interface Web (Création Magasin)
Date : 05 Mai 2026
🔍 Problème
Erreur 404 Not Found quand on essaie de créer un nouvel entrepôt via l'interface web GeoServer :
- URL :
https://geoserver.digitribe.fr/geoserver/web/... - Cause probable : Framework Wicket (session) ou CSRF
✅ Solution : Utiliser l'API REST
L'interface web peut être instable, mais l'API REST fonctionne parfaitement.
Exemple : Créer un magasin WMS cascadé
curl -X POST "https://geoserver.digitribe.fr/geoserver/rest/workspaces/Digitribe/wmsstores" \
-u "admin:Digitribe972" \
-H "Content-Type: application/json" \
-d '{
"wmsStore": {
"name": "geomartinique_wms",
"description": "Flux WMS géoMartinique",
"type": "WMS",
"url": "https://datacarto.geomartinique.fr/wms",
"enabled": true
}
}'
Publier une couche WMS
curl -X POST "https://geoserver.digitribe.fr/geoserver/rest/workspaces/Digitribe/wmsstores/geomartinique_wms/wmslayers" \
-u "admin:Digitribe972" \
-H "Content-Type: application/json" \
-d '{
"wmsLayer": {
"name": "ENVIRONNEMENT",
"title": "Environnement Martinique"
}
}'
📋 Flux géoMartinique disponibles
- WMS :
https://datacarto.geomartinique.fr/wms - WMTS :
https://datacarto.geomartinique.fr/wmts - WFS :
https://datacarto.geomartinique.fr/wfs
🔗 Références
- Test magasin créé avec succès :
test_store(ID dans workspace Digitribe) - API REST GeoServer : https://docs.geoserver.org/stable/en/user/rest/