Gets the type of the CoordinateSystem, projected or geographic.

Namespace:  ESRI.ArcGISExplorer.Geometry

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

Syntax

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

Field Value

The type of the coordinate system.

Remarks

There are two main types of coordinate system:

  1. Geographic coordinate systems specify coordinates using angular units; for example the World Geodetic System (WGS) 1984 specifies coordinates in degrees of latitude and longitude.
  2. Projected coordinate systems specify coordinates using linear units; for example the NAD 1983 state plane systems used throughout the USA specify coordinates in meters.

For more information about the types of coordinate system, see the coordinate system concepts topic.

Examples

The code below reports on the coordinate system used by the 2D display. Projected coordinate systems are based upon an underlying geographic system - this is also reported if the system used in 2D is a projected one, by using the Type and BaseGeographicCoordinateSystem properties. The code assumes you have imported the Geometry namespace.
CopyC#
ESRI.ArcGISExplorer.Mapping.MapDisplay disp = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;
CoordinateSystem cs = disp.CoordinateSystem2D;

StringBuilder sb = new StringBuilder("The 2D Coordinate System is:" + cs.Type);
sb.AppendLine("Name: " + cs.Name);
// Projected coordinate systems are based on a separate geographic coordinate system.
if (disp.CoordinateSystem2D.Type == CoordinateSystemType.Projected)
{
    sb.AppendLine("Based on the geographic system:" + cs.BaseGeographicCoordinateSystem.Name);
}
MessageBox.Show(sb.ToString(), "2D Coordinate System Information");
CopyVB.NET
Dim disp As ESRI.ArcGISExplorer.Mapping.MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay
Dim cs As CoordinateSystem = disp.CoordinateSystem2D

Dim sb As StringBuilder = New StringBuilder("The 2D Coordinate System is:" & cs.Type)
sb.AppendLine("Name: " & cs.Name)
' Projected coordinate systems are based on a separate geographic coordinate system.
If disp.CoordinateSystem2D.Type = CoordinateSystemType.Projected Then
    sb.AppendLine("Based on the geographic system:" & cs.BaseGeographicCoordinateSystem.Name)
End If

MessageBox.Show(sb.ToString(), "2D Coordinate System Information")

See Also