
geojson.linestring( linestring as objectNode() ) as cts.linestring
Create a cts:linestring value from a GeoJSON "LineString" type geometry object.
| Parameters | |
|---|---|
| linestring | A GeoJSON LineString node. | 
var geojson = require('/MarkLogic/geospatial/geojson.xqy');
geojson.linestring(
  { type: 'LineString', coordinates: [ [100.0, 0.0], [101.0, 1.0] ] }
);