Packages

object LineStrings

Higher-level operations on line strings (for which a com.here.platform.location.core.geospatial.LineStringOperations implementation is available)

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LineStrings
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def cut[LS](lineString: LS, ranges: Seq[(Double, Double)])(implicit arg0: LineStringOperations[LS]): Seq[LineString[GeoCoordinate]]

    Cuts a line string in accordance with passed ranges of fractions.

    Cuts a line string in accordance with passed ranges of fractions. A range consists of start and end fractions. Each cut corresponds to one range so that all points of the line string between start and end fractions are included.

    Exceptions thrown

    java.lang.IllegalArgumentException when the start or end fraction of a range is not in [0..1] or when the start fraction is greater than the end fraction.

    Note

    Start and end points will be created for each cut in case there are no points on the line string that correspond to start and end fractions.

    ,

    It is allowed to pass overlapping ranges.

    ,

    If the distance between two points is less than 1cm, they are treated as one point. Because of that, it might happen that a sequence that represents a cut contains only one point instead of two points with the same coordinates.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fractionForPoint[LS, GCP](lineString: LS, point: GCP, projection: GeoProjection = GeoProjections.sinusoidal)(implicit arg0: LineStringOperations[LS], arg1: GeoCoordinateOperations[GCP]): Double

    Calculates the fraction of a line string's full length from its start to some given point.

    Calculates the fraction of a line string's full length from its start to some given point.

    The result is in the range [0..1].

    See also pointForFraction.

    lineString

    The line string or path

    point

    The point assumed to be on the line string

    returns

    The fraction of the full length from the start of lineString to point

    Annotations
    @throws( classOf[IllegalArgumentException] )
    Exceptions thrown

    java.lang.IllegalArgumentException If the given point is actually not on the line string, or if called with less than two points in the line string

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def pointForFraction[LS](lineString: LS, fraction: Double)(implicit arg0: LineStringOperations[LS]): GeoCoordinate

    Calculates the intermediate point on a great-circle at some fraction of a line string.

    Calculates the intermediate point on a great-circle at some fraction of a line string.

    The result is a point on the line string geometry for which the distance from the start of the line string geometry is the given fraction of its full length.

    See also:

    lineString

    The path geometry

    fraction

    The fraction of the line string geometry's full length

    returns

    A point implementing the GeoCoordinateOperations trait

    Annotations
    @throws( classOf[IllegalArgumentException] )
    Exceptions thrown

    java.lang.IllegalArgumentException When fraction is not in [0..1]

  18. def pointProjection[GC, Element](origin: GC, lineString: Element, projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[GC], arg1: LineStringOperations[Element]): ElementProjection[Element]

    Computes the projection and distance between a point and a line string for which com.here.platform.location.core.geospatial.GeoCoordinateOperations and LineStringOperations are defined.

    Computes the projection and distance between a point and a line string for which com.here.platform.location.core.geospatial.GeoCoordinateOperations and LineStringOperations are defined.

    origin

    The point to be projected in WGS84

    lineString

    The Element containing a line string on which to project to (needs to contain at least two points)

    projection

    The projection to use (transforms WGS84 into planar coordinates)

    returns

    An ElementProjection containing the original Element, the projected point on the line string, and the distance in meters.

  19. def pointProjections[GC, LS](origin: GC, lineString: LS, fromFraction: Double, toFraction: Double, projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[GC], arg1: LineStringOperations[LS]): Iterator[ElementProjection[LS]]

    Computes the projection of a point to each geometry segment in a line string between fromFraction and toFraction.

    Computes the projection of a point to each geometry segment in a line string between fromFraction and toFraction.

    origin

    The point to be projected in WGS84

    lineString

    The Element containing a line string on which to project to (needs to contain at least two points)

    fromFraction

    The fraction of the line string's length at which to start creating projections

    toFraction

    The fraction of the line string's length up to which to create projections

    projection

    The projection to use (transforms WGS84 into planar coordinates)

  20. def pointProjections[GC, Element](origin: GC, lineString: Element, projection: GeoProjection)(implicit arg0: GeoCoordinateOperations[GC], arg1: LineStringOperations[Element]): Iterator[ElementProjection[Element]]

    Computes the projection of a point to each geometry segment in a line string.

    Computes the projection of a point to each geometry segment in a line string.

    origin

    The point to be projected in WGS84

    lineString

    The Element containing a line string on which to project to (needs to contain at least two points)

    projection

    The projection to use (transforms WGS84 into planar coordinates)

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped