MarkLogic Server 11.0 Product Documentation
geojson:multi-linestring

geojson:multi-linestring(
   $multi-linestring as object-node()
) as cts:linestring*

Summary

Create a set of cts:linestring values from a GeoJSON "MultiLineString" type geometry object.

Parameters
multi-linestring A GeoJSON MultiLineString node.

Example

  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} }
      }
    }
  )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy