Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts functions (Geospatial (Deprecated))

The following functions are deprecated. You should use the corresponding functions in the geo namespace instead. For example, use geo:distance instead of cts:distance in XQuery; use geo.distance instead of cts.distance in Server-Side JavaScript.

17 functions
Function name Description
cts.approxCenter [DEPRECATED: use geo:approx-center instead] Return a point approximating the center of the given region.
cts.arcIntersection [DEPRECATED: use geo:arc-intersection instead] Returns the point at the intersection of two arcs.
cts.bearing [DEPRECATED: use geo:bearing instead] Returns the true bearing in radians of the path from the first point to the second.
cts.boundingBoxes [DEPRECATED: use geo:bounding-boxes instead] Returns a sequence of boxes that bound the given region.
cts.boxIntersects [DEPRECATED: use geo:box-intersects instead] Returns true if the box intersects with a region.
cts.circleIntersects [DEPRECATED: use geo:circle-intersects instead] Returns true if the circle intersects with a region.
cts.complexPolygonContains [DEPRECATED: use geo:complex-polygon-contains instead] Returns true if the complex-polygon contains a region.
cts.complexPolygonIntersects [DEPRECATED: use geo:complex-polygon-intersects instead] Returns true if the complex-polygon intersects with a region.
cts.destination [DEPRECATED: use geo:destination instead] Returns the point at the given distance (in miles) along the given bearing (in radians) from the starting point.
cts.distance [DEPRECATED: use geo:distance instead] Returns the distance (in miles) between two points.
cts.parseWkt [DEPRECATED: use geo:parse-wkt instead] Returns a sequence of geospatial regions parsed from Well-Known Text format.
cts.polygonContains [DEPRECATED: use geo:polygon-contains instead] Returns true if the polygon contains a region.
cts.polygonIntersects [DEPRECATED: use geo:polygon-intersects instead] Returns true if the polygon intersects with a region.
cts.regionContains [DEPRECATED: use geo:region-contains instead] Returns true if the region contains the other region.
cts.regionIntersects [DEPRECATED: use geo:region-intersects instead] Returns true if the region intersects with a region.
cts.shortestDistance [DEPRECATED: use geo:shortest-distance instead] Returns the great circle distance (in miles) between a point and an region.
cts.toWkt [DEPRECATED: use geo:to-wkt instead] Returns a sequence of strings in Well-Known Text format.