Loading TOC...

geogml.interiorPolygon

geogml.interiorPolygon(
   $polygon as Node
) as Sequence

Summary

Create a sequence of cts:polygon values from a GML Polygon element. The polygons returned represent the interior polygons, if any.

Parameters
$polygon A GML Polygon element representing the polygon.

Example

  xquery version "1.0-ml";
  import module namespace geogml = "http://marklogic.com/geospatial/gml"
         at "/MarkLogic/geospatial/gml.xqy";
  declare namespace gml="http://www.opengis.net/gml/3.2";

  (: Returns empty; no interior :)
  geogml:interior-polygon(
    <gml:Polygon>
      <gml:exterior><gml:LinearRing>
        <gml:pos>12.5 -127.24</gml:pos>
        <gml:pos>15.25 -127.8</gml:pos>
        <gml:pos>13.45 -126.1</gml:pos>
        <gml:pos>12.5 -127.24</gml:pos>
      </gml:LinearRing></gml:exterior>
    </gml:Polygon>
  )
  

Comments

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