Select to view content in your preferred language

geoshape type

3708
8
Jump to solution
03-20-2019 01:54 PM
JamesCrandall
MVP Frequent Contributor

Can the area value of a geoshape type be used in a calculation for another field?

We need to determine the area of any polygon created and set that value on another field. 

Survey123 Connect v3.3.51

1 Solution

Accepted Solutions
BrettStokes
Esri Contributor

Hi James,

 

Sure can! You can use the area() function in a calculation field for another question. This example shows the area (in square metres) and perimeter (in metres) of a polygon being converted to hectares and kilometres and rounded to 2 decimal places.

 

Brett

View solution in original post

8 Replies
BrettStokes
Esri Contributor

Hi James,

 

Sure can! You can use the area() function in a calculation field for another question. This example shows the area (in square metres) and perimeter (in metres) of a polygon being converted to hectares and kilometres and rounded to 2 decimal places.

 

Brett

JamesCrandall
MVP Frequent Contributor

Score!  Thanks so much for the example!

0 Kudos
by Anonymous User
Not applicable

Hello Brett Stokes Employee

I have multiple GPS points. Can I do manually type with Multiple GPS Points to create a polygon in geoshape?  If we can create a polygon let me know how to create it

0 Kudos
BrettStokes
Esri Contributor

Hello Thant Zaw Oo,

You can achieve this by putting your geopoint questions within a repeat. Then just use the sum() function in your geoshape question in the calculate column to build the polygon from the points in your repeat. I suggest joining the Early Adopter Community (if you haven't already) where you can find more detailed explanations on this beta functionality. Here is an example of setting up your XLSForm:

Hope this helps,

Brett

by Anonymous User
Not applicable

Thanks Brett, I could manage it and get polygon well. May I know same questions that I would like to know Sq Meter from this polygon for calculation If you don't mind can you please share me. Thanks.

0 Kudos
MohammadTawbi
Occasional Contributor

Hi Thant,

did u managed to calculate the SQM of the polygon so far

Thanks

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Thant Zaw Oo‌, Mohammad,

The area() function provides the area in square meters; no conversion is necessary.  Please refer to Geotrace and geoshape—Survey123 for ArcGIS | Documentation 

Zank_Benjamin_P
Occasional Contributor

Hi James,

I have a geoshape within a repeat, I can easily return the area of the geoshape in square feet within another question in my survey with the area function if  I add a single geoshape polygon using this calculation:

if(${dstrb_area},area(${dstrb_area})*10.7639, 0)

If I add two geoshapes in the repeat the calculation completes for the second of the two rather than for both.

How would I go about calculating the sum of two or more polygons collected in the geoshape repeat?

Thanks,