object LineStrings
Higher-level operations on line strings (for which a com.here.platform.location.core.geospatial.LineStringOperations implementation is available)
- Alphabetic
- By Inheritance
- LineStrings
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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( ... ) @native()
-
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.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
topoint
- 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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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]
-
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.
-
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
andtoFraction
.Computes the projection of a point to each geometry segment in a line string between
fromFraction
andtoFraction
.- 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)
-
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)
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()