geokml:circle( $radius as xs:double, $center as element() ) as cts:circle
Create a cts:circle value from a radius and KML Point or Location element.
Parameters | |
---|---|
radius | The radius of the circle, in miles. |
center | A KML Point or Location element representing the center of the circle. |
xquery version "1.0-ml"; import module namespace geokml = "http://marklogic.com/geospatial/kml" at "/MarkLogic/geospatial/kml.xqy"; declare namespace kml="http://www.opengis.net/kml/2.2"; geokml:circle(47, <kml:Point> <kml:coordinates>-127.24,12.5</kml:coordinates> </kml:Point>)