com.esri.arcgis.geometry
Interface IESRIShape2

All Superinterfaces:
IESRIShape, Serializable
All Known Implementing Classes:
IESRIShape2Proxy

public interface IESRIShape2
extends IESRIShape, Serializable

Provides access to methods for non-byte swapping and angular densification export in addition to those in IESRIShape.

Product Availability

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


Method Summary
 void exportToESRIShapeEx2(int exportFlags, int[] byteCountInOut, byte[] byteBuffer)
          Writes an ESRI shapefile formatted version of this geometry to the specified buffer.
 int getESRIShapeSizeEx2(int exportFlags)
          The size of the buffer (in bytes) that will be required to hold the ESRI shapefile version of the geometry.
 void importFromESRIShapeEx(int importFlags, int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry based upon the contents of the input ESRI shapefile formatted buffer.
 
Methods inherited from interface com.esri.arcgis.geometry.IESRIShape
attachToESRIShape, exportToESRIShape, exportToESRIShapeEx, getESRIShapeSize, getESRIShapeSizeEx, getModifierOffset, importFromESRIShape, nonTrustedImportFromESRIShape, queryESRIShapeType
 

Method Detail

getESRIShapeSizeEx2

int getESRIShapeSizeEx2(int exportFlags)
                        throws IOException,
                               AutomationException
The size of the buffer (in bytes) that will be required to hold the ESRI shapefile version of the geometry. The value may exceed the minimum required size. exportFlags is a combination of esriShapeExportFlags values.

Product Availability

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

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

exportToESRIShapeEx2

void exportToESRIShapeEx2(int exportFlags,
                          int[] byteCountInOut,
                          byte[] byteBuffer)
                          throws IOException,
                                 AutomationException
Writes an ESRI shapefile formatted version of this geometry to the specified buffer. Returns the exact number of bytes written to the buffer. exportFlags is a combination of esriShapeExportFlags values.

Remarks

Note: exportFlags is a combination of esriShapeExportFlags values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
exportFlags - The exportFlags (in)
byteCountInOut - The byteCountInOut (in/out: use single element array)
byteBuffer - An unsigned byte (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

importFromESRIShapeEx

void importFromESRIShapeEx(int importFlags,
                           int[] byteCountInOut,
                           byte[] byteBuffer)
                           throws IOException,
                                  AutomationException
Defines this geometry based upon the contents of the input ESRI shapefile formatted buffer. Returns the exact number of bytes read from the buffer. importFlags is a combination of esriShapeImportFlags values.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
importFlags - The importFlags (in)
byteCountInOut - The byteCountInOut (in/out: use single element array)
byteBuffer - An unsigned byte (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.