Bart, Assefa,
FYI I just added the following notes to the MIGRATION_GUIDE.TXT (in 4.10
CVS):
----------------------------------------------------
OGC Web Mapping Service (WMS)
----------------------------------------------------
WMS GetFeatureInfo in text/plain format
---------------------------------------
Before MapServer 4.10, WMS GetFeatureInfo output in text/plain format
used to always return the values of *all* attributes for the selected
shapes in a given layer and there was no way to control which attributes
would be returned. This was a problem for WMS server administrators who
needed to control the list of attributes to return or to hide some
attributes from the underlying dataset.
Starting with MapServer 4.10, the behavior of text/plain GetFeatureInfo
output has been brought in sync with that of GML output: by default
no attributes are returned unless the wms_include_items and
wms_exclude_items layer-level metadata are used. (See bug 1761)
For more details see the gml_include_items and gml_exclude_items layer
object metadata docs in the WMS Server HOWTO at
http://mapserver.gis.umn.edu/docs/howto/wms_server/#layer-object-metadata
The GML output is controlled with gml_include_items and gml_exclude_items.
The text/plain output is controlled with wms_include_items and
wms_exclude_items.
Both GML and text/plain can also be configured using a common pair of
ows_include_items and ows_exclude_items layer-level metadata entries.
----------------------------------------------------
OGC Web Feature Service (WFS)
----------------------------------------------------
Requirement for gml_featureid
-----------------------------
The WFS 1.0.0 specification states that the 'fid' attribute on GML features
returned in response to a GetFeature is required (see bug 1759).
Since MapServer 4.8 it was already possible to specify the attribute to
use as fid using the "gml_featureid" metadata, but that was not a
requirement.
MapServer 4.10 has been modified to produce a warning in the GetCapabilities
and GetFeature output if the gml_featureid metadata is not set or if the
item that it refers to does not exist in the layer (see bugs 1781 and 1782).
Bart van den Eijnden (OSGIS) wrote:
Hi Assefa,
that was it, thanks :-)
I only had gml_include_items "all", I now changed it to
ows_include_items "all".
Best regards,
Bart
Yewondwossen Assefa schreef:
Bart,
Therre was an additon of layer level metadata wms/ows_include_items
and wms/ows_exclude_items to control the text/pain output the same way
as the gml output
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1761).
Adding "wms_include_items" "all" should output the attributes.
Later,
Bart van den Eijnden (OSGIS) wrote:
Hi list,
any ideas why my GetFeatureInfo in text/plain does not return any
attributes? GML output does not return attributes. I am using 4.10
beta2.
Request used:
http://localhost/cgi-bin/mapserv.exe?map=/lausanne/mapserver/provinces_of_holland.map&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.1.1&LAYERS=topp:nl-prov&STYLES=default&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:28992&BBOX=-91079.1366906475,300000,391079.136690647,600000&WIDTH=1117&HEIGHT=695&QUERY_LAYERS=topp:nl-prov&X=545&Y=475&info_format=text/plain
Response:
GetFeatureInfo results:
Layer 'topp:nl-prov'
Feature 23:
MAP file LAYER:
LAYER
DATA "nl-prov"
METADATA
OWS_TITLE "Provinces"
GML_INCLUDE_ITEMS "all"
OWS_SRS "EPSG:4326 EPSG:28992"
END
NAME "topp:nl-prov"
STATUS ON
PROJECTION
"init=epsg:28992"
END
TYPE POLYGON
DUMP TRUE
TEMPLATE "blank.html"
CLASS
NAME "Provinciegrenzen"
STYLE
COLOR 255 255 0
OUTLINECOLOR 0 0 0
END
END
END
Thanks in advance.
Best regards,
Bart
--
Daniel Morissette
http://www.mapgears.com/