ArcGIS Runtime SDK for iOS
100.15
|
Defines common members for polyline and polygon multipart geometries.
Multipart geometries are based upon the parent AGSGeometry
class. The geometry class is immutable which means that you cannot change its shape once it is created. If you need to modify a multipart once it has been created, use the AGSMultipartBuilder
class instead. The toGeometry (AGSGeometryBuilder)
method will provide you with the base geometry object.
A 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
via the AGSMultipart::parts
property. Each AGSPart
in the collection is a collection of AGSSegment
objects. You can iterate through the segments or points in each part.
AGSGeometry
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 | The other geometry object to compare this geometry object to. |
YES
if the geometries are equal. - (BOOL) isEqualToGeometry: | (AGSGeometry *) | other | |
tolerance: | (double) | tolerance | |
Compares two geometry objects for equality to within some tolerance.
other | The other geometry object to compare this geometry object to. |
tolerance | The tolerance. |
YES
if the geometries are equal within the given tolerance, otherwise NO
. - (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 AGSPolyline, AGSPolygon, AGSPoint, AGSMultipoint, and AGSEnvelope.
|
requiredinherited |
Returns JSON representation for this object.
error | encountered during the operation, if any. |
NSDictionary
or NSArray
containing the JSON. Reimplemented in AGSPortalItem.
|
readnonatomicassigninherited |
The dimension of this geometry object.
AGSGeometryDimension::AGSGeometryDimensionUnknown
if an error occurs.
|
readnonatomicassigninherited |
Indicates whether this geometry has any vertices.
|
readnonatomicstronginherited |
Smallest, rectangular bounding-box that covers the geometry.
|
readnonatomicassigninherited |
The type of this geometry.
|
readnonatomicassigninherited |
YES
if this geometry contains curve segments, NO
otherwise.
The ArcGIS Platform supports polygon and polyline geometries that contain curve segments (where AGSSegment::curve
is YES
, sometimes known as true curves or nonlinear segments). Curves may be present in certain types of data - for example Mobile Map Packages (MMPK) or geometry JSON. When connecting to ArcGIS feature services that support curves (AGSArcGISFeatureServiceInfo::supportsTrueCurve
), ArcGIS Runtime retrieves densified versions of curve feature geometries by default.
If a polygon or polyline geometry contains curve segments, this property is YES
. Prior to v100.12, it was not possible to access curve segments, and only AGSLineSegment
instances would be returned when iterating through the segments in an AGSPolygon
or AGSPolyline
object, irrespective of this property.
From v100.12, you can use curve segments when using an AGSMultipartBuilder
to create or edit polygon and polyline geometries, and also get curve segments when iterating through the segments of existing AGSMultipart
geometries when this property returns YES
. You can also choose to return true curves from feature services by using AGSArcGISRuntimeEnvironment::serviceCurveGeometryMode
.
AGSGeometryBuilder::hasCurves
, AGSPart::hasCurves
, AGSSegment::curve
, AGSCubicBezierSegment
, AGSEllipticArcSegment
|
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.