Packages

case class Extent(xmin: Double, ymin: Double, xmax: Double, ymax: Double) extends Product with Serializable

A rectangular region of geographic space

xmin

The minimum x coordinate

ymin

The minimum y coordinate

xmax

The maximum x coordinate

ymax

The maximum y coordinate

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Extent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Extent(xmin: Double, ymin: Double, xmax: Double, ymax: Double)

    xmin

    The minimum x coordinate

    ymin

    The minimum y coordinate

    xmax

    The maximum x coordinate

    ymax

    The maximum y coordinate

Value Members

  1. def &(other: Extent): Option[Extent]

    Create an optional extent which represents the intersection with a provided extent

  2. def area: Double

    The area of this extent

  3. def buffer(width: Double, height: Double): Extent
  4. def buffer(d: Double): Extent

    Create a new extent using a buffer around this extent

  5. def center: org.locationtech.jts.geom.Point

    The centroid of this extent

  6. def combine(other: Extent): Extent

    Return the smallest extent that contains this extent and the provided extent.

  7. def compare(other: Extent): Int

    Orders two bounding boxes by their (geographically) lower-left corner.

    Orders two bounding boxes by their (geographically) lower-left corner. The bounding box that is further south (or west in the case of a tie) comes first.

    If the lower-left corners are the same, the upper-right corners are compared. This is mostly to assure that 0 is only returned when the extents are equal.

    Return type signals:

    -1 this bounding box comes first 0 the bounding boxes have the same lower-left corner 1 the other bounding box comes first

  8. def contains(x: Double, y: Double): Boolean

    Tests if the given point lies in or on the envelope.

    Tests if the given point lies in or on the envelope.

    Note

    This is the same definition as the SFS contains, which is unlike the JTS Envelope.contains, which would include the envelope boundary.

  9. def contains(p: org.locationtech.jts.geom.Point): Boolean

    Tests if the given point lies in or on the envelope.

    Tests if the given point lies in or on the envelope.

    Note

    This is the same definition as the SFS contains, which is unlike the JTS Envelope.contains, which would include the envelope boundary.

  10. def contains(other: Extent): Boolean

    Empty extent contains nothing, though non empty extent contains iteslf

  11. def covers(x: Double, y: Double): Boolean

    Predicate for whether this extent covers a point

  12. def covers(p: org.locationtech.jts.geom.Point): Boolean

    Predicate for whether this extent covers a point

  13. def covers(other: Extent): Boolean

    Predicate for whether this extent covers another

  14. def distance(other: Extent): Double

    Distance from another extent

  15. def equals(o: Any): Boolean

    Equality check against this extent

    Equality check against this extent

    Definition Classes
    Extent → Equals → AnyRef → Any
    Note

    only returns true given another extent

  16. def expandBy(deltaX: Double, deltaY: Double): Extent

    Return an extent of this extent expanded by the provided x and y distances

  17. def expandBy(distance: Double): Extent

    Return an extent of this extent expanded by the provided distance on all sides

  18. def expandToInclude(x: Double, y: Double): Extent

    Return the smallest extent that contains this extent and the provided point.

  19. def expandToInclude(p: org.locationtech.jts.geom.Point): Extent

    Return the smallest extent that contains this extent and the provided point.

  20. def expandToInclude(other: Extent): Extent

    Return the smallest extent that contains this extent and the provided extent.

  21. def hashCode(): Int
    Definition Classes
    Extent → AnyRef → Any
  22. val height: Double
  23. def interiorIntersects(other: Extent): Boolean

    Predicate for whether this extent intersects the interior of another

  24. def intersection(other: Extent): Option[Extent]

    Create an optional extent which represents the intersection with a provided extent

  25. def intersects(x: Double, y: Double): Boolean

    Predicate for whether this extent intersects the specified point

  26. def intersects(p: org.locationtech.jts.geom.Point): Boolean

    Predicate for whether this extent intersects another

  27. def intersects(other: Extent): Boolean

    Predicate for whether this extent intersects another

  28. def isEmpty: Boolean

    Predicate for whether this extent has 0 area

  29. def jtsEnvelope: Envelope
  30. def max: org.locationtech.jts.geom.Point
  31. def maxExtent: Double

    The maximum between the height and width of this extent

  32. def min: org.locationtech.jts.geom.Point
  33. def minExtent: Double

    The minimum between the height and width of this extent

  34. def northEast: org.locationtech.jts.geom.Point

    The NE corner (xmax, ymax) as a Point.

  35. def northWest: org.locationtech.jts.geom.Point

    The NW corner (xmin, ymax) as a Point.

  36. def southEast: org.locationtech.jts.geom.Point

    The SE corner (xmax, ymin) as a Point.

  37. def southWest: org.locationtech.jts.geom.Point

    The SW corner (xmin, ymin) as a Point.

  38. def toPolygon(): org.locationtech.jts.geom.Polygon

    Return this extent as a polygon

  39. def toString(): String
    Definition Classes
    Extent → AnyRef → Any
  40. def translate(deltaX: Double, deltaY: Double): Extent

    Return this extent moved x and y amounts

  41. val width: Double
  42. val xmax: Double
  43. val xmin: Double
  44. val ymax: Double
  45. val ymin: Double