Home > All Other Interfaces > IGeometry > GeometryType

GeometryType

Returns an enum that determines the geometry type. The following are the possible values:

§   SG_POINT = 0,

§   SG_LINESTRING = 1,

§   SG_LINEARRING = 2,

§   SG_POLYGON = 3,

§   SG_MULTIPOINT = 4,

§   SG_MULTILINESTRING = 5,

§   SG_MULTIPOLYGON = 6

 

JavaScript

 

GeometryType

 

C#

 

SGGeometryTypeId GeometryType { get; }

 

C++

 

HRESULT GeometryType(

      [out, retval] SGGeometryTypeId* geometryTypeId)

Return Value

geometryTypeId

An enum that returns one of the following values:

·         SG_POINT = 0,

·         SG_LINESTRING = 1,

·         SG_LINEARRING = 2,

·         SG_POLYGON = 3,

·         SG_MULTIPOINT = 4,

·         SG_MULTILINESTRING = 5,

·         SG_MULTIPOLYGON = 6