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

How to get all features at Tap Location on Map

Hi,

Our requirement is to fetch all the features at Tap Location on map. Features from all the layers including WFS, WMS but not finding right API on it.

 

Suggest us right API for it.

 

--Sanjeev.

Sanjeev.Lade@hexagonsi.com

 

Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: How to get all features at Tap Location on Map

The MMW Essentials application is in GetFeatureInfo mode by deafult. If you tap on a location the GetFeature/GetFeatureInfo requests are sent. The API that you used: $GP.events.featureInfo.completed seems suitable. Isn't it enough?

Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-11-2015

Re: How to get all features at Tap Location on Map

[ Edited ]

Working only for WMS layers and not working for any WFS layers.

Error for WFS

 

{isFinal: false, datasetId: "a62b2b07-85db-40b3-96ed-18027f326a6e", 
id: "{http://www.intergraph.com/infrastructure/gml}V_POLE_PT", 
message: "Assertion failed: localName should be FeatureCollection", success: false}

 

Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: How to get all features at Tap Location on Map

I found two issues:

 

1. The geoserver can’t parse the filter we send, which according to schema is valid.
 
The request being sent:
 
Response
<ows:ExceptionText>
org.xml.sax.SAXException: Attempted to construct illegal filter - I dont understand the tag: gml:exterior. HINT: tags are case-sensitive! Attempted to construct illegal filter - I dont understand the tag: gml:exterior. HINT: tags are case-sensitive!
</ows:ExceptionText>
 
2. Probably there is something wrong with your backend configuraiton.
 
Request:
 
Reponse:
<ows:ExceptionText>
Attribute is not configured for the view V_POLE_PT
</ows:ExceptionText>
 
Highlighted
Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: How to get all features at Tap Location on Map

Issue number 2 is related to the default geometryFieldName in WFS configuration. It it was not provided an empty value was used in the WFS requests. 

 

It is fixed in build 15.1.54.

The default geometryFieldName is "Geometry".