IPRJSpatialReferenceGEN Interface

Provides access to members that control the import/export operations components of a spatial reference system.

Members

Name Description
Method ExportSpatialReferenceToPRJ Exports the spatial reference to a buffer.
Method ImportSpatialReferenceFromPRJ Defines the spatial reference from the specified ESRISpatialReference buffer.
Read-only property PRJSpatialReferenceSize The number of bytes required to hold the persistant representation of the spatial reference.

IPRJSpatialReferenceGEN.ExportSpatialReferenceToPRJ Method

Exports the spatial reference to a buffer.

Public Sub ExportSpatialReferenceToPRJ ( _
    ByRef str As String, _
    ByRef cBytesWrote As Integer _
)
public void ExportSpatialReferenceToPRJ (
    ref string str,
    ref int cBytesWrote
);

Description

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

A sample representation (reformatted for display) is below.

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

Errors Returned

E_SPATIALREFERENCE_CANTDEFINESR

IPRJSpatialReferenceGEN.ImportSpatialReferenceFromPRJ Method

Defines the spatial reference from the specified ESRISpatialReference buffer.

Public Sub ImportSpatialReferenceFromPRJ ( _
    ByVal str As String, _
    ByRef cBytesRead As Integer _
)
public void ImportSpatialReferenceFromPRJ (
    string str,
    ref int cBytesRead
);

IPRJSpatialReferenceGEN.PRJSpatialReferenceSize Property

The number of bytes required to hold the persistant representation of the spatial reference.

Public ReadOnly Property PRJSpatialReferenceSize As Integer
public int PRJSpatialReferenceSize {get;}

Classes that implement IPRJSpatialReferenceGEN

Classes Description
GeographicCoordinateSystem Creates a geographic coordinate system.
ProjectedCoordinateSystem Creates a projected coordinate system.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.