georss:polygon( $polygon-or-points as element()+ ) as cts:polygon
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. |
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> ))
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> )
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.