cts:linestring( $vertices as (cts:point*|xs:string) ) as cts:linestring
Returns a geospatial linestring value.
Parameters | |
---|---|
vertices | The waypoints of the linestring, given in order. Alternatively, the vertices may be provided as a string that follows the well-known text (WKT) scheme for a linestring. |
let $points := (cts:point(0.373899653086420E+02, -0.122078578406509E+03), cts:point(0.373765400000000E+02, -0.122063772000000E+03), cts:point(0.373781400000000E+02, -0.122067972000000E+03), cts:point(0.373825650000000E+02, -0.122068365000000E+03), cts:point(0.373797400000000E+02, -0.122072172000000E+03), cts:point(0.373899400000000E+02, -0.122092573000000E+03) ) return cts:linestring($points)
(: Note that the points are in longitude-latitude pairs :) let $points := 'LINESTRING ( 122.078578406509 37.3899653086420, 122.063772000000 37.3765400000000, 122.067972000000 37.3781400000000 )' return cts:linestring($points)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.