Line

Related Docs: object Line | package vector

case class Line(jtsGeom: LineString) extends Geometry with Relatable with OneDimension with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, OneDimension, AtLeastOneDimension, AtMostOneDimension, Dimensions, Relatable, Geometry, AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. Line
2. Serializable
3. Serializable
4. Product
5. Equals
6. OneDimension
7. AtLeastOneDimension
8. AtMostOneDimension
9. Dimensions
10. Relatable
11. Geometry
12. AnyRef
13. 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. def &(g: AtLeastOneDimension): OneDimensionAtLeastOneDimensionIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Line and a geometry of at least one dimension.

Computes a Result that represents a Geometry made up of the points shared by this Line and a geometry of at least one dimension.

g

the geometry to intersect with

4. def &(mp: MultiPoint): MultiPointAtLeastOneDimensionIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Line and a MultiPoint.

Computes a Result that represents a Geometry made up of the points shared by this Line and a MultiPoint.

mp

the multipoint to intersect with

5. def &(p: Point): PointOrNoResult

Computes a Result that represents a Geometry made up of the points shared by this Line and p.

Computes a Result that represents a Geometry made up of the points shared by this Line and p.

p

the point to intersect with

6. def &(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Definition Classes
Geometry
7. def -(g: AtLeastOneDimension): LineAtLeastOneDimensionDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

g

the geometry to diff against

8. def -(g: ZeroDimensions): LineResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

g

the geometry to diff against

9. final def ==(arg0: Any): Boolean

Definition Classes
AnyRef → Any
10. def as[G <: Geometry](implicit arg0: ClassTag[G]): Option[G]

Attempt to convert this Geometry to the provided type

Attempt to convert this Geometry to the provided type

Definition Classes
Geometry
11. final def asInstanceOf[T0]: T0

Definition Classes
Any
12. lazy val boundary: OneDimensionBoundaryResult

Returns the boundary of this Line.

Returns the boundary of this Line. The boundary of a non-closed Line consists of its two end points. The boundary of a closed Line is empty.

13. def buffer(d: Double): Polygon

Computes a buffer area around this Line having width d.

Computes a buffer area around this Line having width d.

d

the buffer width

14. def centroid: PointOrNoResult

Calculate centroid of this Geometry

Calculate centroid of this Geometry

Definition Classes
Geometry
15. def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )
16. def closed(): Line

Returns a closed version of the line.

Returns a closed version of the line. If already closed, just return this.

17. def contains(g: AtMostOneDimension): Boolean

Tests whether this Line contains the specified AtMostOneDimension g.

Tests whether this Line contains the specified AtMostOneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF*.

g

the geometry to use in containment check

18. def coveredBy(g: AtLeastOneDimension): Boolean

Tests whether this Line is covered by the specified AtLeastOneDimension g.

Tests whether this Line is covered by the specified AtLeastOneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F*** or *TF**F*** or **FT*F*** or **F*TF***.

g

the geometry to use in checking whether this line is covered

19. def covers(g: AtMostOneDimension): Boolean

Tests whether this Line covers the specified AtMostOneDimensions g.

Tests whether this Line covers the specified AtMostOneDimensions g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****FF* or *T****FF* or ***T**FF* or ****T*FF*.

g

the geometry to check for coverage over

20. def crosses(g: AtLeastOneDimension): Boolean

Tests whether this Line crosses the specified AtLeastOneDimension g.

Tests whether this Line crosses the specified AtLeastOneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is 0******** (L/L) or T*T****** (L/A).

g

the geometry to check if this line crosses

21. def crosses(mp: MultiPoint): Boolean

Tests whether this Line crosses the specified MultiPoint mp.

Tests whether this Line crosses the specified MultiPoint mp. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*****T** (L/P).

mp

the multipoint to check if this line crosses

22. def difference(g: AtLeastOneDimension): LineAtLeastOneDimensionDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

g

the geometry to diff against

23. def difference(g: ZeroDimensions): LineResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g.

g

the geometry to diff against

24. def disjoint(other: Geometry): Boolean

Definition Classes
Relatable
25. def distance(other: Geometry): Double

Calculate the distance to another Geometry

Calculate the distance to another Geometry

Definition Classes
Geometry
26. def envelope: Extent

Definition Classes
Geometry
27. final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
28. def equals(other: Any): Boolean

Definition Classes
Geometry → AnyRef → Any
29. def finalize(): Unit

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( classOf[java.lang.Throwable] )
30. final def getClass(): Class[_]

Definition Classes
AnyRef → Any
31. def hashCode(): Int

Definition Classes
Geometry → AnyRef → Any
32. def interiorPoint: PointOrNoResult

Definition Classes
Geometry
33. def intersection(g: AtLeastOneDimension): OneDimensionAtLeastOneDimensionIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Line and g.

Computes a Result that represents a Geometry made up of the points shared by this Line and g.

g

the geometry to intersect with

34. def intersection(mp: MultiPoint): MultiPointAtLeastOneDimensionIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Line and a MultiPoint.

Computes a Result that represents a Geometry made up of the points shared by this Line and a MultiPoint.

mp

the multipoint to intersect with

35. def intersection(p: Point): PointOrNoResult

Computes a Result that represents a Geometry made up of the points shared by this Line and a Point.

Computes a Result that represents a Geometry made up of the points shared by this Line and a Point.

p

the point to intersect with

36. def intersection(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

Definition Classes
Geometry
37. def intersects(other: Geometry): Boolean

Definition Classes
Relatable
38. lazy val isClosed: Boolean

Tests if the initial vertex equals the final vertex.

39. final def isInstanceOf[T0]: Boolean

Definition Classes
Any
40. lazy val isSimple: Boolean

Tests whether this Line is simple.

Tests whether this Line is simple. A Line is simple iff it does not self-intersect at points other than boundary points.

41. def isValid: Boolean

Check the validity of this geometry

Check the validity of this geometry

Definition Classes
Geometry
42. val jtsGeom: LineString

Return the wrapped jts Geometry

Return the wrapped jts Geometry

Definition Classes
LineDimensionsGeometry
43. lazy val length: Double

Returns the length of this Line.

44. final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef
45. def normalized(): Line

Returns a unique representation of the geometry based on standard coordinate ordering.

46. final def notify(): Unit

Definition Classes
AnyRef
47. final def notifyAll(): Unit

Definition Classes
AnyRef
48. def overlaps(g: OneDimension): Boolean

Tests whether this Line overlaps the specified OneDimension g.

Tests whether this Line overlaps the specified OneDimension g. Returns true if The DE-9IM Intersection Matrix for the two geometries is 1*T***T**.

g

the geometry to check for overlap against

49. def points: Array[Point]

Returns the points which determine this line (i.e.

Returns the points which determine this line (i.e. its vertices

50. def safeIntersection(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

Computes a Result that represents a Geometry made up of the points shared by this Polygon and g.

Computes a Result that represents a Geometry made up of the points shared by this Polygon and g. If it fails, it reduces the precision to avoid TopologyException.

Definition Classes
Geometry
51. def symDifference(mp: MultiPolygon): LineMultiPolygonSymDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in mp and all the points in mp that are not in this Line.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in mp and all the points in mp that are not in this Line.

mp

the multipolygon to diff against

52. def symDifference(p: Polygon): AtMostOneDimensionPolygonSymDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in p and all the points in p that are not in this Line.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in p and all the points in p that are not in this Line.

p

the polygon to diff against

53. def symDifference(g: OneDimension): OneDimensionOneDimensionSymDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g and all the points in g that are not in this Line.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g and all the points in g that are not in this Line.

g

the geometry to diff against

54. def symDifference(g: ZeroDimensions): ZeroDimensionsLineSymDifferenceResult

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g and all the points in g that are not in this Line.

Computes a Result that represents a Geometry made up of all the points in this Line that are not in g and all the points in g that are not in this Line.

g

the geometry to diff against

55. final def synchronized[T0](arg0: ⇒ T0): T0

Definition Classes
AnyRef
56. def toString(): String

Definition Classes
Geometry → AnyRef → Any
57. def touches(g: Geometry): Boolean

Tests whether this Line touches the specified Geometry g.

Tests whether this Line touches the specified Geometry g. Returns true if the DE-9IM Intersection Matrix for the two geometries is FT*******, F**T***** or F***T****.

g

the geometry to check if this line is touching

58. def union(mp: MultiPolygon): LineMultiPolygonUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a MultiPolygon.

59. def union(p: Polygon): AtMostOneDimensionPolygonUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a Polygon.

Computes a Result that represents a Geometry made up of all the points in this Line and a Polygon.

p

the geometry to union with

60. def union(g: OneDimension): LineOneDimensionUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a OneDimension geometry.

Computes a Result that represents a Geometry made up of all the points in this Line and a OneDimension geometry.

g

the geometry to union with

61. def union(g: ZeroDimensions): ZeroDimensionsLineUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a a ZeroDimensions geometry.

Computes a Result that represents a Geometry made up of all the points in this Line and a a ZeroDimensions geometry.

g

the geometry to union with

62. lazy val vertexCount: Int

Returns the number of vertices in this geometry

63. def vertices: Array[Point]

Returns the points which determine this line (i.e.

Returns the points which determine this line (i.e. its vertices

64. final def wait(): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
65. final def wait(arg0: Long, arg1: Int): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
66. final def wait(arg0: Long): Unit

Definition Classes
AnyRef
Annotations
@throws( ... )
67. def within(g: AtLeastOneDimension): Boolean

Tests whether this Line is within the specified AtLeastOneDimension g.

Tests whether this Line is within the specified AtLeastOneDimension g. Returns true if the DE-9IM Intersection Matrix for the two geometries is T*F**F***.

g

the geometry to check if this line is within

68. def withinDistance(other: Geometry, dist: Double): Boolean

Determine whether another Geometry is within a given distance

Determine whether another Geometry is within a given distance

other

The geometry to check

dist

The radius of the circle within which this check is conducted

Definition Classes
Geometry
69. def |(mp: MultiPolygon): LineMultiPolygonUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a MultiPolygon.

70. def |(p: Polygon): AtMostOneDimensionPolygonUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a Polygon.

Computes a Result that represents a Geometry made up of all the points in this Line and a Polygon.

p

the geometry to union with

71. def |(g: OneDimension): LineOneDimensionUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a OneDimension geometry.

Computes a Result that represents a Geometry made up of all the points in this Line and a OneDimension geometry.

g

the geometry to union with

72. def |(g: ZeroDimensions): ZeroDimensionsLineUnionResult

Computes a Result that represents a Geometry made up of all the points in this Line and a a ZeroDimensions geometry.

Computes a Result that represents a Geometry made up of all the points in this Line and a a ZeroDimensions geometry.

g

the geometry to union with