GeoJSONGeometry

public enum GeoJSONGeometry
extension GeoJSONGeometry: Equatable

GeoJSONGeometry is an enumeration representing the seven geometry types defined in the GeoJSON format. Each case of the enum wraps a corresponding structure that provides detailed geometric data.

  • Represents a single geographical point in 2D space.

    Declaration

    Swift

    case pointGeometry(PointGeometry)
  • Represents a collection of geographical points. This can be used to define a set of disconnected locations.

    Declaration

    Swift

    case multiPointGeometry(MultiPointGeometry)
  • Represents a line in geographical space. It is defined by two or more points, with the line passing through them in the order they are provided.

    Declaration

    Swift

    case lineStringGeometry(LineStringGeometry)
  • Represents a collection of LineStrings. This can be used to define a set of disconnected or intersecting lines.

    Declaration

    Swift

    case multiLineStringGeometry(MultiLineStringGeometry)
  • Represents a polygon, defined by a list of points that form a closed LineString. This is typically used to define a geographical area.

    Declaration

    Swift

    case polygonGeometry(PolygonGeometry)
  • Represents a collection of polygons. This can be used to define a set of disconnected or overlapping areas.

    Declaration

    Swift

    case multiPolygonGeometry(MultiPolygonGeometry)
  • Represents a collection of different types of geometrical objects. This allows for the representation of complex structures comprising different geometry types.

    Declaration

    Swift

    case geometryCollection(GeometryCollection)
  • Equatable implementation.

    Declaration

    Swift

    public static func == (lhs: GeoJSONGeometry, rhs: GeoJSONGeometry) -> Bool