Loading TOC...

geo.complexPolygon

geo.complexPolygon(
   $complex-polygon as Node
) as cts.complexPolygon

Summary

Create a cts.complexPolygon value from a node representing a complex polygon in one of the supported markup vocabularies, such as KML, GML, or GeoJSON. The complex polygon represents the combination of the exterior polygon and interior polygons in their representation.

Parameters
$complex-polygon A node representing a complex 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.complexPolygon(
  { 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]]
  ] }
);
  

Comments

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