Returns the coordinate system defined for the Table. 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.900 (2.0.0.900)
Syntax
C# |
---|
public CoordinateSystem CoordinateSystem { get; } |
Visual Basic (Declaration) |
---|
Public ReadOnly Property CoordinateSystem As CoordinateSystem |
Field Value
The CoordinateSystem which defines the framework for geographical data coordinates stored in the Table. 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 name of
the coordinate system assigned to this Table.
CopyC#
CopyVB.NET

//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()); }

'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
Relate Topics:
AliasName Property
Columns Property
Extent Property
GeometryType Property
HasRelationships Property
Indexes Property
IsSpatial Property
IsSubtyped Property
Name Property
Parent Property
RootDataContainer Property
ShortName Property
AliasName Property
Columns Property
Extent Property
GeometryType Property
HasRelationships Property
Indexes Property
IsSpatial Property
IsSubtyped Property
Name Property
Parent Property
RootDataContainer Property
ShortName Property
Created by Atop CHM to web converter,© 2009 all right reserved.