A segment represents an edge of a multipart geometry, connecting a start to an end point.
An AGSSegment describes a continuous line between a start location and an end location. Every part in an AGSMultipart geometry is a collection of segments where the end of one segment is at exactly the same location as the start of the following segment. The ArcGIS platform supports both straight and curved segments, but ArcGIS Runtime only supports AGSLineSegment at the current release. AGSMultipart geometries can be composed from and decomposed into segments if required; until true curves are supported fully, using point-based methods offers equivalent functionality.
Because a single location is shared by adjacent segments, a single AGSPoint 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 an AGSPolyline, there will be one more AGSPoint than the number of segments in that same part.
Like the geometries they comprise, an AGSSegment is immutable.
- Since
- 100