com.esri.arcgis.geometry
Interface IPRJSpatialReferenceGEN

All Superinterfaces:
Serializable
All Known Implementing Classes:
GeographicCoordinateSystem, ProjectedCoordinateSystem

public interface IPRJSpatialReferenceGEN
extends Serializable

Provides access to members that control the import/export operations components of a spatial reference system. IPRJSpatialReference has been deprecated and IPRJSpatialReferenceGEN should be used.

Product Availability

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


Method Summary
 void exportSpatialReferenceToPRJ(String[] str, int[] cBytesWrote)
          Exports the spatial reference to a buffer.
 int getPRJSpatialReferenceSize()
          The number of bytes required to hold the persistant representation of the spatial reference.
 void importSpatialReferenceFromPRJ(String str, int[] cBytesRead)
          Defines the spatial reference from the specified ESRISpatialReference buffer.
 

Method Detail

getPRJSpatialReferenceSize

int getPRJSpatialReferenceSize()
                               throws IOException,
                                      AutomationException
The number of bytes required to hold the persistant representation of the spatial reference.

Product Availability

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

Returns:
The cBytes
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

importSpatialReferenceFromPRJ

void importSpatialReferenceFromPRJ(String str,
                                   int[] cBytesRead)
                                   throws IOException,
                                          AutomationException
Defines the spatial reference from the specified ESRISpatialReference buffer.

Product Availability

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

Parameters:
str - The str (in)
cBytesRead - The cBytesRead (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportSpatialReferenceToPRJ

void exportSpatialReferenceToPRJ(String[] str,
                                 int[] cBytesWrote)
                                 throws IOException,
                                        AutomationException
Exports the spatial reference to a buffer.

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    

If the spatial reference cannot be represented with the workstation PRJ format, E_SPATIALREFERENCE_CANTDEFINESR is returned.

Product Availability

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

Parameters:
str - The str (out: use single element array)
cBytesWrote - The cBytesWrote (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.