Geometry

extension Geometry

Undocumented

  • Initialize a Geometry point from a coordinate.

    Declaration

    Swift

    public convenience init(coordinate: CLLocationCoordinate2D)

    Parameters

    coordinate

    The coordinate to represent the Geometry point.

  • Initialize a Geometry line from an array of coordinates.

    Declaration

    Swift

    public convenience init(line coordinates: [CLLocationCoordinate2D])

    Parameters

    coordinates

    The coordinates to represent the Geometry line.

  • Initialize a Geometry polygon from a two-dimensional array of coordinates.

    Declaration

    Swift

    public convenience init(polygon coordinates: [[CLLocationCoordinate2D]])

    Parameters

    coordinates

    The coordinates to represent the Geometry polygon.

  • Initialize a Geometry multipoint from an array of CLLocationCoordinates.

    Declaration

    Swift

    public convenience init(multiPoint coordinates: [CLLocationCoordinate2D])

    Parameters

    coordinates

    The coordinates to represent the Geometry multipoint.

  • Initialize a Geometry multiline from a two-dimensional array of CLLocationCoordinates.

    Declaration

    Swift

    public convenience init(multiLine coordinates: [[CLLocationCoordinate2D]])

    Parameters

    coordinates

    The coordinates to represent the Geometry multiline.

  • Initialize a Geometry multipolygon from a three-dimensional array of CLLocationCoordinates.

    Declaration

    Swift

    public convenience init(multiPolygon coordinates: [[[CLLocationCoordinate2D]]])

    Parameters

    coordinates

    The coordinates to represent the Geometry multipolygon.

  • Allows a Geometry object to be initialized with a Turf.Geometry object.

    Declaration

    Swift

    public convenience init(geometry: Turf.Geometry)

    Parameters

    geometry

    The Turf.Geometry object to transform into the Geometry type.