Gets a value indicating whether the Table is capable of storing vector data.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public bool IsSpatial { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property IsSpatial As Boolean |
Field Value
trueTruetruetrue (True in Visual Basic) if the Table represents a geodatabase feature class or a shapefile; otherwise, falseFalsefalsefalse (False in Visual Basic).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.
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