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 |
|
|
Gets the polygon area. |
|
|
An IPoint representing the center of the geometry. |
|
|
Gets the dimension of the geometry object. (Inherited from IGeometry) |
|
|
Gets the geometry’s bounding box. (Inherited from IGeometry) |
|
|
An ILinearRing representing the polygon’s exterior ring. |
|
|
Gets the geometry type ID. (Inherited from IGeometry) |
|
|
Gets a string representation of the geometry type. (Inherited from IGeometry) |
|
|
An ILinearRing representing an interior ring. |
|
|
Gets the number of interior rings. |
|
|
PointOnSurface |
An IPoint representing a point on the surface of the polygon. |
|
An IRings representing all of the polygon’s interior and exterior rings. |
|
|
An ISpatialOperator representing the selected geometry’s interaction with another geometry object. (Inherited from IGeometry) |
|
|
An ISpatialRelation that tests the geometry’s spatial relationship with other geometries. (Inherited from IGeometry) |
|
|
An IWks representing methods for transferring coordinate system information (WKT and WKB). (Inherited from IGeometry) |
|
|
Methods |
|
|
Creates an exact copy of the selected geometry. (Inherited from IGeometry) |
|
|
Terminates the edit item mode. (Inherited from IGeometry) |
|
|
Returns whether or not the set of points in the selected geometry is empty. (Inherited from IGeometry) |
|
|
Returns whether or not the geometry is simple. (Inherited from IGeometry) |
|
|
Removes all points from this geometry. (Inherited from IGeometry) |
|
|
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) |