MarkLogic 9 Product Documentation
cts.polygonVertices

cts.polygonVertices(
   polygon as cts.polygon
) as Sequence

Summary

Returns a polygon's vertices. The first vertex and last vertex will always be the same.

Parameters
polygon The polygon.

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),
    cts.point(0.373941400000000E+02, -0.122095573000000E+03),
    cts.point(0.373966400000000E+02, -0.122094173000000E+03),
    cts.point(0.373958400000000E+02, -0.122092373000000E+03),
    cts.point(0.374004400000000E+02, -0.122091273000000E+03),
    cts.point(0.374004400000000E+02, -0.122091273000000E+03),
    cts.point(0.373873400000000E+02, -0.122057872000000E+03),
    cts.point(0.373873400000000E+02, -0.122057872000000E+03),
    cts.point(0.373854400000000E+02, -0.122052672000000E+03),
    cts.point(0.373833400000000E+02, -0.122053372000000E+03),
    cts.point(0.373819400000000E+02, -0.122057572000000E+03),
    cts.point(0.373775400000000E+02, -0.122060872000000E+03),
    cts.point(0.373765400000000E+02, -0.122063772000000E+03) ];
cts.polygonVertices(cts.polygon(points));
Powered by MarkLogic Server | Terms of Use | Privacy Policy