MarkLogic Server 11.0 Product Documentation
geojson.multiLinestring

geojson.multiLinestring(
   multi-linestring as objectNode()
) as Sequence

Summary

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

Parameters
multi-linestring A GeoJSON MultiLineString node.

Example

const geojson = require('/MarkLogic/geospatial/geojson.xqy');

geojson.multiLinestring(
  { type: 'MultiLineString',
    coordinates: [
        [ [100.0, 0.0], [101.0, 1.0] ],
        [ [102.0, 2.0], [103.0, 3.0] ]
  ] }
);
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy