|
ArcGIS Runtime SDK for iOS
100.9
|
Defines common members for polyline and polygon multipart geometries.
Multipart geometry is comprised of a collection of shapes (of the same type) that is managed as a single geometry. A classic example is a set of islands that represent a single country or state. The individual island shapes are distinct, but ArcGIS considers it a single geometry.
AGSPolygon and AGSPolyline inherit from AGSMultipart, which in turn inherits from AGSGeometry. AGSMultipart provides access to the geometry's AGSPartCollection. Each AGSPart in the collection is a collection of AGSSegment objects. You can iterate through the segments or points in each part.
In the same way as AGSPolygon and AGSPolyline are immutable, their multipart collections are also immutable: AGSPartCollection, AGSPart, and AGSPointCollection. However, when creating polygons and polylines, use the mutable equivalents: AGSMutablePartCollection, AGSMutablePart, and AGSMutablePointCollection.
Instance Methods | |
| (BOOL) | - isEqualToGeometry: |
| (BOOL) | - isEqualToGeometry:tolerance: |
| (AGSGeometryBuilder *) | - toBuilder |
| (nullable id) | - toJSON: |
Class Methods | |
| (nullable id< AGSJSONSerializable >) | + fromJSON:error: |
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: | (AGSGeometry *) | other |
Compares whether two geometries are equal.
| other | geometry to compare this geometry to |
| - (BOOL) isEqualToGeometry: | (AGSGeometry *) | other | |
| tolerance: | (double) | tolerance | |
| - (AGSGeometryBuilder*) toBuilder |
Returns a builder using a copy of this geometry as a starting off point. The builder can be used to make modifications to the geometry.
Implemented in AGSEnvelope, AGSPoint, AGSPolyline, AGSMultipoint, and AGSPolygon.
|
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 bounding-box 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.
|
readnonatomicstrong |
The parts of this geometry.
Can be iterated through a for-in 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.