cts functions (Geospatial)

The geospatial built-in functions are XQuery functions defined to operate on geospatial values.

32 functions
Function nameDescription
cts:arc-intersection Returns the point at the intersection of two arcs.
cts:bearing Returns the true bearing in radians of the path from the first point to the second.
cts:bounding-boxes Returns a sequence of boxes that bound the given region.
cts:box Returns a geospatial box value.
cts:box-east Returns a box's eastern boundary.
cts:box-intersects Returns true if the box intersects with a region.
cts:box-north Returns a box's northern boundary.
cts:box-south Returns a box's southern boundary.
cts:box-west Returns a box's western boundary.
cts:circle Returns a geospatial circle value.
cts:circle-center Returns a circle's center point.
cts:circle-intersects Returns true if the circle intersects with a region.
cts:circle-radius Returns a circle's radius.
cts:complex-polygon Returns a geospatial complex polygon value.
cts:complex-polygon-contains Returns true if the complex-polygon contains a region.
cts:complex-polygon-inner Returns a complex polygon's inner polygons.
cts:complex-polygon-intersects Returns true if the complex-polygon intersects with a region.
cts:complex-polygon-outer Returns a complex polygon's outer polygon.
cts:destination Returns the point at the given distance (in miles) along the given bearing (in radians) from the starting point.
cts:distance Returns the distance (in miles) between two points.
cts:linestring Returns a geospatial linestring value.
cts:linestring-vertices Returns a linestring's vertices.
cts:parse-wkt Returns a sequence of geospatial regions parsed from Well-Known Text format.
cts:point Returns a point value.
cts:point-latitude Returns a point's latitude value.
cts:point-longitude Returns a point's longitude value.
cts:polygon Returns a geospatial polygon value.
cts:polygon-contains Returns true if the polygon contains a region.
cts:polygon-intersects Returns true if the polygon intersects with a region.
cts:polygon-vertices Returns a polygon's vertices.
cts:shortest-distance Returns the great circle distance (in miles) between a point and an region.
cts:to-wkt Returns a sequence of strings in Well-Known Text format.