Loading TOC...

geojson:multi-point

geojson:multi-point(
   $multi-point as object-node()
) as cts:point*

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

  xquery version "1.0-ml";
  import module namespace geojson = "http://marklogic.com/geospatial/geojson"
         at "/MarkLogic/geospatial/geojson.xqy";

  geojson:multi-point( object-node { 
    "type" : "MultiPoint", 
    "coordinates" : array-node { array-node {100.0, 0.0}, 
                                 array-node {101.0, 1.0} }
  )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.