Dimension

Gets the dimension of the geometry object.

§   Points and multipoints = 0 (have neither length nor area)

§   Linestrings and multilinestrings = 1 (have length)

§   Polygons and multipolygons = 2 (have length and area)

 

JavaScript

 

Dimension

 

C#

 

int Dimension { get;}

 

C++

 

HRESULT Dimension([out, retval] long* Dimension)