One of the things we set out to accomplish with Geocortex Workflow was to dramatically boost efficiency and reduce complexities, ultimately increasing the value of your GIS applications.
In this week’s Tech Tip video, we’ll show you how to use the union geometries workflow activity to combine two or more geometries.
“Hi! I’m Sarshad and I am a Software Developer here at Geocortex. Today we are going to be looking at using union geometries in Geocortex Workflow. Let’s dive in!
Today, we are going to look at how to use the Union Geometries workflow activity to combine two or more geometries.
I’ve set up a very simple workflow here which uses the geometry picker activity to let the user choose two geometries on the map.
We then feed these two geometries to the “Union Geometries” activity. This activity has two inputs as we can see. Each of which is capable of taking in an area of geometries. This allows you to union as many geometries as you need to.
We then, execute appropriate commands which run on Geocortex Web and convert the union geometry as a graphic which we then add to the map.
After a brief delay, we populate an alert with the JSON contents of the union geometry, before cleaning up and removing the graphic we added previously from the map.
I’ve set up this workflow as a task bar item on Geocortex Web. Let’s run it and see what happens!
Ok, so we have the workflow here. Let’s proceed to draw and add two polygons to the map. The first polygon here. There we have it. Two polygons drawn on map. Once submitted, these polygons will be unioned together on one single polygon. Let’s go ahead and submit it.
There we can see that it has become one polygon. There we have the alert of the JSON of the combined polygon on the screen.
I have one more thing to show you. If you search for union geometry in the activities list in Geocortex Workflow. We find two of them. They are essentially the same, except that one of them runs on client-side, which we just saw, while one runs on workflow server. The server activities are useful if you want to combine really large geometries together. If the geometries are sufficiently large, it could slow down the client application.
That brings us to the end of this Tech Tip. I hope you enjoyed it and thanks for watching!”
Want to try Geocortex Workflow for yourself? Click the button below and discover everything the technology has to offer.