Loading TOC...

mcgm:circle

mcgm:circle(
   $radius as xs:double,
   $center as element(Dot)
) as cts:circle

Summary

Create a cts:circle value from a radius and MCGM Dot element.

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

Example

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

  mcgm:circle(47, <Dot Latitude="12.5" Longitude="-127.24"/>)
  

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