Provides access to members that control the properties common to all components of a spatial reference system.
Product Availability
Members
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. |
CoClasses that implement ISpatialReferenceInfo
CoClasses and Classes | Description |
---|---|
AngularUnit | Creates a angular unit of measure. |
Datum | Creates a datum. |
GeographicCoordinateSystem | Creates a geographic coordinate system. |
LinearUnit | Creates a linear unit of measure. |
Parameter | Creates a parameter. |
PrimeMeridian | Creates a prime meridian. |
ProjectedCoordinateSystem | Creates a projected coordinate system. |
Projection | Creates a map projection. |
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);
}