ArcGIS Runtime SDK for iOS: AGSSegment Class Reference
ArcGIS Runtime SDK for iOS  100.9
AGSSegment Class Reference

Description

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
Inheritance diagram for AGSSegment:
AGSObject AGSLineSegment

Instance Methods

(BOOL) - isEqualToSegment:
 

Properties

BOOL closed
 
AGSPointendPoint
 
AGSSpatialReferencespatialReference
 
AGSPointstartPoint
 

Method Documentation

§ isEqualToSegment:()

- (BOOL) isEqualToSegment: (AGSSegment *)  other

Determines whether or not two time segments are equal.

Parameters
otherThe segment to compare the current segment with.
Since
100

Property Documentation

§ closed

- (BOOL) closed
readnonatomicassign

Determines whether the segment is closed or not.

Since
100

§ endPoint

- (AGSPoint*) endPoint
readnonatomicstrong

The end point of the segment.

Since
100

§ spatialReference

- (AGSSpatialReference*) spatialReference
readnonatomicstrong

The spatial reference of the segment.

Since
100

§ startPoint

- (AGSPoint*) startPoint
readnonatomicstrong

The start point of the segment.

Since
100