A linear shape defined by a start point and an end point. More...
|Import Statement:||import Esri.ArcGISRuntime 100.11|
- closed : bool
- endPoint : Point
- segmentType : SegmentType
- spatialReference : SpatialReference
- startPoint : Point
- bool equals(Segment*other)
Note: You cannot declare or create a component of this type in QML code.
A Segment describes a continuous line between a start location and an end location. Every part in a Multipart geometry is a collection of segments where the end of one segment is at exactly the same location as the start of the next segment. The ArcGIS platform supports both straight and curved segments, but ArcGIS Runtime only supports LineSegment at the current release. Multipart geometries can be composed from and decomposed into segments if required; until true curves are supported fully, using point-based methods offers equivalent functionality. Polygon and Polyline are composed of one or more collections of segments.
Because a single location is shared by adjacent segments, a single Point object is used to represent the shared location when you iterate through the points in a part. As a result, when iterating through the points in a part of a Polyline, there will be one more Point than the number of segments in that same part.
Like the geometries they comprise, a Segment is immutable.
endPoint : Point
Returns the end point of this Segment (read-only).
Returns the Enums.SegmentType type of this Segment (read-only).
spatialReference : SpatialReference
Returns the spatial reference of this Segment (read-only).
startPoint : Point
Returns the start point of this Segment (read-only).
true if this segment is equivalent to other.