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


ISpatialReferenceFactory3.ExportESRISpatialReferenceInfoToPRJFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceFactory3 Interface > ISpatialReferenceFactory3.ExportESRISpatialReferenceInfoToPRJFile Method
ArcGIS Developer Help

ISpatialReferenceFactory3.ExportESRISpatialReferenceInfoToPRJFile Method

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*

Product Availability

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

Description

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]]

See Also

ISpatialReferenceFactory3 Interface