object GeographyUtilities
Enclosing objects for com.github.dmarcous.s2utils.geo.GeographyUtilities methods for handling jts Geometry objects.
- Alphabetic
- By Inheritance
- GeographyUtilities
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val SRID: Int
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createGeometryFactory(): GeometryFactory
Create a new geography factory object to be used for other geo functions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
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
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )