ArcObjects Library Reference (Geometry)  

IESRISpatialReference.ExportToESRISpatialReference Method

Exports this spatial reference component to a buffer.

[Visual Basic .NET]
Public Sub ExportToESRISpatialReference ( _
    ByVal str As String, _
    ByRef cBytesWrote As Integer _
)
[C#]
public void ExportToESRISpatialReference (
    string str,
    ref int cBytesWrote
);
[C++]
HRESULT ExportToESRISpatialReference(
  BSTR str,
  long* cBytesWrote
);
[C++]

Parameters

str [in, out]   str is a parameter of type BSTR cBytesWrote [out]   cBytesWrote is a parameter of type long

Product Availability

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

Description

Converts a spatial reference object into the string representation of a coordinate system. A sample string representation is below (reformatted for display).

PROJCS["Porto_Santo_1936_UTM_Zone_28N",
  GEOGCS["GCS_Porto_Santo_1936",
    DATUM["D_Porto_Santo_1936",
    SPHEROID["International_1924",6378388,297]],
    PRIMEM["Greenwich",0],
    UNIT["Degree",0.0174532925199432955]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["False_Easting",500000],
  PARAMETER["False_Northing",0],
  PARAMETER["Central_Meridian",-15],
  PARAMETER["Scale_Factor",0.9996],
  PARAMETER["Latitude_Of_Origin",0],
  UNIT["Meter",1]]

See Also

IESRISpatialReference Interface