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.
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.
@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.
What do you think? Do you see any issues with that approach?
Sign in to post, follow content, and more. New here? Register for free.