Home > All Other Interfaces > IRings > AddRing

AddRing

Adds a ring to the geometry.

 

JavaScript

 

AddRing(

      var = 0)

 

C#

 

ILinearRing AddRing(

      object var = 0)

 

C++

 

HRESULT AddRing(

      VARIANT var,

      ILinearRing** pVal)

Parameters

var

Any of the following can be passed:

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

·         Array of IPosition6 objects

Return Value

pVal

An ILinearRing representing the newly created ring.

Exceptions

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