Loading TOC...

MarkLogic 12 EA 2 Product Documentation
geo.parseWkt

geo.parseWkt(
   wkt as String[]
) as Sequence

Summary

Returns a sequence of geospatial regions parsed from Well-Known Text format.

Parameters
wkt A sequence of strings in Well-Known Text format.

See Also

Example

const node = {Arapahoe:"POLYGON(( \n\
            0.396982870000000E+02 -0.104935135000000E+03, \n\
            0.396965870000000E+02 -0.104938635000000E+03, \n\
            0.396965870000000E+02 -0.104938635000000E+03, \n\
            0.397110870000000E+02 -0.104931634000000E+03, \n\
            0.397066870000000E+02 -0.104926934000000E+03, \n\
            0.397012870000000E+02 -0.104932834000000E+03, \n\
            0.396971870000000E+02 -0.104928134000000E+03, \n\
            0.396965870000000E+02 -0.104928134000000E+03, \n\
            0.396965870000000E+02 -0.104928134000000E+03, \n\
            0.396965870000000E+02 -0.104931534000000E+03, \n\
            0.396966870000000E+02 -0.104934335000000E+03, \n\
            0.396966870000000E+02 -0.104934335000000E+03, \n\
            0.396981250000000E+02 -0.104934109000000E+03), \n\
            ( 0.396981250000000E+02 -0.104934109000000E+03, \n\
            0.397001130000000E+02 -0.104931652000000E+03, \n\
            0.397001870000000E+02 -0.104934034000000E+03, \n\
            0.396981250000000E+02 -0.104934109000000E+03))"};
geo.parseWkt(node.Arapahoe);

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