ArcGIS Developers

Segment QML Type

A linear shape defined by a start point and an end point. More...

Import Statement: import Esri.ArcGISRuntime 100.11
Since: Esri.ArcGISRuntime 100.0


Inherited By:





Detailed Description

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.

Property Documentation

closed : bool

Returns whether the Segment is closed (read-only).

endPoint : Point

Returns the end point of this Segment (read-only).

segmentType : SegmentType

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).

Signal Documentation


Emitted when the closed property of the Segment changes.

Note: The corresponding handler is onClosedChanged.

This signal was introduced in Esri.ArcGISRuntime 100.4.


Emitted when the endPoint of the Segment changes.

Note: The corresponding handler is onEndPointChanged.


Emitted when the spatialReference of the Segment changes.

Note: The corresponding handler is onSpatialReferenceChanged.


Emitted when the startPoint of the Segment changes.

Note: The corresponding handler is onStartPointChanged.

Method Documentation

bool equals(Segment*other)

Returns true if this segment is equivalent to other.

Feedback on this topic?