hasCurve Arcade geometry property

746
2
02-25-2022 02:35 PM
Status: Under Consideration
Labels (1)
Bud
by
Notable Contributor

It would be helpful if ESRI could add a hasCurve geometry property to Arcade.

Use case:
When using Calculation Attribute Rules to update the shape column of features, it would be helpful if we could check if polylines or polygons have true curves or not. 

https://developers.arcgis.com/arcade/guide/types/#polyline

Thanks.

Tags (1)
2 Comments
CraigWilliams
Status changed to: Under Consideration

Since curves come into the active language pre-densified AND that conversion is sometimes done server side, it is difficult to provide this capability. This is a valid request for when curve support comes to the language with the caveat that some draw cases leveraging server-side caches may be pre-densified.

Bud
by

@CraigWilliams 
Thanks! In the meantime, I wonder if this might be a valid workaround:

Compare $feature.shape_length, which is the true length, including true curves...
vs.
Length($feature), which is the pre-densified length, where true curves have been converted to straight segments.


If there is a difference between those two values, then that tells us that the line has curves.

Bud_0-1646203029424.png


What do you think? Do you see any issues with that approach?