Workflow to measure radius of circle
I think I've seen this discussed a couple of times on the forum, but I don't remember ever seeing a solution. Has anyone built a workflow to measure the radius of a circle?
I'd assume that if you can draw a circle with a workflow and get its circumfrence then you could work backward geometrically to calculate its radius, but before I attempt I thought I'd check to see if anyone has already figured it out?
0
-
John - Can't say I have done it in a workflow, but could you just take the square root of the area and divide by pi? My only concerns would be the projection of the geometry. If is in UTM or SP, you should be okay, but if it is in Web Mercator, you will need to account for it by either projecting before the calculation or do the math 0 -
That's really cool Rick, thanks! I updated the Assign activity for gisAreaSqFt to use
Math.Sqrt(circleAaL.Areas(0)/Math.Pi)
and it appears to be working!
Per Tom's comment, I am using UTM (NAD_1983_UTM_Zone_15N, WKID 26915). There was a slight discrepancy between the area displayed by MeasureArea and the area reported in the alert, but it's with 0.07%, so I think that's pretty good.
Thanks again!0 -
John,
Glad it worked. Verify your "Tool Behavior" tab in GVH for the measurement configuration. I had to set mine in order to report what the users were seeing in their ArcMap sessions.
0
Please sign in to leave a comment.
Comments
3 comments