Feature
public struct Feature : Equatable, ForeignMemberContainer
extension Feature: Codable
extension Feature: GeoJSONObjectConvertible
A Feature object represents a spatially bounded thing.
-
A string or number that commonly identifies the feature in the context of a data set.
Turf does not guarantee that the feature is unique; however, a data set may make such a guarantee.
Declaration
Swift
public var identifier: FeatureIdentifier? -
Arbitrary, JSON-compatible attributes to associate with the feature.
Declaration
Swift
public var properties: JSONObject? -
The geometry at which the feature is located.
Declaration
Swift
public var geometry: Geometry? -
Declaration
Swift
public var foreignMembers: JSONObject -
Initializes a feature located at the given geometry.
Declaration
Swift
public init(geometry: Geometry)Parameters
geometryThe geometry at which the feature is located.
-
Initializes a feature defined by the given geometry-convertible instance.
Declaration
Swift
public init(geometry: GeometryConvertible?)Parameters
geometryThe geometry-convertible instance that bounds the feature.
-
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public var geoJSONObject: GeoJSONObject { get }
View on GitHub
Install in Dash
Feature Structure Reference