geo:point( $point as node() ) as cts:point
Create a cts:point value from a node representing a point in one of the supported markup vocabularies, such as KML or GML.
Parameters | |
---|---|
point | A node representing a point. |
xquery version "1.0-ml"; import module namespace geo = "http://marklogic.com/geospatial" at "/MarkLogic/geospatial/geospatial.xqy"; declare namespace gml= "http://www.opengis.net/gml"; geo:point(<gml:Point><gml:pos>12.5 -127.24</gml:pos></gml:Point>)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.