This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceFactory3 Interface > ISpatialReferenceFactory3.CreateESRISpatialReferenceInfoFromPRJFile Method (ArcObjects .NET 10.4 SDK) |
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
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]]