Loading TOC...

geo.circle

geo.circle(
   $radius as Number,
   $center as Node
) as cts.circle

Summary

Create a cts.box value from a radius and a node representing a point in one of the supported markup vocabularies, such as KML, GML, or GeoJSON.

Parameters
$radius The radius of the circle, in miles.
$center A node representing the point at the center of the circle.

Usage Notes

If you know the geospatial data format (GML, KML, etc.), it is more efficient to use the equivalent format-specific function.

See Also

Example

const geo = require('/MarkLogic/geospatial/geospatial');

geo.circle(1, {type: 'Point', coordinates: [100.0,0.0]});
  

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.