trait PackedLineString extends Serializable
A line string containing PackedGeoCoordinates.
This interface is optimized to avoid allocations when accessing vertex geometries.
- Alphabetic
- By Inheritance
- PackedLineString
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def apply(idx: Int): PackedGeoCoordinate
Selects an element by its index in the PackedLineString.
Selects an element by its index in the PackedLineString.
- idx
The index to select
- returns
The element of this PackedLineString at index
idx, where0indicates the first element
- Annotations
- @throws(classOf[IndexOutOfBoundsException])
- Exceptions thrown
java.lang.IndexOutOfBoundsExceptionifidxis not in the interval [0, length)
- abstract def cumulativeChunkLengths: StraightLineLengthSeq
The sum of the length of each segment geometry chunk and the lengths of all previous chunks in a segment's geometry, in meters.
The sum of the length of each segment geometry chunk and the lengths of all previous chunks in a segment's geometry, in meters.
For example, consider a line string with three points (two chunks). Assuming the distance between points 0 and 1 is 32 m and the distance between points 1 and 2 is 64 m. Then, the cumulative chunk lengths of this line string would be LengthSeq(32.0, 96.0)
- abstract def length: Int
The length of the PackedLineString.
The length of the PackedLineString.
- returns
The number of elements in this PackedLineString
- abstract def toIndexedSeq: IndexedSeq[PackedGeoCoordinate]
Converts this PackedLineString to an indexed sequence.
Converts this PackedLineString to an indexed sequence.
- returns
An indexed sequence containing all elements of this PackedLineString
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)