Feature
public struct Feature
Defines a simple geographical feature such as a point, polygon, etc.
-
Create a new
FeatureDeclaration
Swift
public init(type: String, properties: [String : Any]?, geometry: Geometry?, id: String, bbox: [Double])Parameters
typeFeature type.
propertiesProperties object.
geometryObject representing geometry.
idID of the feature.
-
Feature type.
Declaration
Swift
public let type: String -
Properties object.
Declaration
Swift
public let properties: [String : Any]? -
Object representing geometry.
Declaration
Swift
public let geometry: Geometry? -
ID of the feature.
Declaration
Swift
public let id: String -
Includes information on the coordinate range. Bounding box is an array of length 2*n where n is the number of dimensions represented in the contained geometries. At a minimum, a bounding box will have two coordinates that define a rectangle. A 3D bounding box can be produced if elevation or altitude is defined.
Declaration
Swift
public let bbox: [Double]
Feature Structure Reference