Loading TOC...

MarkLogic 12 EA 1 Product Documentation
geo:interior-polygon

geo:interior-polygon(
   $polygon as node()
) as cts:polygon*

Summary

Create a sequence of cts:polygon values from a polygon node in one of the supported markup vocabularies, such as KML or GML. These polygons represent the interior polygons, if any.

Parameters
polygon A node representing a polygon.

Usage Notes

If you know the geospatial data format (GML, KML, etc.), it is more efficient to use the equivalent format-specific function.

See Also

Example

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

(: Returns empty; no interior polygon in this format :)
geo:interior-polygon( 
  <georss:polygon>
    12.5,-127.24 15.25,-127.8 13.45,-126.1 12.5,-127.24
  </georss:polygon>
) 
  

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