
geojson:linestring( $linestring as object-node() ) as cts:linestring
Create a cts:linestring value from a GeoJSON "LineString" type geometry object.
| Parameters | |
|---|---|
| linestring | A GeoJSON LineString node. |
xquery version "1.0-ml";
import module namespace geojson = "http://marklogic.com/geospatial/geojson"
at "/MarkLogic/geospatial/geojson.xqy";
geojson:linestring(
object-node {
"type": "LineString",
"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.