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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy