This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control the properties common to all components of a spatial reference system.
Name | Description | |
---|---|---|
Abbreviation | The abbreviated name of this spatial reference component. | |
Alias | The alias of this spatial reference component. | |
FactoryCode | The factory code (WKID) of the spatial reference. | |
Name | The name of this spatial reference component. | |
Remarks | The comment string of this spatial reference component. |
Classes | Description |
---|---|
AngularUnit | Creates a angular unit of measure. |
Datum | Creates a datum. |
GeographicCoordinateSystem | Creates a geographic coordinate system. |
HVDatumTransformation | Horizontal and Vertical datum transformation. |
LinearUnit | Creates a linear unit of measure. |
Parameter | Creates a parameter. |
PrimeMeridian | Creates a prime meridian. |
ProjectedCoordinateSystem | Creates a projected coordinate system. |
Spheroid | Creates a spheroid. |
UnknownCoordinateSystem | Creates an unknown coordinate system. |
VerticalCoordinateSystem | Creates a vertical coordinate system. |
VerticalDatum | Creates a vertical datum. |
private void PrintSpatialReferenceInfo()
{
// use activator class with SpatialReferenceEnvironment singleton
Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
System.Object obj = Activator.CreateInstance(factoryType);
ISpatialReferenceFactory3 spatialReferenceFactory = obj as ISpatialReferenceFactory3;
ISpatialReference spatialReference = spatialReferenceFactory.CreateSpatialReference((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
ISpatialReferenceInfo spatialReferenceInfo = spatialReference as ISpatialReferenceInfo;
System.Windows.Forms.MessageBox.Show(spatialReferenceInfo.Abbreviation);
System.Windows.Forms.MessageBox.Show(spatialReferenceInfo.Alias);
System.Windows.Forms.MessageBox.Show(spatialReferenceInfo.FactoryCode.ToString());
System.Windows.Forms.MessageBox.Show(spatialReferenceInfo.Name);
System.Windows.Forms.MessageBox.Show(spatialReferenceInfo.Remarks);
}