Object

org.locationtech.geomesa.utils.geotools

GeometryUtils

Related Doc: package geotools

Permalink

object GeometryUtils extends LazyLogging

The object provides convenience methods for common operations on geometries.

Linear Supertypes
LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GeometryUtils
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addWayPoints(coords: Seq[Coordinate]): List[Coordinate]

    Permalink

    Adds way points to Seq[Coordinates] so that they remain valid with Spatial4j, useful for BBOX

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bounds(geometry: Geometry, maxBounds: Int, maxBitResolution: Int): Seq[(Double, Double, Double, Double)]

    Permalink

    Returns the rough bounds of a geometry, decomposing the geometry to provide better accuracy

    Returns the rough bounds of a geometry, decomposing the geometry to provide better accuracy

    geometry

    geometry

    maxBounds

    maximum number of bounds that will be returned

    maxBitResolution

    maximum bit resolution to decompose to must be between 1-63, inclusive

    returns

    seq of (xmin, ymin, xmax, ymax)

  7. def bounds(geometry: Geometry): (Double, Double, Double, Double)

    Permalink

    Returns the rough bounds of a geometry

    Returns the rough bounds of a geometry

    geometry

    geometry

    returns

    (xmin, ymin, xmax, ymax)

  8. def calcCrossLat(point1: Coordinate, point2: Coordinate, crossLon: Double): Double

    Permalink

    Calculate the latitude at which a segment intercepts a given latitude.

    Calculate the latitude at which a segment intercepts a given latitude.

    point1

    The first point in the segment

    point2

    The second point in the segment

    crossLon

    The longitude of intercept

    returns

    a double representing the intercept latitude

  9. def calcIDLIntercept(point1: Coordinate, point2: Coordinate): Double

    Permalink

    Calculate the latitude at which the segment intercepts the IDL.

    Calculate the latitude at which the segment intercepts the IDL. This function assumes that the provided points do actually cross the IDL.

    point1

    The first point in the segment

    point2

    The second point in the segment

    returns

    a double representing the intercept latitude

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def crossesIDL(point1: Coordinate, point2: Coordinate): Boolean

    Permalink

    This function checks if a segment crosses the IDL.

    This function checks if a segment crosses the IDL.

    point1

    The first point in the segment

    point2

    The second point in the segment

    returns

    boolean true if the segment crosses the IDL, otherwise false

  12. def directionalDegrees(point: Point, meters: Double, calc: GeodeticCalculator): (Double, Double)

    Permalink

    Calculate distance from a point, in degrees.

    Calculate distance from a point, in degrees.

    Note: normally east/west would be the largest in degrees, but sometimes it can be smaller due to variances in the ellipsoid

    point

    point to buffer

    meters

    distance to buffer, in meters

    calc

    calculator, for re-use

    returns

    (east/west, north/south) distance in degrees

  13. def distanceDegrees(env: Envelope, meters: Double): (Double, Double)

    Permalink

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value

    Distances are measured from the corners of the geometry envelope

    env

    envelope to buffer

    meters

    meters

    returns

    (min degrees, max degrees)

  14. def distanceDegrees(point: Point, meters: Double, calc: GeodeticCalculator): (Double, Double)

    Permalink

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value

    point

    geometry to buffer

    meters

    meters

    calc

    geodetic calculator instance

    returns

    (min degrees, max degrees)

  15. def distanceDegrees(geom: Geometry, meters: Double): (Double, Double)

    Permalink

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Convert meters to decimal degrees, based on the latitude of the geometry.

    Returns two values, ones based on latitude and one based on longitude. The first value will always be <= the second value

    For non-point geometries, distances are measured from the corners of the geometry envelope

    geom

    geometry to buffer

    meters

    meters

    returns

    (min degrees, max degrees)

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. val geoFactory: GeometryFactory

    Permalink
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isRectangular(p: Polygon): Boolean

    Permalink

    Checks that a polygon is rectangular and has no interior holes

    Checks that a polygon is rectangular and has no interior holes

    p

    polygon

  24. def isRectangular(geometry: Geometry): Boolean

    Permalink

    Evaluates the complexity of a geometry.

    Evaluates the complexity of a geometry. Will return true if the geometry is a point or a rectangular polygon without interior holes.

    geometry

    geometry

  25. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def splitBoundingBox(envelope: ReferencedEnvelope): Seq[ReferencedEnvelope]

    Permalink

    Split a bounding box envelope, which may extend outside [-180,180], into one or more envelopes that are contained within [-180,180]

    Split a bounding box envelope, which may extend outside [-180,180], into one or more envelopes that are contained within [-180,180]

    envelope

    envelope of a bounding box

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

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. val zeroPoint: Point

    Permalink

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped