To use these functions, the Spatial Feature is required.
The spatial functions are based upon the JTS Topology Suite.
Notice, that JTS only considers x and y coordinate and ignores the z coordinate (although z can be definied)!
Transform the list of spatial polar coordinates into a list of Cartesian coordinates
Transforms a String in WKT to a Geometry in Odysseus. If you have x and y (i.e. Latitude and Longitude) in your data stream, you can use this function as follows to create a Geometry.
We support the SRID field of EWKT as well as a custom extension. With "id=1234" you can set the id of the feature. This is used in serialization into GeoJSON, where an id field for a feature is necessary.
Returns the centroid of the given geometry
GetXFromSpatial / GetYFromSpatial
Extracts the X or Y value of a geometry. In Odysseus, x is typically latitude and y is longitude.
Distance between the Geometries in meters on the earths surface. Internally, the first coordinate of the respective geometry is used. Hence, for points, this should be accurate. For other geometries, accuracy can vary. (see https://en.wikipedia.org/wiki/Great-circle_distance)
Creates a buffer of the given size around the given geometry
Checks whether the first geometry contains the second geometry.
Computes the smallest convex spatial p
olygon that contains all the points in the
Calculates the distance between the two points. The distance is given in degrees, as the function does not know anything about the used geodetic datum. Hence, it can be used without an SRID. Internally, the distance-function from the JTS is used.
SpatialUnionBuffer(Geometry, Geometry, Geometry)
Checks if the first Geometry is within the second Geometry.
Transforms the given spatial polar coordinate into a spatial Cartesian coordinate.
Transforms the given spatial Cartesian coordinate into a polar coordinate
- No labels