Interface OptimizedLineStringOperations<LS>

All Superinterfaces:
LineStringOperations<LS>, Serializable, scala.Serializable
All Known Implementing Classes:
PackedLineString.PackedLineStringOps$

public interface OptimizedLineStringOperations<LS> extends LineStringOperations<LS>
A kind of LineStringOperations that enables additional, optimized operations that make some operations on line strings faster.
  • Method Details

    • cumulativeChunkLengths

      StraightLineLengthSeq cumulativeChunkLengths(LS lineString)
      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)