Skip to main content

What's New in MarkLogic 11

Geospatial Region Accessors Can Now Return Double Values

The introduction of support for double precision coordinates in MarkLogic 9 means that some geospatial operations may return different results than in the past.

Previously, geospatial region accessor functions such as the XQuery function cts:point-latitude or the Server-Side JavaScript function cts.pointLatitude always returned float values. As of MarkLogic 9, these functions can return either single or double precision values, depending on the governing coordinate system. If you do not use a double precision coordinate system, you should not notice a difference.

The following functions are affected.

XQuery Function

JavaScript Function

cts:point-latitude

cts.pointLatitude

cts:point-longitude

cts.pointLongitude

cts:box-west

cts.boxWest

cts:box-east

cts.boxEast

cts:box-south

cts.boxSouth

cts:box-north

cts.boxNorth

For more details, see How Precision Affects Geospatial Operations in the Search Developer's Guide.