Loading TOC...

geojson.complexPolygon

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

Summary

Create a cts:complex-polygon value from a GeoJSON "Polygon" type geometry object. The polygon returned represents the combination of the exterior polygon and the interior polygons.

Parameters
$complex-polygon A Polygon node representing the complex polygon.

Example

var geojson = require('/MarkLogic/geospatial/geojson.xqy');

geojson.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