This document is archived and information here might be outdated.  Recommended version.


IESRISpatialReference.ExportToESRISpatialReference Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IESRISpatialReference Interface > IESRISpatialReference.ExportToESRISpatialReference Method
ArcGIS Developer Help

IESRISpatialReference.ExportToESRISpatialReference Method

Exports this spatial reference component to a buffer.

[Visual Basic .NET]
Public Sub ExportToESRISpatialReference ( _
    ByVal str As IntPtr, _
    ByRef cBytesWrote As Integer _
)
[C#]
public void ExportToESRISpatialReference (
    IntPtr str,
    ref int cBytesWrote
);
[C++]
HRESULT ExportToESRISpatialReference(
  BSTR str,
  System.Int32* 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