ArcObjects Library Reference  (Geometry)    

ISpatialReferenceFactory.CreateGeographicCoordinateSystem Method

Creates a predefined geographic coordinate system.

[Visual Basic 6.0]
Function CreateGeographicCoordinateSystem(
    ByVal gcsType As Long _
) As IGeographicCoordinateSystem
[Visual Basic .NET]
Public Function CreateGeographicCoordinateSystem ( _
    ByVal gcsType As Integer _
) As IGeographicCoordinateSystem
[C#]
public IGeographicCoordinateSystem CreateGeographicCoordinateSystem (
    int gcsType
);
[Java]
public IGeographicCoordinateSystem createGeographicCoordinateSystem (
    int gcsType
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CreateGeographicCoordinateSystem(
  long gcsType,
  IGeographicCoordinateSystem** gcs
);
[C++]

Parameters

gcsType

  gcsType is a parameter of type long

gcs [out, retval]

  gcs is a parameter of type IGeographicCoordinateSystem

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Use an element from the esriSRGeoCSType, esriSRGeoCS2Type, or esriSRGeoCS3Type enumerations as the gcsType to create a particular predefined geographic coordinate system.

Remarks

The example code shows how to create an object that represents the WGS 1984 geographic coordinate system.

See Also

ISpatialReferenceFactory Interface | esriSRGeoCSType Constants | esriSRGeoCS2Type Constants | esriSRGeoCS3Type Constants

Example

CreateGeographicCoordinateSystem_Example

 


Feedback Send feedback on this page