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. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def &(other: Extent): Option[Extent]

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

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def area: Double

    The area of this extent

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def buffer(width: Double, height: Double): Extent
  8. def buffer(d: Double): Extent

    Create a new extent using a buffer around this extent

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

    The centroid of this extent

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def combine(other: Extent): Extent

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

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

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

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

  15. def contains(other: Extent): Boolean

    Empty extent contains nothing, though non empty extent contains iteslf

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

    Predicate for whether this extent covers a point

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

    Predicate for whether this extent covers a point

  18. def covers(other: Extent): Boolean

    Predicate for whether this extent covers another

  19. def distance(other: Extent): Double

    Distance from another extent

  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. 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

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

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

  23. def expandBy(distance: Double): Extent

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

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

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

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

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

  26. def expandToInclude(other: Extent): Extent

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

  27. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. def hashCode(): Int
    Definition Classes
    Extent → AnyRef → Any
  30. val height: Double
  31. def interiorIntersects(other: Extent): Boolean

    Predicate for whether this extent intersects the interior of another

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

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

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

    Predicate for whether this extent intersects the specified point

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

    Predicate for whether this extent intersects another

  35. def intersects(other: Extent): Boolean

    Predicate for whether this extent intersects another

  36. def isEmpty: Boolean

    Predicate for whether this extent has 0 area

  37. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  38. def jtsEnvelope: Envelope
  39. def max: org.locationtech.jts.geom.Point
  40. def maxExtent: Double

    The maximum between the height and width of this extent

  41. def min: org.locationtech.jts.geom.Point
  42. def minExtent: Double

    The minimum between the height and width of this extent

  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. def northEast: org.locationtech.jts.geom.Point

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

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

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

  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  48. def southEast: org.locationtech.jts.geom.Point

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

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

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

  50. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  51. def toPolygon(): org.locationtech.jts.geom.Polygon

    Return this extent as a polygon

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

    Return this extent moved x and y amounts

  54. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  57. val width: Double
  58. val xmax: Double
  59. val xmin: Double
  60. val ymax: Double
  61. val ymin: Double

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped