Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-11-2015

Reg : GeoSpatial portal analysis Filter - GetValues request

Hi,

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

Highlighted
Technical Evangelist
Posts: 1,307
Registered: ‎09-11-2015

Re: Reg : GeoSpatial portal analysis Filter - GetValues request

[ Edited ]

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">
NAME
</wfs:PropertyName> </wfs:Query> </wfs:GetFeature>
Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial