geojson:multi-point( $multi-point as object-node() ) as cts:point*
Create a set of cts:point values from a GeoJSON "MultiPoint" type geometry object.
Parameters | |
---|---|
multi-point | A GeoJSON MultiPoint node. |
xquery version "1.0-ml"; import module namespace geojson = "http://marklogic.com/geospatial/geojson" at "/MarkLogic/geospatial/geojson.xqy"; geojson:multi-point( object-node { "type" : "MultiPoint", "coordinates" : array-node { array-node {100.0, 0.0}, array-node {101.0, 1.0} } )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.