LineString

constructor(coordinates: List<Position>, bbox: BoundingBox? = null)(source)


constructor(vararg coordinates: Position, bbox: BoundingBox? = null)(source)

Create a LineString by a number of Position objects.

Parameters

coordinates

The Position objects that make up this LineString.

bbox

The BoundingBox of this LineString.

Throws

if fewer than two coordinates have been specified


constructor(vararg points: Point, bbox: BoundingBox? = null)(source)

Create a LineString by the Position objects of a number of Point objects.

Parameters

points

The Point objects whose Position objects make up this LineString.

bbox

The BoundingBox of this LineString.

Throws

if fewer than two Point objects have been specified


constructor(coordinates: Array<DoubleArray>, bbox: BoundingBox? = null)(source)

Create a LineString by an array of DoubleArray objects that each represent a Position.

Parameters

coordinates

The array of double arrays representing Position objects.

bbox

The BoundingBox of this LineString.

Throws

if the coordinates contain fewer than two Position objects, or if any array of doubles does not represent a valid Position