geojson.linestring

geojson.linestring(
   linestring as objectNode()
) as cts.linestring

Summary

Create a cts:linestring value from a GeoJSON "LineString" type geometry object.

Parameters
linestring A GeoJSON LineString node.

Example

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

geojson.linestring(
  { type: 'LineString', coordinates: [ [100.0, 0.0], [101.0, 1.0] ] }
);
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy