Loading TOC...

MarkLogic 10 Product Documentation
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

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

geojson.linestring(
  { type: 'LineString', coordinates: [ [100.0, 0.0], [101.0, 1.0] ] }
);
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.