Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts:point-longitude

cts:point-longitude(
   $point as cts:point
) as xs:numeric

Summary

Returns a point's longitude value.

Parameters
point The point.

Usage Notes

This function can return a value of either xs:float or xs:double type, depending on the precision of the governing coordinate system.

See Also

Example

let $point := cts:point(37.270556, -118.672778)
return cts:point-longitude($point)

=> -118.6728

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