[mapserver-users] Layer Attribute Metadata

Seth G sethg at geographika.co.uk
Sat Mar 27 14:11:00 PDT 2021


Hi all,

Is anyone aware of any OGC service which can return comments for a layer attribute/field?
The WFS DescribeFeatureType [1] seems the most likely candidate but has no "description" or equivalent property at the attribute level. Attributes are returned as follows:

<xs:element name="field1" type="xs:double" nillable="true" minOccurs="0"/>

The docs for the WFS layer object https://www.mapserver.org/ogc/wfs_server.html#layer-object allow the following to be set for each attribute:

gml_[item name]_alias
gml_[item name]_precision
gml_[item name]_type
gml_[item name]_value
gml_[item name]_width

It would be nice if there was an option to set something like the following, and have it returned as part of the layer metadata:

gml_[item name]_description

This way the automated parts of the attribute (type, precision etc.) could be included along with a description of what the field contains. 

Does anyone have a way of handling this with MapServer?

Seth

[1] http://opengeospatial.github.io/e-learning/wfs/text/operations.html#describefeaturetype


--
web:http://geographika.co.uk
twitter: @geographika


More information about the mapserver-users mailing list