Show / Hide Table of Contents

Method Cut

Cut(Geometry, Polyline)

Cut the 'geometry' with the 'cutter'

Declaration
public static Geometry[] Cut(this Geometry geometry, Polyline cutter)
Parameters
Type Name Description
Geometry geometry

The input geometry to be cut.

Polyline cutter

The polyline used to divide the geometry into pieces where they cross the cutter.

Returns
Type Description
Geometry[]

A set of geometries after the cut operation.

Remarks

When cutting a polyline, 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. When cutting a Polygon, all left cuts are grouped in the first Geometry, all right cuts are in the second Geometry, and each undefined cut, along with any left-over parts after cutting, are output as a separate Geometry. If there were no cuts then an empty array is returned. If the left or right cut does not exist, the returned geometry is empty for this type of cut. An undefined cut is only 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.

Supports true curves.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Cut geometry: Cut a geometry along a polyline.
In This Article
Back to top Copyright © 2022 Esri.