GeometryCollection
public struct GeometryCollection : Equatable, ForeignMemberContainer, Sendable
extension GeometryCollection: Codable
extension GeometryCollection: GeometryConvertible
extension GeometryCollection: WKTConvertible
A GeometryCollection geometry is a heterogeneous collection of Geometry
objects that are related.
-
The geometries contained by the geometry collection.
Declaration
Swift
public var geometries: [Geometry]
-
Declaration
Swift
public var foreignMembers: JSONObject
-
Initializes a geometry collection defined by the given geometries.
Declaration
Swift
public init(geometries: [Geometry])
Parameters
geometries
The geometries contained by the geometry collection.
-
Initializes a geometry collection coincident to the given multipolygon.
You should only use this initializer if you intend to add geometries other than multipolygons to the geometry collection after initializing it.
Declaration
Swift
public init(_ multiPolygon: MultiPolygon)
Parameters
multiPolygon
The multipolygon that is coincident to the geometry collection.
-
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