Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.approxCenter

cts.approxCenter() as 

Summary

[DEPRECATED: use geo:approx-center instead] Return a point approximating the center of the given region. For a point, this is the point itself. For a circle, it is the center point. For a box, it is the point whose latitude is half-way between the northern and southern limits and whose longitude is half-way between the western and eastern limits. For a linestring, it is the middle point of the line. For polygons and complex polygons an approximate centroid is returned. This approximation is rough, and useful for quick comparisons.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.