Home > All Other Interfaces > IGeometryCreator > CreateMultiPolygonGeometry

CreateMultiPolygonGeometry

Creates a geometry made up of multiple polygons.

 

JavaScript

 

CreateMultiPolygonGeometry(

      polygonList = 0)

 

C#

 

IMultiPolygon CreateMultiPolygonGeometry(

      object polygonList = 0)

 

C++

 

HRESULT CreateMultiPolygonGeometry(

      VARIANT polygonList,

      IMultiPolygon** pVal)

 

Parameters

polygonList

An array of the following geometries:

·         ILinearRing

·         IPolygon

·         The LinearRing WKB

·         TheLinearRing WKT

·         A Safe Array of Vertices– An array that contains triplets of doubles. Each triplet is composed of an x-coordinate, a y-coordinate, and a height. The height is represented in meters and the  x- and y-coordinates are represented in the coordinate system’s units. You can use the ITerrain6 interface to retrieve information about the coordinate system.

Return Value

pVal

An IMultiPolygon representing the newly created geometry.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.