IPolygon

A polygon is a two-dimensional surface stored as a sequence of points that has a bounding ring and 0 or more interior rings. In addition to the other properties inherited from IGeometry, polygons have area.

 

Properties

 

Area

Gets the polygon area.

Centroid

An IPoint representing the center of the geometry.

Dimension

Gets the dimension of the geometry object. (Inherited from IGeometry)

Envelope

Gets the geometry’s bounding box. (Inherited from IGeometry)

ExteriorRing

An ILinearRing representing the polygon’s exterior ring.

GeometryType

Gets the geometry type ID. (Inherited from IGeometry)

GeometryTypeStr

Gets a string representation of the geometry type. (Inherited from IGeometry)

InteriorRing

An ILinearRing representing an interior ring.

NumInteriorRings

Gets the number of interior rings.

PointOnSurface

An IPoint representing a point on the surface of the polygon.

Rings

An IRings representing all of the polygon’s interior and exterior rings.

SpatialOperator

An ISpatialOperator representing the selected geometry’s interaction with another geometry object. (Inherited from IGeometry)

SpatialRelation

An ISpatialRelation that tests the geometry’s spatial relationship with other geometries. (Inherited from IGeometry)

Wks

An IWks representing methods for transferring coordinate system information (WKT and WKB). (Inherited from IGeometry)

 

Methods

 

Clone

Creates an exact copy of the selected geometry. (Inherited from IGeometry)

EndEdit

Terminates the edit item mode. (Inherited from IGeometry)

IsEmpty

Returns whether or not the set of points in the selected geometry is empty. (Inherited from IGeometry)

IsSimple

Returns whether or not the geometry is simple. (Inherited from IGeometry)

SetEmpty

Removes all points from this geometry. (Inherited from IGeometry)

StartEdit

Starts the edit item mode. (Inherited from IGeometry)

Area

Gets the polygon’s area.

 

JavaScript

 

Area

 

C#

 

double Area { get; }

 

C++

 

HRESULT Area([out, retval] double* dArea)

 

InteriorRing

Gets the ILinearRing in the specified zero-based index, representing a specific interior ring. This property is exposed in C# and JavaScript in the following ways:

§   In C#, this property is exposed as InteriorRing, e.g.,

IPolygon myPoly;

ILinearRing thisLinearRing = myPoly.InteriorRing[0];

Note:    In older versions of C#, this property is exposed as get_InteriorRing, e.g.,

IPolygon myPoly;

ILinearRing thisLinearRing = myPoly.get_InteriorRing[0];

§   In JavaScript use:

var myPoly;

var thisLinearRing = myPoly.InteriorRing(0);

 

JavaScript

 

InteriorRing

 

C#

 

ILinearRing InteriorRing { get; }

 

C++

 

HRESULT InteriorRing ([in] long Index,

       [out, retval] ILinearRing** pVal)

NumInteriorRings

Gets the number of interior rings.

 

JavaScript

 

NumInteriorRings

 

C#

 

int NumInteriorRings { get; }

 

C++

 

HRESULT NumInteriorRings([out, retval] long* pVal)