ArcObjects Library Reference (Geometry)  

IPRJSpatialReference.ImportSpatialReferenceFromPRJ Method

Defines the spatial reference from the specified ESRISpatialReference buffer.

[Visual Basic .NET]
Public Sub ImportSpatialReferenceFromPRJ ( _
    ByVal str As String, _
    ByRef cBytesRead As Integer _
)
[C#]
public void ImportSpatialReferenceFromPRJ (
    string str,
    ref int cBytesRead
);
[C++]
HRESULT ImportSpatialReferenceFromPRJ(
  BSTR str,
  long* cBytesRead
);
[C++]

Parameters

str   str is a parameter of type BSTR cBytesRead [out]   cBytesRead is a parameter of type long

Product Availability

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

Description

Converts a PRJ file into a spatial reference object. A PRJ file stores the coordinate system information for a coverage, GRID, or TIN.

A sample represetation (reformatted for display) is below.

Projection    UTM   
Zone          10  
Datum         NAD83     
Zunits        NO     
Units         METERS     
Spheroid      GRS1980     
Xshift        0.0000000000     
Yshift        0.0000000000  
Parameters    

Remarks

Not implemented for the GeographicCoordinateSystem or ProjectedCoordinateSystem coclasses. Use the ISpatialReferenceFactory:CreateESRISpatialReferenceFromPRJ method instead.

See Also

IPRJSpatialReference Interface