ArcGIS Runtime SDK for iOS: AGSKMLGeometry Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSKMLGeometry Class Reference

Description

A KML Geometry element.

An instance of this class represents a KML <Geometry> element which could be a Point, LineString, LinearRing or Polygon. For MultiGeometry, see AGSKMLPlacemark::geometries.

Since
100.4
Inheritance diagram for AGSKMLGeometry:
AGSObject

Instance Methods

(nullable instancetype) - initWithGeometry:altitudeMode:
 
(nullable instancetype) - initWithGeometry:altitudeMode:extruded:
 
(nullable instancetype) - initWithGeometry:altitudeMode:extruded:tessellated:
 

Class Methods

(nullable instancetype) + KMLGeometryWithGeometry:altitudeMode:
 
(nullable instancetype) + KMLGeometryWithGeometry:altitudeMode:extruded:
 
(nullable instancetype) + KMLGeometryWithGeometry:altitudeMode:extruded:tessellated:
 

Properties

AGSKMLAltitudeMode altitudeMode
 
BOOL extruded
 
AGSGeometrygeometry
 
BOOL tessellated
 
AGSKMLGeometryType type
 

Method Documentation

◆ initWithGeometry:altitudeMode:

- (nullable instancetype) initWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Since
100.6

◆ initWithGeometry:altitudeMode:extruded:

- (nullable instancetype) initWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode
extruded: (BOOL)  extruded 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
extrudedspecifying whether to extrude the geometry. i.e connect it to the ground in a 3D view.
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Since
100.6

◆ initWithGeometry:altitudeMode:extruded:tessellated:

- (nullable instancetype) initWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode
extruded: (BOOL)  extruded
tessellated: (BOOL)  tessellated 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
extrudedspecifying whether to extrude the geometry. i.e connect it to the ground in a 3D view.
tessellatedspecifying whether to tessellate the geometry.
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Note
Only polyline geometries can be tessellated.
Since
100.6

◆ KMLGeometryWithGeometry:altitudeMode:

+ (nullable instancetype) KMLGeometryWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Since
100.6

◆ KMLGeometryWithGeometry:altitudeMode:extruded:

+ (nullable instancetype) KMLGeometryWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode
extruded: (BOOL)  extruded 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
extrudedspecifying whether to extrude the geometry. i.e connect it to the ground in a 3D view.
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Since
100.6

◆ KMLGeometryWithGeometry:altitudeMode:extruded:tessellated:

+ (nullable instancetype) KMLGeometryWithGeometry: (AGSGeometry *)  geometry
altitudeMode: (AGSKMLAltitudeMode altitudeMode
extruded: (BOOL)  extruded
tessellated: (BOOL)  tessellated 

Initialize a new KML geometry. AGSMultipoint, multipart AGSPolygon and multipart AGSPolyline geometries are not supported.

Parameters
geometryspecifying the location and shape of the KML geometry
altitudeModespecifying how the altitude contained in the geometry's z-value is interpreted
extrudedspecifying whether to extrude the geometry. i.e connect it to the ground in a 3D view.
tessellatedspecifying whether to tessellate the geometry.
Returns
A new initialized KML geometry or nil if an unsupported geometry is passed.
Note
Only polyline geometries can be tessellated.
Since
100.6

Property Documentation

◆ altitudeMode

- (AGSKMLAltitudeMode) altitudeMode
readnonatomicassign

Specifies how the altitude contained in the geometry's z-value is interpreted.

Since
100.4

◆ extruded

- (BOOL) extruded
readnonatomicassign

Specifies whether to extrude the geometry, i.e connect it to the ground in a 3D view.

Since
100.4

◆ geometry

- (AGSGeometry*) geometry
readnonatomicstrong

The underlying geometry.

Since
100.4

◆ tessellated

- (BOOL) tessellated
readnonatomicassign

Specifies whether to tessellate the geometry. Tessellated geometry can follow the terrain.

Note
In order for tessellated geometry to follow the terrain, the altitudeMode must be set to AGSKMLAltitudeModeClampToGround. Only polyline geometries can be tessellated.
Since
100.4

◆ type

- (AGSKMLGeometryType) type
readnonatomicassign

The KML geometry type.

Since
100.4