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.
Both linear segments (represented by LineSegment) and curve segments (represented by CubicBezierSegment or EllipticArcSegment) are supported. Curve and linear segments can be mixed together in the same geometry.
Since
200.1.0
Properties
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.