Loading TOC...

MarkLogic 9 Product Documentation
geojson:circle

geojson:circle(
   $radius as xs:double,
   $center as object-node()
) as cts:circle

Summary

Create a cts:circle value from a radius and a GeoJSON "Point" type geometry object.

Parameters
radius The radius of the circle, in miles.
center A GeoJSON Point node representing the center of the circle.

Example

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

  geojson:circle(1,
    object-node { "type" : "Point", "coordinates" : array-node {100.00, 0.0} }
  )
  

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