Hi Steve,

The output would look something like the output in 
https://inspire.ec.europa.eu/schemas/au/4.0/AdministrativeUnits.xsd

<element minOccurs="0" name="upperLevelUnit" nillable="true" 
type="gml:ReferenceType">
<annotation>
<documentation>
-- 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.
</documentation>
<appinfo>
<targetElement>au:AdministrativeUnit</targetElement>
<reversePropertyName>au:lowerLevelUnit</reversePropertyName>
</appinfo>
</annotation>
</element>

Maybe this is part of the ISO standard used by GetLayerMetadata - 
https://mapserver.org/ogc/layer_metadata.html ?
WFS GetFeatureType doesn't seem to have a description field - 
http://schemas.opengis.net/wfs/2.0/examples/DescribeFeatureType/DescribeFeatureType_Example01_Response.xsd

It seems a missed opportunity not to be able to document fields alongside 
autogenerated type/nillable information from the source. 

Seth



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


On Tue, Mar 30, 2021, at 8:36 PM, Steve Lime wrote:
> Hi Seth: I don't think adding it would be difficult. What would the emitted 
> attribute look like w/that property added? --Steve
> 
> On Sat, Mar 27, 2021 at 4:11 PM Seth G <[email protected]> wrote:
>> 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
>> _______________________________________________
>> mapserver-users mailing list
>> [email protected]
>> https://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to