Geoshape Constraint not working

138
1
a week ago
janine_mapss
New Contributor II

I am trying to add a constraint on the size of the polygon drawn.

I have put ".>0 and .<10000" in the constraint column for the geoshape field type but no error message is thrown when I draw a polygon larger than this area. What am I doing wrong? Am I correct in saying that you cannot test whether a constraint works or not without first publishing a survey and attempting to submit a survey? I have tried this as well and there was still no restriction on the size limit. 

0 Kudos
1 Reply
DougBrowning
MVP Esteemed Contributor

I think you need to use area to get the area then out a constraint on that.  See this post  https://community.esri.com/t5/arcgis-survey123-questions/geoshape-type/td-p/800783 

and here  https://doc.arcgis.com/en/survey123/desktop/create-surveys/geotracegeoshape.htm#ESRI_SECTION1_22EFB8... 

You can use geotrace and geoshape questions in calculations to display and record geometry attributes such as length (for geotrace) and perimeter and area (for geoshape). The distance() and area() functions are used to build an expression with the geotrace or geoshape question. The distance() function returns a result in meters, and the area() function returns a result in square meters. See the geotrace and geoshape sample in Survey123 Connect for examples of calculations that convert these results into other units.

0 Kudos