Feature
extension Feature
-
Initialize a
Turf.Feature
with anMBXFeature
object.Declaration
Swift
public init?(_ feature: MBXFeature)
Parameters
feature
The
MBXFeature
to use to create theFeature
. -
Initialize a
Turf.Feature
with aPoint
.Declaration
Swift
public init(_ point: Point)
Parameters
point
The
Point
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aLineString
.Declaration
Swift
public init(_ line: LineString)
Parameters
line
The
LineString
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aPolygon
.Declaration
Swift
public init(_ polygon: Polygon)
Parameters
polygon
The
Polygon
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aMultiPoint
.Declaration
Swift
public init(_ multiPoint: MultiPoint)
Parameters
multiPoint
The
MultiPoint
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aMultiLineString
.Declaration
Swift
public init(_ multiLine: MultiLineString)
Parameters
multiLine
The
MultiLineString
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aMultiPolygon
.Declaration
Swift
public init(_ multiPolygon: MultiPolygon)
Parameters
multiPolygon
The
MultiPolygon
to use to create theTurf.Feature
. -
Initialize a
Turf.Feature
with aGeometryCollection
.Declaration
Swift
public init(_ geometryCollection: GeometryCollection)
Parameters
geometryCollection
The
GeometryCollection
to use to create theTurf.Feature
.