Geometry
public enum Geometry : Equatable, Sendable
extension Geometry: GeoJSONObjectConvertible
extension Geometry: Codable
extension Geometry: GeometryConvertible
extension Geometry: WKTConvertible
A Geometry object represents points, curves, and surfaces in coordinate space. Use an instance of this enumeration whenever a value could be any kind of Geometry object.
-
A single position.
Declaration
Swift
case point(_: Point)
-
A collection of two or more positions, each position connected to the next position linearly.
Declaration
Swift
case lineString(_: LineString)
-
A collection of positions that are disconnected but related.
Declaration
Swift
case multiPoint(_: MultiPoint)
-
A collection of
LineString
geometries that are disconnected but related.Declaration
Swift
case multiLineString(_: MultiLineString)
-
A collection of
Polygon
geometries that are disconnected but related.Declaration
Swift
case multiPolygon(_: MultiPolygon)
-
A heterogeneous collection of geometries that are related.
Declaration
Swift
case geometryCollection(_: GeometryCollection)
-
Initializes a geometry representing the given geometry–convertible instance.
Declaration
Swift
public init(_ geometry: GeometryConvertible)
-
Declaration
Swift
public var geoJSONObject: GeoJSONObject { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public var geometry: Geometry { get }
-
Undocumented
Declaration
Swift
public var wkt: String { get }
-
Undocumented
Declaration
Swift
public init(wkt: String) throws