Part
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 Point objects that represent the vertices of the geometry (that is, the ends of each segment), using point-based helpers such as Part.getPoint(Int).
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 Part.getSegment(Int). A part may contain a mix of linear and curve segments.
Since
200.1.0
Properties
Indicates if the part contains any curve segments. Prior to v100.12, if this property returned true, there was no way to access the curve segment information contained by the part. Retrieving the Segment instances of the part would return only LineSegment instances.
The count of points in the part. The points in the part are the start and end points of segments. Segments can share a point if the end point of one segment matches the start point of the next.
The count of segments in the part.
The spatial reference for the immutable part. If the collection does not have a spatial reference null is returned.
The start point of the first segment in the part. Returns null if the collection is empty.
Functions
For a segment at a specified segmentIndex the method returns the point index of the segment's end point.
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.
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.
For a segment at a specified segmentIndex the method returns the point index of the segment's start point.