com.esri.arcgis.geometry
Interface IGeometryFactory

All Superinterfaces:
Serializable
All Known Subinterfaces:
IGeometryFactory2, IGeometryFactory3
All Known Implementing Classes:
GeometryEnvironment

public interface IGeometryFactory
extends Serializable

Provides access to members that create geometries from different inputs.

Superseded By

IGeometryFactory3

Product Availability

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


Method Summary
 void createEmptyGeometryByESRIType(int shapeType, IGeometry[] outGeometry)
          Create an empty geometry of the specified Esri shape file type.
 void createEmptyGeometryByType(int geometryType, IGeometry[] outGeometry)
          Creates an empty geometry of the specified ArcObjects geometry type.
 void createGeometry(int[] byteCountInOut, byte[] geometryInfo, IGeometry[] outGeometry)
          Create a point, polyline, polygon, or multipoint from the specified shapefile format buffer.
 IGeometry createGeometryFromEnumerator(IEnumGeometry geometries)
          Creates a geometry bag containing references to geometries returned by the input geometry enumerator.
 void createGeometryFromWkb(int[] byteCountInOut, byte[] geometryInfo, IGeometry[] outGeometry)
          Create a point, polyline, polygon, or multipoint from the specified OGIS WKB format buffer.
 void createGeometryFromWkbVariant(Object wkb, IGeometry[] outGeometry, int[] numBytesRead)
          Create a point, polyline, polygon, or multipoint from the specified OGIS WKB format buffer.
 

Method Detail

createGeometry

void createGeometry(int[] byteCountInOut,
                    byte[] geometryInfo,
                    IGeometry[] outGeometry)
                    throws IOException,
                           AutomationException
Create a point, polyline, polygon, or multipoint from the specified shapefile format buffer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
byteCountInOut - The byteCountInOut (in/out: use single element array)
geometryInfo - An unsigned byte (in)
outGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createGeometryFromWkb

void createGeometryFromWkb(int[] byteCountInOut,
                           byte[] geometryInfo,
                           IGeometry[] outGeometry)
                           throws IOException,
                                  AutomationException
Create a point, polyline, polygon, or multipoint from the specified OGIS WKB format buffer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
byteCountInOut - The byteCountInOut (in/out: use single element array)
geometryInfo - An unsigned byte (in)
outGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createEmptyGeometryByESRIType

void createEmptyGeometryByESRIType(int shapeType,
                                   IGeometry[] outGeometry)
                                   throws IOException,
                                          AutomationException
Create an empty geometry of the specified Esri shape file type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
shapeType - A com.esri.arcgis.geometry.esriShapeType constant (in)
outGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createEmptyGeometryByType

void createEmptyGeometryByType(int geometryType,
                               IGeometry[] outGeometry)
                               throws IOException,
                                      AutomationException
Creates an empty geometry of the specified ArcObjects geometry type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
geometryType - A com.esri.arcgis.geometry.esriGeometryType constant (in)
outGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createGeometryFromWkbVariant

void createGeometryFromWkbVariant(Object wkb,
                                  IGeometry[] outGeometry,
                                  int[] numBytesRead)
                                  throws IOException,
                                         AutomationException
Create a point, polyline, polygon, or multipoint from the specified OGIS WKB format buffer.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
wkb - A Variant (in)
outGeometry - A reference to a com.esri.arcgis.geometry.IGeometry (out: use single element array)
numBytesRead - The numBytesRead (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IEnvelope, IGeometry

createGeometryFromEnumerator

IGeometry createGeometryFromEnumerator(IEnumGeometry geometries)
                                       throws IOException,
                                              AutomationException
Creates a geometry bag containing references to geometries returned by the input geometry enumerator.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
geometries - A reference to a com.esri.arcgis.geometry.IEnumGeometry (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.