Loading TOC...

geojson.circle

geojson.circle(
   $radius as Number,
   $center as objectNode()
) 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

var geojson = require('/MarkLogic/geospatial/geojson.xqy');

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

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy