Geometry
public enum Geometry : Equatable
extension Geometry: GeoJSONObjectConvertible
extension Geometry: Codable
extension Geometry: GeometryConvertible
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
LineStringgeometries that are disconnected but related.Declaration
Swift
case multiLineString(_: MultiLineString) -
A collection of
Polygongeometries 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 }
View on GitHub
Install in Dash
Geometry Enumeration Reference