Loading TOC...

MarkLogic Server 11.0 Product Documentation
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>
  )
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.