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,
ISpatialReferenceInfo** SpatialReference
);
[C++]Parameters
prj prj is a parameter of type BSTR SpatialReference [out, retval]SpatialReference is a parameter of type ISpatialReferenceInfo
Product Availability
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.