ArcGIS Runtime SDK for iOS
100.7

A polyline geometry representing a line or collection of lines.
Instances of this class represent a polyline geometry. A polyline is defined by a collection of parts (linear paths). Each path is a continuous line represented by a collection of points. Each point represents a vertex of the polyline, defined by a pair of x,y coordinates, and optionally a zcoordinate and/or mvalue (measure).
A polyline is associated with a spatial reference which specifies the coordinate system that its coordinate values use.
toBuilder (AGSPolyline):
to get a polyline builder using a copy of this geometry as a starting off point. The builder can then be modified to produce a new geometry.AGSPolylineBuilder
to construct or modify polylines programmatically. AGSSketchEditor
to construct or modify geometries interactively by sketching on a map. AGSGeometryEngine
to perform operations on geometries. Instance Methods  
(BOOL)   isEqualToGeometry: 
(BOOL)   isEqualToGeometry: 
(BOOL)   isEqualToGeometry:tolerance: 
(AGSPolylineBuilder *)   toBuilder 
(nullable id)   toJSON: 
Class Methods  
(nullable id< AGSJSONSerializable >)  + fromJSON:error: 
(instancetype)  + polylineWithPoints: 
Properties  
AGSGeometryDimension  dimension 
BOOL  empty 
AGSEnvelope *  extent 
AGSGeometryType  geometryType 
BOOL  hasCurves 
BOOL  hasM 
BOOL  hasZ 
AGSPartCollection *  parts 
AGSSpatialReference *  spatialReference 
NSDictionary< NSString *, id > *  unknownJSON 
NSDictionary< NSString *, id > *  unsupportedJSON 

staticrequiredinherited 
Initializes and returns an object from its JSON representation.
JSONObject  NSDictionary or NSArray containing the JSON. 
error  encountered during the operation, if any. 
 (BOOL) isEqualToGeometry:  (AGSPolyline *)  other 
Compares whether two polyline geometries are equal.
other  polyline to compare this polyline to 
 (BOOL) isEqualToGeometry:  (AGSGeometry *)  other 
Compares whether two geometries are equal.
other  geometry to compare this geometry to 
 (BOOL) isEqualToGeometry:  (AGSGeometry *)  other  
tolerance:  (double)  tolerance  
+ (instancetype) polylineWithPoints:  (NSArray< AGSPoint * > *)  points 
Initializes a polyline.
points  for the geometry to be constructed 
 (AGSPolylineBuilder*) toBuilder 
Returns a builder using a copy of this geometry as a starting off point. The builder can then be modified to produce a new geometry.
Implements AGSGeometry.

requiredinherited 
Returns JSON representation for this object.
error  encountered during the operation, if any. 
NSDictionary
or NSArray
containing the JSON. Reimplemented in AGSPortalItem.

readnonatomicassigninherited 

readnonatomicassigninherited 
Indicates whether this geometry has any vertices.

readnonatomicstronginherited 
Smallest, rectangular boundingbox that covers the geometry.

readnonatomicassigninherited 
The type of this geometry.

readnonatomicassigninherited 
Indicates whether this geometry has curves.

readnonatomicassigninherited 
Indicates whether this geometry contains m (measure) values.

readnonatomicassigninherited 
Indicates whether this geometry contains z coordinate values. Only 3D geometries contain z values.

readnonatomicstronginherited 
The parts of this geometry.
Can be iterated through a forin loop.

readnonatomicstronginherited 
The spatial reference associated with the gometry. It specifies the coordinate system for the geometry's x, y, and z coordinate values.

readrequirednonatomiccopyinherited 
A dictionary of values that was in the source JSON but was unparsed by API.
NSDictionary
containing the unknown JSON.

readnonatomiccopyinherited 
A dictionary of values that are supported by the REST API, but not exposed through the SDK API.
NSDictionary
containing the unsupported JSON.