IESRIShape2 Interface

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

Members

Name Description
Method AttachToESRIShape 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.
Read-only property ESRIShapeSize 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.
Read-only property ESRIShapeSizeEx 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
Read-only property ESRIShapeSizeEx2 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.
Method ExportToESRIShape Writes an Esri shapefile formatted version of this geometry to the specified buffer. Returns the exact number of bytes written to the buffer.
Method ExportToESRIShapeEx 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.
Method ExportToESRIShapeEx2 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.
Method GetModifierOffset 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.
Method ImportFromESRIShape 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.
Method ImportFromESRIShapeEx 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.
Method NonTrustedImportFromESRIShape 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.
Method QueryESRIShapeType Returns the basic type and modifiers (combination of esriShapeModifiers) that define the geometry's shape type, as it was last exported.

IESRIShape2.ESRIShapeSizeEx2 Property

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.

Public Function get_ESRIShapeSizeEx2 ( _
    ByVal exportFlags As Integer _
) As Integer
public int get_ESRIShapeSizeEx2 (
    int exportFlags
);

Remarks

Note: exportFlags is a combination of esriShapeExportFlags values.

IESRIShape2.ExportToESRIShapeEx2 Method

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.

Public Sub ExportToESRIShapeEx2 ( _
    ByVal exportFlags As Integer, _
    ByRef byteCountInOut As Integer, _
    ByRef byteBuffer As Byte& _
)
public void ExportToESRIShapeEx2 (
    int exportFlags,
    ref int byteCountInOut,
    ref Byte& byteBuffer
);

Remarks

Note: exportFlags is a combination of esriShapeExportFlags values.

IESRIShape2.ImportFromESRIShapeEx Method

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.

Public Sub ImportFromESRIShapeEx ( _
    ByVal importFlags As Integer, _
    ByRef byteCountInOut As Integer, _
    ByRef byteBuffer As Byte& _
)
public void ImportFromESRIShapeEx (
    int importFlags,
    ref int byteCountInOut,
    ref Byte& byteBuffer
);

Inherited Interfaces

Interfaces Description
IESRIShape Provides access to members that Import/Export ArcObjects geometries to Esri shapefile format.

Classes that implement IESRIShape2

Classes Description

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