Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public enum CoordinateSystemType |
Visual Basic (Declaration) |
---|
Public Enumeration CoordinateSystemType |
Members
Member name | Description | |
---|---|---|
Geographic |
Indicates a geographic coordinate system, a system of referencing places on the earth
using angular units such as decimal degrees to specify coordinates.
| |
Projected |
Indicates a projected coordinate system, a system of referencing places based on
their linear distance from an origin along two axes.
| |
Unknown |
Indicates that the type of coordinate system cannot be identified.
|
Remarks
This enumeration can be used to identify which type of coordinate system model is used by a specific instance of the CoordinateSystem class, by checking the Type property. There are two types of coordinate system used within ArcGIS Explorer to reference locations to a position on earth, projected and geographic.
You may see this number referred to in some ArcGIS documentation as a factory code, projection engine code, or a Well Known Identifier (WKID). For example, ArcGIS Server web service APIs define WKID parameters which allow you to specify a particular unit; developing for ArcGIS using ArcObjects, these numbers are defined in enumeration sets that begin with 'esriSR', for example the enumerations esriSRUnitType and esriSRUnit2Type define identifiers for types of unit of measurement.
These identifier numbers are based on an industry standard defined by the European Petroleum Survey Group (EPSG), and very occasionally, the code value for which an enumeration stands may change; for this reason it is recommended that you use the enumeration member rather than the numeric value in code. Any changes will be noted in the change reports for this API. You can find out more information about the units and coordinate systems defined by the EPSG at their website, http://www.epsg.org.
See the Coordinate System Concepts topic for more information about coordinate system types.
Examples
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");
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")