Skip to content
Snippets Groups Projects
Commit cb273383 authored by Frédéric Carretero's avatar Frédéric Carretero
Browse files

Informations du GetFeatureInfo au format GML.

parent 7b990626
No related branches found
No related tags found
No related merge requests found
......@@ -87,3 +87,33 @@ END
Enfin il faudra au travers du formulaire du calque définir que ce dernier est interrogeable au travers de la requête GetFeatureInfo.
![Administration couche GetFeatureInfo](../images/getfeatureinfo/admin_calque.jpg)
### Informations au format GML
Afin de retourner les informations de la requête GetFeatureInfo au format GML, plusieurs paramètres sont obligatoires :
* Dans le mode MapServer à l'objet web : `"wms_getfeatureinfo_formatlist" "application/vnd.ogc.gml"` et `"wms_feature_info_mime_type" "gml"`.
Exemple :
```
WEB
METADATA
"wms_title" "{WMSSERVICE_ID}"
"wms_onlineresource" "{WMSSERVICE_URL}"
"wms_getfeatureinfo_formatlist" "application/vnd.ogc.gml"
"wms_feature_info_mime_type" "gml"
"wms_srs" "EPSG:2154"
"wms_enable_request" "*"
END
# Les attributs TEMPLATE, IMAGEPATH et IMAGEURL sont ajoutés dynamiquement lors des tests. Ils sont inutiles en production
END
```
* Dans chaque couche, ajouter le paramètre `"gml_include_items" "all"` afin de retourner tous les attributs.
Exemple :
```
METADATA
"gml_include_items" "all"
END
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment