Loading TOC...

georss.polygon

georss.polygon(
   $polygon-or-points as Node[]
) as cts.polygon

Summary

Create a cts:polygon value from a sequence of GeoRSS point elements or a GeoRSS polygon element.

Parameters
$polygon-or-points A sequence of point elements representing the vertices of the polygon or a polygon element.

Example

  xquery version "1.0-ml";
  import module namespace georss = "http://www.georss.org/georss"
         at "/MarkLogic/geospatial/georss.xqy";

  georss:polygon((
    <georss:point>12.5 -127.24</georss:point>,
    <georss:point>15.25 -127.8</georss:point>,
    <georss:point>13.45 -126.1</georss:point>,
    <georss:point>12.5 -127.24</georss:point>
  ))
  

Example

  xquery version "1.0-ml";
  import module namespace georss = "http://www.georss.org/georss"
         at "/MarkLogic/geospatial/georss.xqy";

  georss:polygon(
    <georss:polygon>45.256 -110.45 46.46 -109.48 43.84 -109.86 45.256 -110.45</georss:polygon>
  )
  

Comments

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