AppStudio Survey123/Quick Report: Polygon Barrier QML?

492
2
09-04-2019 08:44 AM
AlexP_
by
Regular Contributor

Hello,

 

I have an AppStudio 4.0 Desktop Edition with Survey123 and Quick Report. Edit in QT creator. Please see link. Is it polygon barrier? PolygonBarrier QML Type | ArcGIS for Developers.   Is there a way to restrict where reports can be drawn by specifying the name of an uneditable polygon layer such as city limits? Reports will only be accepted within the boundaries of features in this layer. The locations of reports will only be restricted in maps that contain an uneditable polygon layer? Please advise as soon as possible. Thank you team.

PolygonBarrier QML Type | ArcGIS for Developers  

cc: AppStudio for ArcGIS‌ cc: Survey123 for ArcGIS

0 Kudos
2 Replies
nakulmanocha
Esri Regular Contributor

Hi Alex,

You can simply run a check if the drawn geometry is contained by the boundary geometry using the  contains or within method of GeometryEngine QML type. You need to make sure the geometries you are comparing are in the same spatial reference.

GeometryEngine QML Type | ArcGIS for Developers 

If it returns false, then throw the message to re-input the geometry and clear the previously drawn geometry. You can also perform another check if the current location is within the polygon boundary. Otherwise you don't allow them to move forward with report such as disabling the Next button. It just depends on what is your requirement.

If you need help in how to get the geometry of the Polygon boundary layer, please feel free to open a support ticket to provide high level overview on how that can be done using ArcGIS Runtime. 

Nakul

0 Kudos
AlexP_
by
Regular Contributor

Nakul,

Thank you for the information. I will look into it and will get it back to you. 

0 Kudos