#1 Thu 25 February 2010 19:49
- zac
- Participant occasionnel
- Date d'inscription: 16 Apr 2009
- Messages: 27
problème configuration service wms mapserver
Bonjour,
J'essaie de mettre en place une application web se basant sur le triptyque PostGIS/Mapserver/OpenLayers.
Je veux afficher des couches vecteur PostGIS en utilsant un service WFS.
Je teste actuellement mon mapfile grâce à une requête "get capabilities".
J'obtiens des "<!-- WARNING: Mandatory metadata '..._title' was missing in this context." pour le name "map" (bloc map) et le name "znieff" (bloc layer)
J'ai pourtant bien des blocs metadata dans le bloc web et layer. J'ai exactement la même structure de mapfile que celle utilisée dans l'exemple du site de mapserver. Voici le code :
Code:
MAP
NAME "map"
IMAGETYPE PNG
EXTENT 30000 242000 436000 646000
SIZE 1024 768
IMAGECOLOR 250 250 250
STATUS ON
PROJECTION
"init=epsg:32622"
END
WEB
IMAGEPATH "/ms4w/Apache/htdocs/tmp"
IMAGEURL "tmp"
METADATA
"wfs_title" "web_metadata"
"wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?map=c:/ms4w/Apache/htdocs/tp_openlayers/znieff.map&?"
"wfs_srs" "epsg:32622"
END
END
LAYER
NAME "znieff"
METADATA
"wfs_title" "znieff"
"gml_featureid" "oid"
"gml_include_items" "all"
END
STATUS ON
TYPE POLYGON
CONNECTIONTYPE postgis
CONNECTION "user=**** dbname=**** password=**** host=****"
DATA "the_geom FROM znieff_type1"
DUMP TRUE
PROJECTION
"init=epsg:32622"
END
CLASS
NAME "class"
COLOR 150 255 200
OUTLINECOLOR 120 200 120
END
END
ENDSi j'essaie d'executer un "getfeature", j'obtiens le message suivant : "WMS Server Error : Incomplete or unsupported WMS request".
Merci pour votre aide car je tourne en rond !!!
Hors ligne


