Loading TOC...

geo.linestring

geo.linestring(
   $linestring as Node
) as cts.linestring

Summary

Create a cts.linestring value from a node representing a linestring in one of the supported markup vocabularies, such as GML or KML.

Parameters
$linestring A node representing a linesting.

Usage Notes

If you know the geospatial data format (GML, KML, etc.), it is more efficient to use the equivalent format-specific function.

See Also

Example

const geo = require('/MarkLogic/geospatial/geospatial');

geo.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