geotrellis.vector

Line

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Line(jtsGeom: LineString)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. 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

  5. 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

  6. 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

  7. def &(g: Geometry): TwoDimensionsTwoDimensionsIntersectionResult

    Definition Classes
    Geometry
  8. 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

  9. 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

  10. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  12. 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
  13. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  14. 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.

  15. 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

  16. def centroid: PointOrNoResult

    Calculate centroid of this Geometry

    Calculate centroid of this Geometry

    Definition Classes
    Geometry
  17. def clone(): AnyRef

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

    Returns a closed version of the line.

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

  19. 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

  20. 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

  21. 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

  22. 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

  23. 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

  24. 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

  25. 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

  26. def disjoint(other: Geometry): Boolean

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

    Calculate the distance to another Geometry

    Calculate the distance to another Geometry

    Definition Classes
    Geometry
  28. def envelope: Extent

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

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

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

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

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

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

    Definition Classes
    Geometry
  35. 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

  36. 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

  37. 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

  38. 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
  39. def intersects(other: Geometry): Boolean

    Definition Classes
    Relatable
  40. lazy val isClosed: Boolean

    Tests if the initial vertex equals the final vertex.

  41. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  42. 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.

  43. def isValid: Boolean

    Check the validity of this geometry

    Check the validity of this geometry

    Definition Classes
    Geometry
  44. val jtsGeom: LineString

    Return the wrapped jts Geometry

    Return the wrapped jts Geometry

    Definition Classes
    LineDimensionsGeometry
  45. lazy val length: Double

    Returns the length of this Line.

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

    Definition Classes
    AnyRef
  47. def normalized(): Line

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

  48. final def notify(): Unit

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

    Definition Classes
    AnyRef
  50. 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

  51. def points: Array[Point]

    Returns the points which determine this line (i.

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

  52. 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
  53. 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

  54. 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

  55. 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

  56. 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

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

    Definition Classes
    AnyRef
  58. def toString(): String

    Definition Classes
    Geometry → AnyRef → Any
  59. 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

  60. def union(mp: MultiPolygon): LineMultiPolygonUnionResult

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

  61. 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

  62. 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

  63. 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

  64. lazy val vertexCount: Int

    Returns the number of vertices in this geometry

  65. def vertices: Array[Point]

    Returns the points which determine this line (i.

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

  66. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. 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

  70. 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
  71. def |(mp: MultiPolygon): LineMultiPolygonUnionResult

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

  72. 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

  73. 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

  74. 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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from OneDimension

Inherited from AtLeastOneDimension

Inherited from AtMostOneDimension

Inherited from Dimensions

Inherited from Relatable

Inherited from Geometry

Inherited from AnyRef

Inherited from Any

Ungrouped