Packages

o

com.github.dmarcous.s2utils.geo

GeographyUtilities

object GeographyUtilities

Enclosing objects for com.github.dmarcous.s2utils.geo.GeographyUtilities methods for handling jts Geometry objects.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GeographyUtilities
  2. AnyRef
  3. 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. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val SRID: Int
  5. def WKBtoGeometry(WKB: Array[Byte], gf: GeometryFactory): Geometry

    Convert WKB strings to a geometry object

    Convert WKB strings to a geometry object

    WKB

    a WKB byte array representation of a geometry

    gf

    Geometry Factory (see : GeographyUtilities.createGeometryFactory

    returns

    a geometry object

  6. def WKTtoGeometry(WKT: String, gf: GeometryFactory): Geometry

    Convert WKT strings to a geometry object

    Convert WKT strings to a geometry object

    WKT

    a WKT string representation of a geometry

    gf

    Geometry Factory (see : GeographyUtilities.createGeometryFactory

    returns

    a geometry object

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def boxSimplifyGeometry(geometry: Geometry, metersTolerance: Double = 5.0): Geometry

    Get a rectangular simplified expanded geometry, close to the original one

    Get a rectangular simplified expanded geometry, close to the original one

    geometry

    a geometry object

    metersTolerance

    maximal metric distance from geometry convex to be used for simplification

    returns

    a rectangular simplified geometry object

  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def createGeometryFactory(): GeometryFactory

    Create a new geography factory object to be used for other geo functions

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def geometryToWKB(geometry: Geometry): Array[Byte]

    Create a WKB representation of a geometry

    Create a WKB representation of a geometry

    geometry

    a geometry object

    returns

    a WKB string representation of a geometry

  15. def geometryToWKT(geometry: Geometry): String

    Create a WKT representation of a geometry

    Create a WKT representation of a geometry

    geometry

    a geometry object

    returns

    a WKT string representation of a geometry

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def haversineDistance(point1: Point, point2: Point): Double

    Calculate the haversine (sphere / geo) distance between 2 points

    Calculate the haversine (sphere / geo) distance between 2 points

    point1

    (longitude, latitude)

    point2

    (longitude, latitude)

    returns

    distance in meters between the 2 points given

  19. def haversineDistance(coordinate1: Coordinate, coordinate2: Coordinate): Double

    Calculate the haversine (sphere / geo) distance between 2 coordinates

    Calculate the haversine (sphere / geo) distance between 2 coordinates

    coordinate1

    (longitude, latitude)

    coordinate2

    (longitude, latitude)

    returns

    distance in meters between the 2 coordinates given

  20. def haversineDistance(lon1: Double, lat1: Double, lon2: Double, lat2: Double): Double

    Calculate the haversine (sphere / geo) distance between 2 coordinates

    Calculate the haversine (sphere / geo) distance between 2 coordinates

    lon1

    coordinate 1 - longitude

    lat1

    coordinate 1 - latitude

    lon2

    coordinate 2 - longitude

    lat2

    coordinate 2 - latitude

    returns

    distance in meters between the 2 coordinates given

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def mergeCoordinates(coordinates: Array[(Double, Double)], gf: GeometryFactory, metersTolerance: Double = 5.0): Geometry

    Merge multiple coordinates into a single simplified geometry

    Merge multiple coordinates into a single simplified geometry

    coordinates

    a collection of tuples (lon, lat)

    gf

    Geometry Factory (see : GeographyUtilities.createGeometryFactory

    metersTolerance

    maximal metric distance from geometry convex to be used for simplification

    returns

    a simplified geometry object

  23. def mergeCoordinates(coordinates: Array[Point], gf: GeometryFactory, metersTolerance: Double): Geometry

    Merge multiple points into a single simplified geometry

    Merge multiple points into a single simplified geometry

    coordinates

    a collection of points (lon, lat)

    gf

    Geometry Factory (see : GeographyUtilities.createGeometryFactory

    metersTolerance

    maximal metric distance from geometry convex to be used for simplification

    returns

    a simplified geometry object

  24. def mergeCoordinates(coordinates: Array[Coordinate], gf: GeometryFactory, metersTolerance: Double): Geometry

    Merge multiple coordinates into a single simplified geometry

    Merge multiple coordinates into a single simplified geometry

    coordinates

    a collection of coordinates

    gf

    Geometry Factory (see : GeographyUtilities.createGeometryFactory

    metersTolerance

    maximal metric distance from geometry convex to be used for simplification

    returns

    a simplified geometry object

  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def simplifyGeometry(geometry: Geometry, metersTolerance: Double = 5.0): Geometry

    Get a simplified expanded geometry, close to the original one

    Get a simplified expanded geometry, close to the original one

    geometry

    a geometry object

    metersTolerance

    maximal metric distance from geometry convex to be used for simplification

    returns

    a simplified geometry object

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped