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


ISpatialReferenceFactory3.CreateESRISpatialReferenceInfoFromPRJFile Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

ISpatialReferenceFactory3.CreateESRISpatialReferenceInfoFromPRJFile Method

Creates a spatial reference from a PRJ file.

[Visual Basic .NET]
Public Function CreateESRISpatialReferenceInfoFromPRJFile ( _
    ByVal prjFile As String _
) As ISpatialReferenceInfo
[C#]
public ISpatialReferenceInfo CreateESRISpatialReferenceInfoFromPRJFile (
    string prjFile
);
[C++]
HRESULT CreateESRISpatialReferenceInfoFromPRJFile(
  BSTR prjFile,
  ISpatialReferenceInfo** SpatialReference
);
[C++]

Parameters prjFile prjFile is a parameter of type BSTR SpatialReference [out, retval]
SpatialReference is a parameter of type ISpatialReferenceInfo

Product Availability

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

Description

Creates a spatial reference from a file that contains the well-known text version. 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