Loading TOC...

geo.polygon

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

Summary

Create a cts:polygon value from a sequence of point nodes in one of the supported markup vocabularies, such as KML or GML.

Parameters
$polygon-or-points A sequence of nodes, each representing a vertex (point) of the polygon, or a polygon node. A polygon from one of the supported markup vocabularies represents the exterior polygon for those vocabularies that include both exterior and interior polygons in their representation.

Example

  xquery version "1.0-ml";
  import module namespace geo = "http://marklogic.com/geospatial"
         at "/MarkLogic/geospatial/geospatial.xqy";

  geo:polygon(( <Dot Latitude="12.5" Longitude="-127.24"/>,
                <Dot Latitude="15.25" Longitude="-127.8"/>,
                <Dot Latitude="13.45" Longitude="-126.1"/>,
                <Dot Latitude="12.5" Longitude="-127.24"/>
             ))
  

Comments

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