ImmutablePart class final

Represents a single part of a multipart geometry (polygon or polyline).

A collection of Segment objects that together represent a part in a Multipart geometry. You can also access the ArcGISPoint objects that represent the vertices of the geometry (that is, the ends of each segment), using point-based helpers such as ImmutablePart.getPoint.

Prior to v100.12, the only supported segment type was LineSegment. If the underlying geometry contained curve segments (Geometry.hasCurves is true) then the curve information was lost when iterating through the segments in that part.

From v100.12, curve segments may be returned from ImmutablePart.getSegment. A part may contain a mix of linear and curve segments.

Implemented types

Properties

endPoint ArcGISPoint?
The end point of the last segment in the part. Returns null if the collection is empty.
no setter
hasCurves bool
Indicates if the part contains any curve segments.
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Indicates if the part contains no segments.
no setter
pointCount int
The count of points in the part.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segmentCount int
The count of segments in the part.
no setter
spatialReference SpatialReference?
The spatial reference for the immutable part.
no setter
startPoint ArcGISPoint?
The start point of the first segment in the part. Returns null if the collection is empty.
no setter

Methods

getEndPointIndexFromSegmentIndex({required int segmentIndex}) int
For a segment at a specified segment_index the method returns the point index of the segment's end point.
getPoint({required int pointIndex}) ArcGISPoint
Returns a point at a specified point index.
getPoints() ImmutablePointCollection
Returns all the points that are the vertexes of the part.
getSegment({required int segmentIndex}) Segment
Gets a segment at a specified segment index.
getSegmentIndexFromEndPointIndex({required int pointIndex}) int
Converts from a point index to a segment index that uses the given point as an end point. If the point is not an end point then -1 is returned.
getSegmentIndexFromStartPointIndex({required int pointIndex}) int
Converts from a point index to a segment index that uses the given point as a start point. If the point is not a start point, then -1 is returned.
getStartPointIndexFromSegmentIndex({required int segmentIndex}) int
For a segment at a specified segment_index the method returns the point index of the segment's start point.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited