Intersect geometries, calculate area back to featureset?
I have an intersect geometries activity and then a For Each to loop thru and calculate areas for each polygon geometry but I'd like to add the resulting area number to a new field in a feature set.
Not sure how to get the results back into a feature set as I would like to sort the resulting featureset on area descending i.e. pick top 4 largest intersected polygons for further queries?

?
-
I think that you can add a new field to a featureSet using the Add Item activity on the featureSet's .fields property. I recommend looking at your existing featureSet in the dev console to find the format that the fields are in.
You can apply the field value using the "Set Attribute" activity, but I use "Evaluate Expression" myself. I don't think you'll encounter any issues by modifying an array as you iterate it, so this should be all you need.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar