com.esri.arcgis.geometry
Interface IESRIShape

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IESRIShape2
All Known Implementing Classes:
IESRIShape2Proxy, IESRIShapeProxy

public interface IESRIShape
extends java.io.Serializable

COM Interface 'IESRIShape'. Generated 3/19/2015 1:20:58 PM from 'C:\ArcGIS\COM\esriGeometry.olb'

Description: 'Provides access to members that Import/Export ArcObjects geometries to Esri shapefile format.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =


Field Summary
static java.lang.String IID
          Deprecated. Internal use only
static int IID7b91ff70_53a9_11d0_a8f3_00608c85ede5
           
static int xxDummy
          Deprecated. Internal use only
 
Method Summary
 void attachToESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Takes ownership of the input Esri shapefile format buffer.
 void exportToESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Writes an Esri shapefile formatted version of this geometry to the specified buffer.
 void exportToESRIShapeEx(int modifiersToAllow, boolean useArcViewNaNs, int[] byteCountInOut, byte[] byteBuffer)
          Writes an Esri shapefile formatted version of this geometry to the specified buffer.
 int getESRIShapeSize()
          The size of the buffer, in bytes, that will be required to hold the Esri shapefile formatted version of the geometry.
 int getESRIShapeSizeEx(int modifiersToAllow)
          The size of the buffer (in bytes) that will be required to hold the Esri shapefile version of the geometry.
 void getModifierOffset(int modifierType, int[] offset)
          Finds out the byte offsets within a shape buffer at which an exported attribute can be found.
 void importFromESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry from the input Esri shapefile formatted buffer.
 void nonTrustedImportFromESRIShape(int[] byteCountInOut, byte[] byteBuffer)
          Defines this geometry from the contents of the input Esri shapefile formatted buffer.
 void queryESRIShapeType(int basicShapeType, int[] shapeModifiers)
          Returns the basic type and modifiers (combination of esriShapeModifiers) that define the geometry's shape type, as it was last exported.
 

Field Detail

IID7b91ff70_53a9_11d0_a8f3_00608c85ede5

static final int IID7b91ff70_53a9_11d0_a8f3_00608c85ede5
See Also:
Constant Field Values

xxDummy

static final int xxDummy
Deprecated. Internal use only
See Also:
Constant Field Values

IID

static final java.lang.String IID
Deprecated. Internal use only
See Also:
Constant Field Values
Method Detail

queryESRIShapeType

void queryESRIShapeType(int basicShapeType,
                        int[] shapeModifiers)
                        throws java.io.IOException,
                               AutomationException
Returns the basic type and modifiers (combination of esriShapeModifiers) that define the geometry's shape type, as it was last exported.

Parameters:
basicShapeType - A com.esri.arcgis.geometry.esriShapeType constant (in)
shapeModifiers - The shapeModifiers (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getESRIShapeSize

int getESRIShapeSize()
                     throws java.io.IOException,
                            AutomationException
The size of the buffer, in bytes, that will be required to hold the Esri shapefile formatted version of the geometry. The value may exceed the minimum required size.

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

getESRIShapeSizeEx

int getESRIShapeSizeEx(int modifiersToAllow)
                       throws java.io.IOException,
                              AutomationException
The size of the buffer (in bytes) that will be required to hold the Esri shapefile version of the geometry. Only attributes specified by modifiers to allow will be exported. The value may exceed the minimum required size. ModifiersToAllow is a combination of e?T?_?

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

importFromESRIShape

void importFromESRIShape(int[] byteCountInOut,
                         byte[] byteBuffer)
                         throws java.io.IOException,
                                AutomationException
Defines this geometry from the input Esri shapefile formatted buffer. Assumes the buffer describes a topologically correct geometry. Returns the exact number of bytes read from the buffer.

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

nonTrustedImportFromESRIShape

void nonTrustedImportFromESRIShape(int[] byteCountInOut,
                                   byte[] byteBuffer)
                                   throws java.io.IOException,
                                          AutomationException
Defines this geometry from the contents of the input Esri shapefile formatted buffer. Does not assume that the buffer describes a topological correct geometry. Returns the exact number of bytes read from the buffer.

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

attachToESRIShape

void attachToESRIShape(int[] byteCountInOut,
                       byte[] byteBuffer)
                       throws java.io.IOException,
                              AutomationException
Takes ownership of the input Esri shapefile format buffer. The geometry must be deleted, set to empty, edited, or imported from/attached to a different buffer before the buffer can be re-used.

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

exportToESRIShape

void exportToESRIShape(int[] byteCountInOut,
                       byte[] byteBuffer)
                       throws java.io.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.

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

exportToESRIShapeEx

void exportToESRIShapeEx(int modifiersToAllow,
                         boolean useArcViewNaNs,
                         int[] byteCountInOut,
                         byte[] byteBuffer)
                         throws java.io.IOException,
                                AutomationException
Writes an Esri shapefile formatted version of this geometry to the specified buffer. Only exports attributes specified by modifiersToAllow (combination of esriShapeExportFlags values.). Returns the exact number of bytes written to the buffer.

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

getModifierOffset

void getModifierOffset(int modifierType,
                       int[] offset)
                       throws java.io.IOException,
                              AutomationException
Finds out the byte offsets within a shape buffer at which an exported attribute can be found. Only works if the shape hasn't changed since the last call to ExportToESRIShape or ExportToESRIShapeEx.

Parameters:
modifierType - A com.esri.arcgis.geometry.esriShapeModifiers constant (in)
offset - The offset (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.