Loading TOC...

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] ] }
);
  

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.