MultiLineString

@Serializable(with = MultiLineStringSerializer::class)
data class MultiLineString @JvmOverloads constructor(val coordinates: List<List<Position>>, val bbox: BoundingBox? = null, val foreignMembers: JsonObject = EmptyForeignMembers) : MultiGeometry, LineStringGeometry, Collection<LineString> (source)

A MultiLineString geometry represents multiple curves in coordinate space.

See RFC 7946 Section 3.1.5 for the full specification.

See also

Throws

if any of the Position lists is not a valid LineString

Constructors

Link copied to clipboard
constructor(coordinates: List<List<Position>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)
constructor(vararg coordinates: List<Position>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)

Create a MultiLineString by a number of lists of Position objects.

constructor(vararg lineStrings: LineString, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)

Create a MultiLineString by a number of LineString objects.

constructor(coordinates: Array<Array<DoubleArray>>, bbox: BoundingBox? = null, foreignMembers: JsonObject = EmptyForeignMembers)

Create a MultiLineString by an array (= LineString objects) of arrays (= Position objects) where each Position is represented by a DoubleArray.

Types

Link copied to clipboard
object Companion

Factory methods for creating and serializing MultiLineString objects.

Properties

Link copied to clipboard
open override val bbox: BoundingBox?

The bounding box of this geometry.

Link copied to clipboard

The coordinates of this geometry.

Link copied to clipboard
open override val foreignMembers: JsonObject

Members not defined by RFC 7946.

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open operator override fun contains(element: LineString): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<LineString>): Boolean
Link copied to clipboard
inline fun <T : Any> GeoJsonObject.decodeForeignMembers(json: Json = GeoJson.jsonFormat): T
Link copied to clipboard
operator fun get(index: Int): LineString

Get the line string at the specified index.

Link copied to clipboard

Returns the foreign member with the given key, or null if it is not present.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<LineString>