Loading TOC...

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

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.