Loading TOC...

geojson.multiPoint

geojson.multiPoint(
   $multi-point as objectNode()
) as ValueIterator

Summary

Create a set of cts:point values from a GeoJSON "MultiPoint" type geometry object.

Parameters
$multi-point A GeoJSON MultiPoint node.

Usage Notes

The GeoJSON MultiPoint node includes additional information that is not retained in the cts:point values. In particular, the altitude part of each point value will be dropped.

Example

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

geojson.multiPoint(
  { type: 'MultiPoint', 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