MarkLogic 9 Product Documentation
georss:to-georss

georss:to-georss(
   $regions as cts:region*
) as element()*

Summary

Convert cts:region values to GeoRSS XML elements.

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

See Also

Example

import module namespace georss="http://www.georss.org/georss"
  at "/MarkLogic/geospatial/georss.xqy";

georss:to-georss(
  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)
  ))
)

(:
  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>
:)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy