This document is archived and information here might be outdated. Recommended version. |
Exports the spatial reference to a buffer.
[Visual Basic .NET]
Public Sub ExportSpatialReferenceToPRJ ( _
ByRef str As String, _
ByRef cBytesWrote As Integer _
)
[C#]
public void ExportSpatialReferenceToPRJ (
ref string str,
ref int cBytesWrote
);
[C++]
HRESULT ExportSpatialReferenceToPRJ(
System.String* str,
System.Int32* cBytesWrote
);
[C++] Parameters str [out]
str is a parameter of type BSTR* cBytesWrote [out]
cBytesWrote is a parameter of type long*
Converts a spatial reference object into a PRJ file. A PRJ file stores the coordinate system information for a coverage, GRID, or TIN.
A sample representation (reformatted for display) is below.
Projection UTM
Zone 10
Datum NAD83
Zunits NO
Units METERS
Spheroid GRS1980
Xshift 0.0000000000
Yshift 0.0000000000
Parameters
If the spatial reference cannot be represented with the workstation PRJ format, E_SPATIALREFERENCE_CANTDEFINESR is returned.
E_SPATIALREFERENCE_CANTDEFINESR