ISpatialReferenceInfo Interface

Provides access to members that control the properties common to all components of a spatial reference system.

Members

Name Description
Read-only property Abbreviation The abbreviated name of this spatial reference component.
Read-only property Alias The alias of this spatial reference component.
Read-only property FactoryCode The factory code (WKID) of the spatial reference.
Read-only property Name The name of this spatial reference component.
Read-only property Remarks The comment string of this spatial reference component.

ISpatialReferenceInfo.Abbreviation Property

The abbreviated name of this spatial reference component.

Public ReadOnly Property Abbreviation As String
public string Abbreviation {get;}

ISpatialReferenceInfo.Alias Property

The alias of this spatial reference component.

Public ReadOnly Property Alias As String
public string Alias {get;}

ISpatialReferenceInfo.FactoryCode Property

The factory code (WKID) of the spatial reference.

Public ReadOnly Property FactoryCode As Integer
public int FactoryCode {get;}

Remarks

The factory code is an integer identifier that is unique by projection engine object type, such as a projected coordinate system. You can use a factory code in the ISpatialReferenceFactory::CreateProjectedCoordinateSystem method for example. If you create a custom projected coordinate system, the factory code is zero.

ISpatialReferenceInfo.Name Property

The name of this spatial reference component.

Public ReadOnly Property Name As String
public string Name {get;}

ISpatialReferenceInfo.Remarks Property

The comment string of this spatial reference component.

Public ReadOnly Property Remarks As String
public string Remarks {get;}

Classes that implement ISpatialReferenceInfo

Classes Description
AngularUnit Creates a angular unit of measure.
Datum Creates a datum.
GeographicCoordinateSystem Creates a geographic coordinate system.
HVDatumTransformation Horizonatal 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);

    }

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close