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