MarkLogic 12 EA 1 Product Documentation
geo.interiorPolygon

geo.interiorPolygon(
   polygon as Node
) as Sequence

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

const geo = require('/MarkLogic/geospatial/geospatial');

geo.interiorPolygon(
  { type: 'Polygon', 
    coordinates: [
      [[100.0,0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],
      [[100.2,0.2], [100.8, 0.2], [100.8, 1.8], [100.2, 1.8], [100.2, 0.2]]
  ] }
);
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy