Union Two Geometries
Essentials 4.3.0 HTML5 2.4.0
I have two geometries - the results of two Union activities. Now I'd like to Union these two geometries together, but they are not in a FeatureSet. Do I have to create a new FeatureSet and add these two geometries to it? If so, how do I do that in a Workflow? Or is there a way to just create a new geometry that is the union of these two? The Geometry Service has a Union function, but I'm not sure how to call this in a Workflow.
Any help is appreciated.
Thanks.
0
-
Hi Sean,
Get ready for a nice one liner! Put this into the featureset argument of the UnionTask:
New List(Of Graphic)({new Graphic With {.geometry = unionGeometry1}, new Graphic With {.geometry =unionGeometry2}})
Replace unionGeometry1 and unionGeometry2 with the ones from the previous unions.
-Kev0 -
That sure beats the Create List->Add List Items->Convert List to FeatureSet->Union sequence I made. Thanks for the one-liner. Here's a one-liner in return:
You will never persuade me to change my behavior simply by convincing me it is ridiculous.
Hope that helps. Cheers!0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare