Quick Report - Geofencing/add point within polygons.

145
1
04-19-2021 10:22 AM
RyanPiper
New Contributor

I am trying to figure out how to ensure app users cannot add new points unless they are within one of 180+ polygons on a map. 

I want to implement this function within the Quick Report Application. I do not want to filter out points made outside of the polygons later on and it doesn't seem possible to define an area of interest in the set  view definition for 180+ locations.

Any help would be much appreciated. Thanks!

0 Kudos
1 Reply
ErwinSoekianto
Esri Regular Contributor

@RyanPiper 

 

This is interesting, that is a quite heavy operation to check the new point against 180+ polygons, but its not impossible. You basically need to use the Geometry Engine operation from ArcGIS Runtime SDK for Qt, I would use intersect operation. https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-geometryengine.html 

Checking if the point is within the the 180+ polygons, then if this is all true, then proceed with the submission process. 

 

Erwin. 

0 Kudos