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