MultiLineString
public struct MultiLineString : Equatable, ForeignMemberContainer
extension MultiLineString: Codable
extension MultiLineString: GeometryConvertible
extension MultiLineString: WKTConvertible
A MultiLineString geometry is a collection of LineString
geometries that are disconnected but related.
-
The positions at which the multi–line string is located. Each nested array corresponds to one line string.
Declaration
Swift
public var coordinates: [[LocationCoordinate2D]]
-
Declaration
Swift
public var foreignMembers: JSONObject
-
Initializes a multi–line string defined by the given positions.
Declaration
Swift
public init(_ coordinates: [[LocationCoordinate2D]])
Parameters
coordinates
The positions at which the multi–line string is located. Each nested array corresponds to one line string.
-
Initializes a multi–line string coincident to the given polygon’s linear rings.
This initializer is equivalent to the
polygon-to-line
package of Turf.js (source code).Declaration
Swift
public init(_ polygon: Polygon)
Parameters
polygon
The polygon whose linear rings are coincident to the multi–line string.
-
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