Gets the type of geometry that this Table is capable of storing. This property only applies to geodatabase feature classes and shapefiles which are capable of storing vector data.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public GeometryType GeometryType { get; }
Visual Basic (Declaration)
Public ReadOnly Property GeometryType As GeometryType

Field Value

One of the GeometryType values which defines the type of spatial data that the Table can store. IsSpatial must be true to use this property.

Examples

The code below opens a file geodatabase feature class, performs a check to ensure that it is capable of storing vector data then prints out a number of properties including the type of geometry that can be stored in this Table.
CopyC#
//Open a file geodatabase feature class called mountains
Table mountainsTable = Table.OpenFileGeodatabaseTable(@"C:\Data\Scotland.gdb", "mountains");

//Check that the Table can contain vector data
if (mountainsTable.IsSpatial == true)  //will be true
{
  System.Diagnostics.Debug.Print(mountainsTable.GeometryType.ToString()); //Prints "Point"
  System.Diagnostics.Debug.Print(mountainsTable.CoordinateSystem.Name);   //Prints "British_National_Grid"

  //Print the coordinates that define the bounding box
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMin.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.YMin.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString());
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString());
}
CopyVB.NET
'Open a file geodatabase feature class called mountains
Dim mountainsTable As Table = Table.OpenFileGeodatabaseTable("C:\Data\Scotland.gdb", "mountains")

'Check that the Table can contain vector data
If mountainsTable.IsSpatial = True Then  'will be true


  System.Diagnostics.Debug.Print(mountainsTable.GeometryType.ToString()) 'Prints "Point"
  System.Diagnostics.Debug.Print(mountainsTable.CoordinateSystem.Name)   'Prints "British_National_Grid"


  'Print the coordinates that define the bounding box
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMin.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.YMin.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString())
  System.Diagnostics.Debug.Print(mountainsTable.Extent.XMax.ToString())
End If

See Also