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


ISpatialReferenceFactory3.CreateESRISpatialReferenceInfoFromPRJ 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.CreateESRISpatialReferenceInfoFromPRJ Method
ArcGIS Developer Help

ISpatialReferenceFactory3.CreateESRISpatialReferenceInfoFromPRJ Method

Creates a spatial reference from a PRJ string.

[Visual Basic .NET]
Public Function CreateESRISpatialReferenceInfoFromPRJ ( _
    ByVal prj As String _
) As ISpatialReferenceInfo
[C#]
public ISpatialReferenceInfo CreateESRISpatialReferenceInfoFromPRJ (
    string prj
);
[C++]
HRESULT CreateESRISpatialReferenceInfoFromPRJ(
  BSTR prj
);
[C++]
Parameters
prj 

prj is a parameter of type BSTR

Product Availability

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

Description

CreateESRISpatialReferenceInfoFromPRJ creates a spatial reference from an ArcGIS for Desktop Advanced workstation version of a coordinate system definition. This type of definition is used for coverages, TINs, and GRIDs. If you pass in a Projection Engine-style string instead, "the input is not a workstation prj file" error message is returned. The Projection Engine format is used by shapefiles, geodatabases, and raster formats other than GRIDs.

An ArcGIS for Desktop Advanced workstation file might look like:

Projection GEOGRAPHIC
Units DEGREES
Datum WGS84
Spheroid WGS84
Parameters

Use CreateESRISpatialReferenceInfoFromPRJFile if you want to create a spatial reference from a Projection Engine-style string.

See Also

ISpatialReferenceFactory3 Interface