Cut Geometry Activity

Description

Splits the input Polyline or Polygon where it crosses a cutting Polyline.

Usage

You may need to cut a geometry into multiple parts. You can get a polyline from the user using the Display Form activity and the Geometry Picker form element then use the polyline to cut a geometry using the Cut Geometry activity.

Offline Support

This activity works when the device is offline.

Inputs

Geometry

Required

Type: esri.Geometry (3.x, 4.x)*

The geometry (a Polyline or Polygon) to be cut.

Cutter

Required

Type: esri.Polyline (3.x, 4.x)*

The polyline which cuts the geometry.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Outputs

geometry

Type: esri.Geometry[] (3.x, 4.x)*

The result array of geometries created by cutting the input geometry with the cutter. The result array will have zero, one, two, or three entries.

For Polylines, all left cuts are grouped together in the first Geometry. Right cuts and coincident cuts are grouped in the second Geometry and each undefined cut, along with any uncut parts, are output as separate Polylines.

For Polygons, all left cuts are grouped in the first Polygon, all right cuts are grouped in the second Polygon, and each undefined cut, along with any left-over parts after cutting, are output as a separate Polygon.

If no cuts are returned then the array will be empty.

An undefined cut will only be produced if a left cut or right cut was produced and there was a part left over after cutting, or a cut is bounded to the left and right of the cutter.

* Geocortex Workflow uses different versions of Esri's ArcGIS API for JavaScript depending on the type of application. Web AppBuilder 2D apps and Geocortex HTML5 viewers use version 3.x of the JavaScript API. Web AppBuilder 3D apps use version 4.x.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9, Web AppBuilder for ArcGIS 2.4.

© 2019 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.10