Geospatial Region Accessors Can Now Return Double Values
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
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 |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
For more details, see How Precision Affects Geospatial Operations in the Search Developer's Guide.