Loading TOC...

MarkLogic Server 11.0 Product Documentation
georss.toGeorss

georss.toGeorss(
   regions as cts.region[]
) as Sequence

Summary

Convert cts:region values to GeoRSS XML elements.

Parameters
regions A sequence of cts:region values to convert to GeoRSS.

Usage Notes

The returned Sequence contains XML elements conforming to the GeoRSS representation.

See Also

Example

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

georss.toGeorss(
  cts.polygon([
    cts.point(5.0,1.0),cts.point(8.0,1.0),cts.point(8.0,6.0),cts.point(5.0,7.0)
  ])
);

/*
  Returns a GeoRSS polygon similar to the following:
  <georss:polygon>5.0 1.0 8.0 1.0 8.0 6.0 5.0 7.0 5.0 1.0</georss:polygon>
*/
  

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