Home > All Other Interfaces > IGeometryCreator > CreatePolygonGeometry

CreatePolygonGeometry

Creates a polygon.

 

JavaScript

 

CreatePolygonGeometry(

      ExteriorRing,

      interiorRingList = 0)

 

C#

 

IPolygon CreatePolygonGeometry(

      object ExteriorRing,

      object interiorRingList = 0)

 

C++

 

HRESULT CreatePolygonGeometry(

      VARIANT ExteriorRing,

      VARIANT interiorRingList,

      IPolygon** pVal)

Parameters

ExteriorRing

Any of the following geometries can be passed as the ExteriorRing parameter:

·         ILinearRing

·         LinearRing 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.

interiorRingList

An array of rings of the following types:

·         ILinearRing

·         LinearRing WKB

·         LinearRing 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 IPolygon representing the created polygon

Exceptions

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