geogml.circle( radius as Number, center as Node ) as cts.circle
Create a cts:circle
value from a radius and GML Point
element.
Parameters | |
---|---|
radius | The radius of the circle, in miles. |
center | A GML Point element representing the center of the circle. |
const geogml = require("/MarkLogic/geospatial/gml"); const center = fn.head(xdmp.unquote( '<gml:Point xmlns:gml="http://www.opengis.net/gml/3.2">' + '<gml:pos>12.5 -127.24</gml:pos>' + '</gml:Point>' )).root; geogml.circle(47, center);