Functions: com.teracloud.streams.geospatial 5.0.0
Functions
- area(T)
- Computes the area of the provided geometry, is always 0.0 for 0-d and 1-d objects. Area is computed on the spherical earth model for 2-d geometries. In case of an exception, -1 will be returned and the exception logged.
- azimuth(T, T)
- Computes the azimuth between two points expressed in WGS84 coordinates, the input points are in WKT format.
- base32GeohashToBinary(T)
- Converts a geohash in base32 format to a binary string.
- binaryGeohashToBase32(T)
- Converts a geohash in binary format to a base32 string.
- containingGeohash(T, float64)
- Provides a utility method to do spatial aggregation on point geometry data, where the input geometry is expected to be a point (in WGS84 coordinates) in WKT format and a boxSize in meters.
- contains(T, T)
- Determines if the first geometry contains the second geometry, geometries are specified in WKT format.
- destinationPoint(T, float64, float64)
- Computes the destination point given a point, the heading/azimuth, and the distance in meters, the input point is in WKT format with WGS84 coordinates, the output point is in WKT WGS84 format.
- distance(T, T)
- Computes the shortest distance in meters between given geometries in WKT format on the spherical earth model.
- geohashDecode(T)
- Decodes a given geohash to its corresponding geometry in WKT format.
- geohashDistanceEncode(T, float64)
- Encodes the input geometry as a bit representation geohash.
- geohashEncode(T)
- Encodes the provided geometry as a geohash in bit representation.
- geohashStringDecode(T)
- Decodes a given base 32 encoded geohash to its corresponding point geometry in WKT format.
- geohashStringEncode(T)
- Encodes the provided point as a base 32 encoded string.
- getLatitude(T)
- Extract latitude from WKT point geometry
- getLongitude(T)
- Extract longitude from WKT point geometry
- intersects(T, T)
- Computes if the two geometries intersect, resulting in either true/false as the output.
- isValid(T)
- Validates the given input geometry, the input is in WKT format and the output is a true/false
- lineSegment(float64, float64, float64, float64)
- Constructs a line segment from four doubles, the order is specified as 'startlongitude, startlatitude, endlongitude, endlatitude' and the output is a WKT formatted geometry
- nearestPoint(T, T)
- Finds the nearest point on a linestring from a given point, where both geometries are specified in WKT format and WGS84 coordinates.
- orientedPolygon(T)
- Constructs a polygon that has its orientation specified, the polygon is a simple polygon and specified as a string with comma separated longitude, latitude values (in WGS84 decimal degrees).
- point(float64, float64)
- Constructs a point geometry from a longitude and a latitude, both specified in decimal degrees in WGS84 Datum.
- polygon(T)
- Constructs a polygon from a String representation, where the polygon is a simple polygon (without any holes) and is specified as follows: 'longitude_1, latitude_1, longitude_2, latitude_2, ... , longitude_n, latitude_n', where n is the number of points. This constructor will re-orient the polygon so that it always constructs the 'smaller' polygon. The output format is a WKT geometry
- timeBoxesForPeriod(int64, int64, int32)
- Computes the discrete time period covered by the start and end.
- timeBoxesForPeriod(uint64, uint64, uint32)
- Computes the discrete time period covered by the start and end.
- toGeoJSON(T)
- Convert the given WKT formatted geometry to a GeoJSON format.
- within(T, T)
- Returns true if the first geometry is within the second.
- withinDistance(T, T, float64)
- Returns true if the first geometry and the second geometry are within the specified distance in meters.