Feature

extension Feature
  • Initialize a Turf.Feature with an MBXFeature object.

    Declaration

    Swift

    public init?(_ feature: MBXFeature)

    Parameters

    feature

    The MBXFeature to use to create the Feature.

  • Initialize a Turf.Feature with a Point.

    Declaration

    Swift

    public init(_ point: Point)

    Parameters

    point

    The Point to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a LineString.

    Declaration

    Swift

    public init(_ line: LineString)

    Parameters

    line

    The LineString to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a Polygon.

    Declaration

    Swift

    public init(_ polygon: Polygon)

    Parameters

    polygon

    The Polygon to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a MultiPoint.

    Declaration

    Swift

    public init(_ multiPoint: MultiPoint)

    Parameters

    multiPoint

    The MultiPoint to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a MultiLineString.

    Declaration

    Swift

    public init(_ multiLine: MultiLineString)

    Parameters

    multiLine

    The MultiLineString to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a MultiPolygon.

    Declaration

    Swift

    public init(_ multiPolygon: MultiPolygon)

    Parameters

    multiPolygon

    The MultiPolygon to use to create the Turf.Feature.

  • Initialize a Turf.Feature with a GeometryCollection.

    Declaration

    Swift

    public init(_ geometryCollection: GeometryCollection)

    Parameters

    geometryCollection

    The GeometryCollection to use to create the Turf.Feature.