Loading TOC...

MarkLogic 12 Product Documentation
cts:point

cts:point(
   $latitude-or-wkt as (xs:float|xs:string),
   $longitude as xs:float
) as cts:point

Summary

Returns a point value.

Parameters
latitude-or-wkt The latitude of the point. Alternatively, the vertex may be provided as a string that follows the well-known text (WKT) scheme for a point.
longitude The longitude of the point. If you supply a WKT string as latitude, this parameter must not be supplied.

See Also

Example

cts:point(0.373899653086420E+02, -0.122078578406509E+03)

Example

(: Note that the points are in longitude-latitude pairs :)
cts:point('POINT (122.078578406509 37.3899653086420)')

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