02-16-2016 05:47 AM
Is there any way to get the list of possible values for an attribute in analysis using DescribeFeatureType of WFS?
Currenly all the distinct values are populated by sending a GetFeature request.
We are plaaning to add attribute's distinct values in DescribeFeatureType itself, so dont need to send to GetFeature request again for possible values
02-17-2016 01:40 AM - edited 02-17-2016 01:41 AM
This is probably out of scope of Portal SDK but I think it can be easily answered.
DescribeFeatureType cannot list all available attributes as that would be against its meaning. It should only display valid attribute names and types.
I think that GetFeature with a suitable Query is the only correct option, sample to get only NAME attribute values:
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs/2.0" version="2.0.0"
service="WFS" xmlns:gmgml="http://www.intergraph.com/geomedia/gml" count="4000"> <wfs:Query typeNames="gmgml:LODZ_MODERNIZATION_AREAS" srsName="EPSG:3857"> <wfs:PropertyName xmlns="http://www.intergraph.com/geomedia/gml">
</wfs:PropertyName> </wfs:Query> </wfs:GetFeature>