MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual INT32 MgGeometricEntity::GetDimension ( ) [pure virtual]

Gets the geometric dimension of this entity, indicating whether the entity is defined by points, curves, or regions, that is, is zero, one, or two dimensional.

.NET Syntax
virtual int GetDimension();
Java Syntax
virtual int GetDimension();
PHP Syntax
virtual int GetDimension();
Returns:
Returns one of the values defined in MgGeometricDimension.

Implemented in MgPolygon, MgCurveString, MgCurvePolygon, MgMultiPolygon, MgLineString, MgMultiCurveString, MgMultiGeometry, MgMultiLineString, MgMultiCurvePolygon, MgMultiPoint, MgPoint, MgArcSegment, MgLinearSegment, MgCurveRing, and MgLinearRing.