
geogml:complex-polygon( $complex-polygon as element() ) as cts:complex-polygon
Create a cts:complex-polygon value from a GML Polygon
element. The polygon returned represents the combination of
the exterior polygon and the interior polygons.
| Parameters | |
|---|---|
| complex-polygon | A GML Polygon element representing the complex polygon. |
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";
geogml:complex-polygon(
<gml:Polygon>
<gml:exterior>
<gml:LinearRing>
<gml:posList>12.5,-127.24 15.25,-127.8 13.45,-126.1 12.5,-127.24</gml:posList>
</gml:LinearRing>
</gml:exterior>
<gml:interior>
<gml:LinearRing>
<gml:posList>13,-127 -14,127 -14,126 -13,127</gml:posList>
</gml:LinearRing>
</gml:interior>
</gml:Polygon>
)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.