IGeographicCoordinateSystem Interface

Provides access to members that control access to all properties of geographic coordinate systems.

Description

A geographic coordinate system is defined (at minimum) by a name, an angular unit of measure, a horizontal datum, and a prime meridian.

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.
Method Changed Notify this object that some of its parts have changed (parameter values, z unit, etc.).
Read-only property CoordinateUnit The angular unit of this geographic coordinate system.
Read-only property Datum The horizontal datum of this geographic coordinate system.
Read-only property FactoryCode The factory code (WKID) of the spatial reference.
Method GetDomain The XY domain extent.
Method GetFalseOriginAndUnits Get the false origin and units.
Method GetMDomain The measure domain extent.
Method GetMFalseOriginAndUnits Get the measure false origin and units.
Method GetZDomain The Z domain extent.
Method GetZFalseOriginAndUnits Get the Z false origin and units.
Method HasMPrecision Returns true when m-value precision information has been defined.
Method HasXYPrecision Returns true when (x,y) precision information has been defined.
Method HasZPrecision Returns true when z-value precision information has been defined.
Method IsPrecisionEqual Returns TRUE when the precision information for the two spatial references is the same.
Read-only property Name The name of this spatial reference component.
Read-only property PrecisionExImpl An opaque reference to the precision information (including z/m awareness) implementation for this spatial reference.
Read-only property PrecisionImpl An opaque reference to the precision information implementation for this spatial reference.
Read-only property PrimeMeridian The prime meridian of this geographic coordinate system.
Read-only property Remarks The comment string of this spatial reference component.
Method SetDomain The XY domain extent.
Method SetFalseOriginAndUnits Set the false origin and units.
Method SetMDomain The measure domain extent.
Method SetMFalseOriginAndUnits Set the measure false origin and units.
Method SetZDomain The Z domain extent.
Method SetZFalseOriginAndUnits Set the Z false origin and units.
Read-only property SpatialReferenceImpl SpatialReferenceImpl.
Read-only property Usage The usage notes of this geographic coordinate system.
Read/write property ZCoordinateUnit The unit for the Z coordinate.

IGeographicCoordinateSystem.CoordinateUnit Property

The angular unit of this geographic coordinate system.

Public ReadOnly Property CoordinateUnit As IAngularUnit
public IAngularUnit CoordinateUnit {get;}
private void PrintCoordinateUnit()

    {

        // use activator class with SpatialReferenceEnvironment singleton

        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");

        System.Object obj = Activator.CreateInstance(factoryType);

        ISpatialReferenceFactory spatialReferenceFactory = obj as ISpatialReferenceFactory;

        IGeographicCoordinateSystem geographicCoordinateSystem = spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);

        IAngularUnit coordinateUnit = geographicCoordinateSystem.CoordinateUnit;

        System.Windows.Forms.MessageBox.Show(coordinateUnit.Name);

    }

IGeographicCoordinateSystem.Datum Property

The horizontal datum of this geographic coordinate system.

Public ReadOnly Property Datum As IDatum
public IDatum Datum {get;}

Description

Returns the vertical or horizontal datum of the vertical coordinate system as IHVDatum. QI with IVerticalDatum or IDatum. A vertical datum means that the VCS is gravity-related. A (horizontal) datum means that the VCS is ellipsoid/spheroid-based.

IGeographicCoordinateSystem.PrimeMeridian Property

The prime meridian of this geographic coordinate system.

Public ReadOnly Property PrimeMeridian As IPrimeMeridian
public IPrimeMeridian PrimeMeridian {get;}
private void PrintPrimeMeridianFromGCS()

    {

        // use activator class with SpatialReferenceEnvironment singleton

        Type factoryType = Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");

        System.Object obj = Activator.CreateInstance(factoryType);

        ISpatialReferenceFactory spatialReferenceFactory = obj as ISpatialReferenceFactory;

        IGeographicCoordinateSystem geographicCoordinateSystem = spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);

        IPrimeMeridian primeMeridian = geographicCoordinateSystem.PrimeMeridian;

        System.Windows.Forms.MessageBox.Show(primeMeridian.Name);

    }

IGeographicCoordinateSystem.Usage Property

The usage notes of this geographic coordinate system.

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

Description

private void GetUsage(IGeographicCoordinateSystem geographicCoordinateSystem){String usage = geographicCoordinateSystem.Usage;System.Windows.Forms.MessageBox.Show(usage);}

Inherited Interfaces

Interfaces Description
ISpatialReference Provides access to members that control a SpatialReference.
ISpatialReferenceInfo Provides access to members that control the properties common to all components of a spatial reference system.

Classes that implement IGeographicCoordinateSystem

Classes Description
GeographicCoordinateSystem Creates a geographic coordinate system.

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