<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Steve,<br></div><div><br></div><div>The output would look something like the output in <a href="https://inspire.ec.europa.eu/schemas/au/4.0/AdministrativeUnits.xsd">https://inspire.ec.europa.eu/schemas/au/4.0/AdministrativeUnits.xsd</a><br></div><div><br></div><div><element minOccurs="0" name="upperLevelUnit" nillable="true" type="gml:ReferenceType"><br></div><div><annotation><br></div><div><documentation><br></div><div>-- Name -- upper level unit -- Definition -- A unit established at a higher level of national administrative hierarchy that this administrative unit administers. -- Description -- NOTE Administrative units at the highest level of national hierarchy (i.e. the country) do not have upper level units. CONSTRAINT Each administrative unit at the level other than '1st order' (i.e. nationalLevel <> '1st order') shall refer their upper level unit.<br></div><div></documentation><br></div><div><appinfo><br></div><div><targetElement>au:AdministrativeUnit</targetElement><br></div><div><reversePropertyName>au:lowerLevelUnit</reversePropertyName><br></div><div></appinfo><br></div><div></annotation><br></div><div></element><br></div><div><br></div><div>Maybe this is part of the ISO standard used by GetLayerMetadata - <a href="https://mapserver.org/ogc/layer_metadata.html">https://mapserver.org/ogc/layer_metadata.html</a> ?<br></div><div>WFS GetFeatureType doesn't seem to have a description field - <a href="http://schemas.opengis.net/wfs/2.0/examples/DescribeFeatureType/DescribeFeatureType_Example01_Response.xsd">http://schemas.opengis.net/wfs/2.0/examples/DescribeFeatureType/DescribeFeatureType_Example01_Response.xsd</a><br></div><div><br></div><div>It seems a missed opportunity not to be able to document fields alongside autogenerated type/nillable information from the source. <br></div><div><br></div><div>Seth<br></div><div><br></div><div><br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:http://geographika.co.uk<br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div><br></div><div>On Tue, Mar 30, 2021, at 8:36 PM, Steve Lime wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr">Hi Seth: I don't think adding it would be difficult. What would the emitted attribute look like w/that property added? --Steve<br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Sat, Mar 27, 2021 at 4:11 PM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>Hi all,<br></div><div> <br></div><div> Is anyone aware of any OGC service which can return comments for a layer attribute/field?<br></div><div> 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:<br></div><div> <br></div><div> <xs:element name="field1" type="xs:double" nillable="true" minOccurs="0"/><br></div><div> <br></div><div> The docs for the WFS layer object <a href="https://www.mapserver.org/ogc/wfs_server.html#layer-object" rel="noreferrer" target="_blank">https://www.mapserver.org/ogc/wfs_server.html#layer-object</a> allow the following to be set for each attribute:<br></div><div> <br></div><div> gml_[item name]_alias<br></div><div> gml_[item name]_precision<br></div><div> gml_[item name]_type<br></div><div> gml_[item name]_value<br></div><div> gml_[item name]_width<br></div><div> <br></div><div> 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:<br></div><div> <br></div><div> gml_[item name]_description<br></div><div> <br></div><div> This way the automated parts of the attribute (type, precision etc.) could be included along with a description of what the field contains. <br></div><div> <br></div><div> Does anyone have a way of handling this with MapServer?<br></div><div> <br></div><div> Seth<br></div><div> <br></div><div> [1] <a href="http://opengeospatial.github.io/e-learning/wfs/text/operations.html#describefeaturetype" rel="noreferrer" target="_blank">http://opengeospatial.github.io/e-learning/wfs/text/operations.html#describefeaturetype</a><br></div><div> <br></div><div> <br></div><div> --<br></div><div> web:<a href="http://geographika.co.uk" rel="noreferrer" target="_blank">http://geographika.co.uk</a><br></div><div> twitter: @geographika<br></div><div> _______________________________________________<br></div><div> mapserver-users mailing list<br></div><div> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div><div> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div></blockquote></div></blockquote><div><br></div></body></html>