Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts.linestringVertices

cts.linestringVertices(
   linestring as cts.linestring
) as Sequence

Summary

Returns a linestring's vertices.

Parameters
linestring The linestring.

See Also

Example

const 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) ];
const ls = cts.linestring(points);
cts.linestringVertices(ls);

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