Loading TOC...

MarkLogic 12 EA 2 Product Documentation
geojson.multiPoint

geojson.multiPoint(
   multi-point as objectNode()
) as Sequence

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

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

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