This document is archived and information here might be outdated. Recommended version. |
Exports a spatial reference to a PRJ file.
[Visual Basic .NET] Public Sub ExportESRISpatialReferenceInfoToPRJFile ( _ ByVal prjFile As String, _ ByVal SpatialReference As ISpatialReferenceInfo _ )
[C#] public void ExportESRISpatialReferenceInfoToPRJFile ( string prjFile, ISpatialReferenceInfo SpatialReference );
[C++]
HRESULT ExportESRISpatialReferenceInfoToPRJFile(
BSTR prjFile,
ISpatialReferenceInfo* SpatialReference
);
[C++] Parameters prjFile
prjFile is a parameter of type BSTR SpatialReference
SpatialReference is a parameter of type ISpatialReferenceInfo*
Creates a well-known text version of a spatial reference and writes the information to a file. Below is an example of a WKT version that contains both geographic and vertical coordinate systems. WKT is always a single line, but the sample is broken into several lines to make it easier to read.
GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",
SPHEROID["Clarke_1866",6378206.4,294.9786982]],
PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],
VERTCS["NAVD_1988",VDATUM["North_American_Vertical_Datum_1988"],
PARAMETER["Vertical_Shift",0.0],PARAMETER["Direction",1.0],
UNIT["Meter",1.0]]