ArcObjects Library Reference (Geometry)  

IPolycurve2.SplitAtPoints Method

Introduces new vertices into this polyline at the locations on it closest to the input points. Do not consider points farther than cutoffDistance from the polyline.

[Visual Basic .NET]
Public Function SplitAtPoints ( _
    ByVal splitPoints As IEnumVertex, _
    ByVal projectOnto As Boolean, _
    ByVal createParts As Boolean, _
    ByVal cutoffDistance As Double _
) As IEnumSplitPoint
[C#]
public IEnumSplitPoint SplitAtPoints (
    IEnumVertex splitPoints,
    bool projectOnto,
    bool createParts,
    double cutoffDistance
);
[C++]
HRESULT SplitAtPoints(
  IEnumVertex* splitPoints,
  VARIANT_BOOL projectOnto,
  VARIANT_BOOL createParts,
  double cutoffDistance,
  IEnumSplitPoint** splitInfo
);
[C++]

Parameters

splitPoints

  splitPoints is a parameter of type IEnumVertex

projectOnto   projectOnto is a parameter of type VARIANT_BOOL createParts   createParts is a parameter of type VARIANT_BOOL cutoffDistance   cutoffDistance is a parameter of type double splitInfo [out, retval]

  splitInfo is a parameter of type IEnumSplitPoint

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The SplitAtPoints method allows splitting a polycurve (polygon or polyline) in sections using a set of points.

Remarks

Parameters description:

splitPoints: Input IEnumVertex object. It represents the points to be used to split the polycurve.

projectOnto: The projectOnto is an input parameter that determines if the output point will be located on the polycurve. If projectOnto is true and the input point is not already on the polycurve then the point is projected on the curve. If false, the polycurve is split and modified to pass trough the point.

createParts: The createParts is an input parameter that determines if parts (paths) have to be created. createPart must be FALSE for polygons.  For polylines, if createPart is TRUE, the part on which the new split point falls is split into two parts with the newly added vertex serving as the end of the first part and the beginning of the second.

cutoffDistance: Input Double that represents the distance from the curve from where points are not considered anymore has being valid split points.

Note: The IEnumSplitPoint contains the input points.

See Also

IPolycurve2 Interface