GeometryType

public enum GeometryType

The GeometryType enumeration represents the seven geometry types defined by the GeoJSON specification.

  • Corresponds to a GeoJSON “Point.” A Point has a single set of coordinates (longitude, latitude, and optionally, altitude).

    Declaration

    Swift

    case point
  • Corresponds to a GeoJSON “MultiPoint”. A MultiPoint has an array of points, each specified with a set of coordinates.

    Declaration

    Swift

    case multiPoint
  • Corresponds to a GeoJSON “LineString”. A LineString represents a series of two or more points in a specific order.

    Declaration

    Swift

    case lineString
  • Corresponds to a GeoJSON “MultiLineString”. A MultiLineString contains multiple LineString items.

    Declaration

    Swift

    case multiLineString
  • Corresponds to a GeoJSON “Polygon”. A Polygon represents a filled area defined by one outer boundary and zero or more inner boundaries, each specified as a ring of points.

    Declaration

    Swift

    case polygon
  • Corresponds to a GeoJSON “MultiPolygon”. A MultiPolygon contains multiple Polygon items.

    Declaration

    Swift

    case multiPolygon
  • Corresponds to a GeoJSON “GeometryCollection”. A GeometryCollection groups multiple geometries of any type together into one feature.

    Declaration

    Swift

    case geometryCollection