com.esri.arcgis.geodatabase
Class GeometricNetwork

java.lang.Object
  extended bycom.esri.arcgis.geodatabase.GeometricNetwork
All Implemented Interfaces:
IDataset, IDatasetEdit, IFeatureClassContainer, IGeoDataset, IGeometricNetwork, IGeometricNetworkConnectivity, IGeometricNetworkConnectivity2, IGeometricNetworkErrorDetection, IGeometricNetworkReconcileProperties, IGraph, IMetadata, IMetadataEdit, INativeTypeInfo, ISchemaLock, ISupportErrorInfo, java.io.Serializable

public class GeometricNetwork
extends java.lang.Object
implements IDataset, IDatasetEdit, IGeoDataset, INativeTypeInfo, ISchemaLock, IFeatureClassContainer, IGeometricNetwork, IGeometricNetworkErrorDetection, IGeometricNetworkConnectivity2, IGeometricNetworkReconcileProperties, IMetadata, IMetadataEdit, ISupportErrorInfo

ESRI Geometric Network object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
GeometricNetwork(java.lang.Object obj)
          Construct a GeometricNetwork using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 void add(IFeature newFeature)
          Adds the preexisting Feature to the graph.
 void addFeatureClass(IFeatureClass featureClass, java.lang.String enabledFieldName, int role, java.lang.String ancillaryRoleFieldName)
          Add the FeatureClass to this graph.
 void addJunctionWithSubsumption(ISimpleJunctionFeature pJunction, int junctionEID, ISimpleJunctionFeature pSubsumedJunction)
          Add a new junction feature to the network by replacing existing junction.
 void addRule(IConnectivityRule rule)
          Adds the constraint to the set of connectivity rules.
 boolean canCopy()
          True if this dataset can be copied.
 boolean canDelete()
          True if this dataset can be deleted.
 boolean canRename()
          True if this dataset can be renamed.
 void changeSchemaLock(int schemaLock)
          Changes a schema lock.
 void checkAndRepairConnectivity(boolean checkOnly, java.lang.String logFilePath, ISet[] errorSelectionSets, boolean[] hasInternalInconsistencies, IRepairConnectivityProgress pRepairConnectivityProgress)
          Checks and optionally repairs connectivity.
 IDataset copy(java.lang.String copyName, IWorkspace copyWorkspace)
          Copies this dataset to a new dataset with the specified name.
 void createErrorTable(java.lang.String name, ITable[] errorTable)
          Creates a non-versioned table that can be used to persist error information.
 ISimpleJunctionFeature createOrphanFeature(IPoint location, int[] orphanEID)
          Create an orphan JunctionFeature.
 ISet createSelectionSetFromErrorTable()
          Returns a set of selection sets of the features in the geometric network Error Table.
 void delete()
          Deletes this dataset.
 void deleteNetworkElements(ISet selectionSets)
          Deletes the network elements associated with the specified network features.
 void deleteRule(IConnectivityRule rule)
          Removes the rule from the set of rules.
 void deleteSet(ISet featuresToDelete)
          Removes the set of Feature from the graph.
 void detectNetworkErrors(int errorType, IEnvelope areaOfInterest, ISet selectionSets, ISet[] problemSelectionSets)
          The features in the geometric network with connectivity problems.
 boolean equals(java.lang.Object o)
          Compare this object with another
 IFeatureClass esri_getClass(int classIndex)
          The FeatureClass associated with the specified index value.
 void establishFlowDirection()
          Establish the flow direction in the LogicalNetwork.
 IDataset getAsIDataset()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IDatasetEdit getAsIDatasetEdit()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IFeatureClassContainer getAsIFeatureClassContainer()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeoDataset getAsIGeoDataset()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeometricNetwork getAsIGeometricNetwork()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeometricNetworkConnectivity2 getAsIGeometricNetworkConnectivity2()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeometricNetworkErrorDetection getAsIGeometricNetworkErrorDetection()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IGeometricNetworkReconcileProperties getAsIGeometricNetworkReconcileProperties()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IMetadata getAsIMetadata()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 IMetadataEdit getAsIMetadataEdit()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 INativeTypeInfo getAsINativeTypeInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISchemaLock getAsISchemaLock()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 ISupportErrorInfo getAsISupportErrorInfo()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 java.lang.String getBrowseName()
          The browse name of the dataset.
 java.lang.String getCategory()
          The category of the dataset.
 IFeatureClass getClassByID(int iD)
          The FeatureClass with the specified ID.
 IFeatureClass getClassByName(java.lang.String name)
          The FeatureClass with the specified name.
 int getClassCount()
          The number of FeatureClasses in this container.
 IEnumFeatureClass getClasses()
          An enumerator over the FeatureClasses.
 IEnumFeatureClass getClassesByNetworkAncillaryRole(int role)
          The FeatureClasses with the specified ancillary role.
 IEnumFeatureClass getClassesByType(int type)
          The FeatureClasses containing Features of the specified type.
 void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
          The list of current locks.
 IDisplayFeedback getDisplayFeedback(IFeature feature, ISet features, IPoint point)
          The DisplayFeedback.
 int getEdgeElement(IPoint location)
          The EdgeElement EID at the specified location.
 ITable getErrorTable()
          The error table currently associated with the geometric network.
 IEnvelope getExtent()
          The extent of the GeoDataset.
 IFeatureDataset getFeatureDataset()
          The FeatureDataset associated with the graph.
 IName getFullName()
          The associated name object.
 IGeometry getGeometryForEdgeEID(int edgeEID)
          The geometry of the EdgeElement.
 IGeometry getGeometryForJunctionEID(int junctionEID)
          The geometry that corresponds to the JunctionElement (a point).
 IInvalidArea getInvalidArea()
          The area to be drawn.
 int getJunctionElement(IPoint location)
          The JunctionElement EID at the specified location.
 IPropertySet getMetadata()
          The PropertySet containing metadata.
 java.lang.String getName()
          The name of the Dataset.
 INativeType getNativeType()
          The native type.
 INetwork getNetwork()
          The associated logical network.
 INetworkFeature getNetworkFeature(INetElementDescription networkElement)
          The NetworkFeature that corresponds to the NetworkElement.
 int getNetworkType()
          The type of associated logical network.
 IFeatureClass getOrphanJunctionFeatureClass()
          The FeatureClass containing the OrphanJunctionFeatures.
 IPropertySet getPropertySet()
          The set of properties for the dataset.
 IEnumRule getRules()
          All the connectivity rules associated with the network.
 IEnumRule getRulesByClassAndSubtype(int classID, int subtypeCode)
          The connectivity rules associated with the class and subtype.
 ISpatialReference getSpatialReference()
          The spatial reference of the GeoDataset.
 IEnumDataset getSubsets()
          Datasets contained within this dataset.
 int getType()
          The type of the Dataset.
 IWorkspace getWorkspace()
          The workspace containing this dataset.
 int hashCode()
          the hashcode for this object
 void init(IFeatureDataset dataset, int graphID, java.lang.String graphName, boolean buildNormalizedTables, boolean createGraph)
          Initializes the graph.
 void interfaceSupportsErrorInfo(GUID riid)
          Supported Platforms
 boolean isBeingEdited()
          True if the dataset is being edited.
 boolean isCanEditMetadata()
          Indicates if metadata can be edited.
 boolean isReduceNetworkConflicts()
          Returns true if the reconcile plan for the network reduces network conflicts
 boolean isValidFlowDirection()
          Indicates whether the current flow directions are valid.
 boolean isVertexBasedStretching()
          The stretching model to nearest vertex (true) or junction (false) based stretching.
 IEnumFeature merge(IEnumFeature mergingFeatures)
          Merges the Features together, returning the newly created Feature.
 void rebuildConnectivity(IEnvelope pIncrementalRebuildArea)
          Incrementally rebuilds connectivity for features within and intersecting the specified envelope.
 void rebuildConnectivity2(IEnvelope pIncrementalRebuildArea)
          Incrementally rebuilds connectivity for features within and intersecting the specified envelope.
 void rename(java.lang.String name)
          Renames this Dataset.
 IEnumFeature searchForNetworkFeature(IPoint location, int type)
          The NetworkFeatures found at the point.
 void setBrowseName(java.lang.String name)
          The browse name of the dataset.
 void setErrorTable(ITable errorTable)
          The error table currently associated with the geometric network.
 void setInvalidAreaByRef(IInvalidArea invalidArea)
          The area to be drawn.
 void setMetadata(IPropertySet ppPropertySet)
          The PropertySet containing metadata.
 void setReduceNetworkConflicts(boolean reduceNetworkConflicts)
          Returns true if the reconcile plan for the network reduces network conflicts
 void setVertexBasedStretching(boolean vertexBased)
          The stretching model to nearest vertex (true) or junction (false) based stretching.
 void spliceSimpleJunction(ISimpleJunctionFeature junction, int junctionEID, IGeometry geometry, boolean forceConnectivity)
          Create network connectivity between the simple junction and any intersecting network feature.
 ISet split(IEdgeFeature splittingEdge, IGeometry point)
          Split the feature.
 void synchronize(int action, int interval)
          Updates metadata with the current properties; may create metadata if it doesn't already exist.
 void transformSet(ISet features, int type, IAffineTransformation2D tranformation)
          Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometricNetwork

public GeometricNetwork(java.lang.Object obj)
                 throws java.io.IOException
Construct a GeometricNetwork using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to GeometricNetwork.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
GeometricNetwork o = (GeometricNetwork)obj; // will not work

GeometricNetwork o = new GeometricNetwork(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server GeometricNetwork theGeometricNetwork = (GeometricNetwork) obj;

Throws:
java.io.IOException - if there are interop problems
Method Detail

getAsIDataset

public IDataset getAsIDataset()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIDatasetEdit

public IDatasetEdit getAsIDatasetEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIGeoDataset

public IGeoDataset getAsIGeoDataset()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsINativeTypeInfo

public INativeTypeInfo getAsINativeTypeInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISchemaLock

public ISchemaLock getAsISchemaLock()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIFeatureClassContainer

public IFeatureClassContainer getAsIFeatureClassContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIGeometricNetwork

public IGeometricNetwork getAsIGeometricNetwork()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIGeometricNetworkErrorDetection

public IGeometricNetworkErrorDetection getAsIGeometricNetworkErrorDetection()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIGeometricNetworkConnectivity2

public IGeometricNetworkConnectivity2 getAsIGeometricNetworkConnectivity2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIGeometricNetworkReconcileProperties

public IGeometricNetworkReconcileProperties getAsIGeometricNetworkReconcileProperties()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIMetadata

public IMetadata getAsIMetadata()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsIMetadataEdit

public IMetadataEdit getAsIMetadataEdit()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


getAsISupportErrorInfo

public ISupportErrorInfo getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

public boolean equals(java.lang.Object o)
Compare this object with another


hashCode

public int hashCode()
the hashcode for this object


getName

public java.lang.String getName()
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IDataset
The name of the Dataset.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getName in interface IDataset
Returns:
The name
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getFullName

public IName getFullName()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IDataset
The associated name object.

Supported Platforms

Windows, Solaris, Linux

Remarks

The FullName property returns a Name object for the dataset. The Name object can be persisted and provides a way to get back to the dataset in a future session of the application, via the Open method on the Name object.

Specified by:
getFullName in interface IDataset
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getBrowseName

public java.lang.String getBrowseName()
                               throws java.io.IOException,
                                      AutomationException
Description copied from interface: IDataset
The browse name of the dataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

BrowseName returns file names without their extension. For example, States.shp would appear as States.

Specified by:
getBrowseName in interface IDataset
Returns:
The name
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setBrowseName

public void setBrowseName(java.lang.String name)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IDataset
The browse name of the dataset.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setBrowseName in interface IDataset
Parameters:
name - The name (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getType

public int getType()
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IDataset
The type of the Dataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

The Type property returns the enumerated type for the dataset, such as esriDTTable or esriDTFeatureDataset.

Specified by:
getType in interface IDataset
Returns:
A com.esri.arcgis.geodatabase.esriDatasetType constant
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getCategory

public java.lang.String getCategory()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: IDataset
The category of the dataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

IDataset::Category returns a description of the category of the dataset.  The description returned from the Category property is the same value that is displayed in the Type column within the Contents tab in ArcCatalog.  The value will contain a description of the dataset such as "Topology" prefixed with a description of the type of workspace containing the dataset such as "File Geodatabase".

The description returned from IDataset::Category may change between releases of ArcGIS.

Specified by:
getCategory in interface IDataset
Returns:
The category
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getSubsets

public IEnumDataset getSubsets()
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IDataset
Datasets contained within this dataset.

Supported Platforms

Windows, Solaris, Linux

Description

The Subsets property returns other Dataset objects contained in this dataset.

Remarks

IDataset::Subsets is not supported for Graph objects such as a Geometric Network.  To return the feature classes contained in a Geometric Network, use the IFeatureClassContainer interface.

Specified by:
getSubsets in interface IDataset
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumDataset
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getWorkspace

public IWorkspace getWorkspace()
                        throws java.io.IOException,
                               AutomationException
Description copied from interface: IDataset
The workspace containing this dataset.

Supported Platforms

Windows, Solaris, Linux

Description

The Workspace property returns the containing workspace for this dataset.

Specified by:
getWorkspace in interface IDataset
Returns:
A reference to a com.esri.arcgis.geodatabase.IWorkspace
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPropertySet

public IPropertySet getPropertySet()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IDataset
The set of properties for the dataset.

Supported Platforms

Windows, Solaris, Linux

Description

The PropertySet property is used to return any additional intrinsic properties (but not metadata properties) that may apply to the dataset. One use of this property is to distinguish between the types of File Geodatabase datafile formats. If called on a Feature Class or Table in a File Geodatabase the Datafile Format property can either be esriFGDBStandardDatafile or esriFGDBCompressedDatafile.

Remarks

Examples of intrinsic properties for which explicit methods exist include the SpatialReference and the Extent methods available on the IGeoDataset interface. In most cases this PropertySet will be empty.

IDataset::PropertySet is not supported for Graph objects such as a Geometric Network.

Specified by:
getPropertySet in interface IDataset
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

canCopy

public boolean canCopy()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IDataset
True if this dataset can be copied.

Supported Platforms

Windows, Solaris, Linux

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

The CanCopy method is supported by:

Specified by:
canCopy in interface IDataset
Returns:
The canCopy
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

copy

public IDataset copy(java.lang.String copyName,
                     IWorkspace copyWorkspace)
              throws java.io.IOException,
                     AutomationException
Description copied from interface: IDataset
Copies this dataset to a new dataset with the specified name.

Supported Platforms

Windows, Solaris, Linux

Remarks

IDataset::Copy does not support the copying of Graph objects such as a Geometric Network.

Specified by:
copy in interface IDataset
Parameters:
copyName - The copyName (in)
copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IDataset
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
See Also:
GeoDBDataTransfer

canDelete

public boolean canDelete()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IDataset
True if this dataset can be deleted.

Supported Platforms

Windows, Solaris, Linux

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

Specified by:
canDelete in interface IDataset
Returns:
The canDelete
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

delete

public void delete()
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IDataset
Deletes this dataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

Certain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.

Specified by:
delete in interface IDataset
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

canRename

public boolean canRename()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IDataset
True if this dataset can be renamed.

Supported Platforms

Windows, Solaris, Linux

Remarks

The CanCopy, CanDelete, and CanRename properties are meant to be used in conjunction with the Copy, Delete, and Rename methods and signify whether a dataset is supported by these methods.  For example, you may not delete or rename a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc., use the IGeoDBDataTransfer interface.

Specified by:
canRename in interface IDataset
Returns:
The canRename
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rename

public void rename(java.lang.String name)
            throws java.io.IOException,
                   AutomationException
Description copied from interface: IDataset
Renames this Dataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

IDataset::Rename does not support the renaming of Graph objects such as a Geometric Network.  In addition, certain feature classes, such as network feature classes, cannot be renamed.

Specified by:
rename in interface IDataset
Parameters:
name - The name (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isBeingEdited

public boolean isBeingEdited()
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: IDatasetEdit
True if the dataset is being edited.

Specified by:
isBeingEdited in interface IDatasetEdit
Returns:
The pIsBeingEdited
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSpatialReference

public ISpatialReference getSpatialReference()
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: IGeoDataset
The spatial reference of the GeoDataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.

Specified by:
getSpatialReference in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.ISpatialReference
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExtent

public IEnvelope getExtent()
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IGeoDataset
The extent of the GeoDataset.

Supported Platforms

Windows, Solaris, Linux

Remarks

The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.

Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.

The red box represents the IGeoDataset extent

If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.

The red box represents the IGeoDataset extent after some of the features have been deleted

If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.

The red box represents the IGeoDataset extent after it has been updated

ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.

 

Specified by:
getExtent in interface IGeoDataset
Returns:
A reference to a com.esri.arcgis.geometry.IEnvelope
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getNativeType

public INativeType getNativeType()
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: INativeTypeInfo
The native type.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNativeType in interface INativeTypeInfo
Returns:
A reference to a com.esri.arcgis.geodatabase.INativeType
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

changeSchemaLock

public void changeSchemaLock(int schemaLock)
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: ISchemaLock
Changes a schema lock.

Supported Platforms

Windows, Solaris, Linux

Specified by:
changeSchemaLock in interface ISchemaLock
Parameters:
schemaLock - A com.esri.arcgis.geodatabase.esriSchemaLock constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCurrentSchemaLocks

public void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: ISchemaLock
The list of current locks.

Supported Platforms

Windows, Solaris, Linux

Remarks

Returns an enumeration of the schema locks currently on the dataset.  Not that there will always be at least one schema lock on the dataset.  By checking the schema locks on a dataset a shared schema lock is applied to the data.

Specified by:
getCurrentSchemaLocks in interface ISchemaLock
Parameters:
schemaLockInfo - A reference to a com.esri.arcgis.geodatabase.IEnumSchemaLockInfo (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

esri_getClass

public IFeatureClass esri_getClass(int classIndex)
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IFeatureClassContainer
The FeatureClass associated with the specified index value.

Specified by:
esri_getClass in interface IFeatureClassContainer
Parameters:
classIndex - The classIndex (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getClassByID

public IFeatureClass getClassByID(int iD)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IFeatureClassContainer
The FeatureClass with the specified ID.

Supported Platforms

Windows, Solaris, Linux

Remarks

Each object class in a geodatabase has a unique ID accessible via the ObjectClassID method in the IObjectClass interface or the FeatureClassID method in the IFeatureClass interface. The ClassByID method finds a feature class in a feature dataset given its object class ID.

Specified by:
getClassByID in interface IFeatureClassContainer
Parameters:
iD - The iD (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassByName

public IFeatureClass getClassByName(java.lang.String name)
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: IFeatureClassContainer
The FeatureClass with the specified name.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getClassByName in interface IFeatureClassContainer
Parameters:
name - The name (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getClassCount

public int getClassCount()
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IFeatureClassContainer
The number of FeatureClasses in this container.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getClassCount in interface IFeatureClassContainer
Returns:
The numClasses
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClasses

public IEnumFeatureClass getClasses()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: IFeatureClassContainer
An enumerator over the FeatureClasses.

Supported Platforms

Windows, Solaris, Linux

Remarks

There is no guarentee on the order that the feature classes will be returned.

Specified by:
getClasses in interface IFeatureClassContainer
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getClassesByNetworkAncillaryRole

public IEnumFeatureClass getClassesByNetworkAncillaryRole(int role)
                                                   throws java.io.IOException,
                                                          AutomationException
Description copied from interface: IGeometricNetwork
The FeatureClasses with the specified ancillary role.

Supported Platforms

Windows, Solaris, Linux

Remarks

The ClassesByNetworkAncillaryRole property returns an enumeration of feature classes based on whether or not the feaure class has been assigned an ancillary role within the geometric network.  Since the differentiation between source and sink roles occurs at the feature level, feature classes cannot be returned based on a specific ancillary role.

The orphan junction feautre class will always be returned when esriNCARNone or a value of 0 is supplied for the role.

Specified by:
getClassesByNetworkAncillaryRole in interface IGeometricNetwork
Parameters:
role - A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeatureClass
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

establishFlowDirection

public void establishFlowDirection()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IGeometricNetwork
Establish the flow direction in the LogicalNetwork.

Supported Platforms

Windows, Solaris, Linux

Remarks

EstablishFlowDirection should be called after each edit operation which affects the network's current flow direction. Please note that EstablishFlowDirection should also be called following a reconcile but prior to a post process.

Specified by:
establishFlowDirection in interface IGeometricNetwork
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isValidFlowDirection

public boolean isValidFlowDirection()
                             throws java.io.IOException,
                                    AutomationException
Description copied from interface: IGeometricNetwork
Indicates whether the current flow directions are valid.

Supported Platforms

Windows, Solaris, Linux

Remarks

ValidFlowDirection specifies whether the geometric network's flow direction has been defined.  Use EstablishFlowDirection on this same interface to set the flow direction.

In this release, ValidFlowDirection is not implemented -- for now, this property always returns False.

Specified by:
isValidFlowDirection in interface IGeometricNetwork
Returns:
The validFlowDirection
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getClassesByType

public IEnumFeatureClass getClassesByType(int type)
                                   throws java.io.IOException,
                                          AutomationException
Description copied from interface: IGeometricNetwork
The FeatureClasses containing Features of the specified type.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getClassesByType in interface IGeometricNetwork
Parameters:
type - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeatureClass
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

createOrphanFeature

public ISimpleJunctionFeature createOrphanFeature(IPoint location,
                                                  int[] orphanEID)
                                           throws java.io.IOException,
                                                  AutomationException
Description copied from interface: IGeometricNetwork
Create an orphan JunctionFeature.

Supported Platforms

Windows, Solaris, Linux

Remarks

The CreateOrphanFeature method creates an orphan junction at the location corresponding to the supplied point.  Connectivity is not established by CreateOrphanFeature, the Connect method must be called explicitly after the feature is created.

Specified by:
createOrphanFeature in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
orphanEID - The orphanEID (out: use single element array)
Returns:
A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getEdgeElement

public int getEdgeElement(IPoint location)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IGeometricNetwork
The EdgeElement EID at the specified location.

Supported Platforms

Windows, Solaris, Linux

Remarks

The EdgeElement property returns the Element ID (EID) of the network feature found at the specified point. If there is more than one network edge feature at the location, then the EID of the first feature that is located is returned.  If no network feature is found, EdgeElement returns -1.  If the network feature does not have an EID, a value of 0 is returned.

Specified by:
getEdgeElement in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The edgeEID
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getInvalidArea

public IInvalidArea getInvalidArea()
                            throws java.io.IOException,
                                   AutomationException
Description copied from interface: IGeometricNetwork
The area to be drawn.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getInvalidArea in interface IGeometricNetwork
Returns:
A reference to a com.esri.arcgis.geodatabase.IInvalidArea
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setInvalidAreaByRef

public void setInvalidAreaByRef(IInvalidArea invalidArea)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IGeometricNetwork
The area to be drawn.

Specified by:
setInvalidAreaByRef in interface IGeometricNetwork
Parameters:
invalidArea - A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getJunctionElement

public int getJunctionElement(IPoint location)
                       throws java.io.IOException,
                              AutomationException
Description copied from interface: IGeometricNetwork
The JunctionElement EID at the specified location.

Supported Platforms

Windows, Solaris, Linux

Remarks

The JuntionElement property returns the Element ID (EID) of the network feature found at the specified point. If there is more than one network junction feature at the the location, then the EID of the first feature that is located is returned.  If no network feature is found, JuntionElement returns -1.  If the network feature does not have an EID, a value of 0 is returned.

Specified by:
getJunctionElement in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
The junctionEID
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getNetwork

public INetwork getNetwork()
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IGeometricNetwork
The associated logical network.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNetwork in interface IGeometricNetwork
Returns:
A reference to a com.esri.arcgis.geodatabase.INetwork
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getNetworkType

public int getNetworkType()
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IGeometricNetwork
The type of associated logical network.

Supported Platforms

Windows, Solaris, Linux

Remarks

See esriNetworkType Constants for information on the types of networks.

Specified by:
getNetworkType in interface IGeometricNetwork
Returns:
A com.esri.arcgis.geodatabase.esriNetworkType constant
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getOrphanJunctionFeatureClass

public IFeatureClass getOrphanJunctionFeatureClass()
                                            throws java.io.IOException,
                                                   AutomationException
Description copied from interface: IGeometricNetwork
The FeatureClass containing the OrphanJunctionFeatures.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getOrphanJunctionFeatureClass in interface IGeometricNetwork
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureClass
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addRule

public void addRule(IConnectivityRule rule)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IGeometricNetwork
Adds the constraint to the set of connectivity rules.

Supported Platforms

Windows, Solaris, Linux

Specified by:
addRule in interface IGeometricNetwork
Parameters:
rule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

deleteRule

public void deleteRule(IConnectivityRule rule)
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IGeometricNetwork
Removes the rule from the set of rules.

Supported Platforms

Windows, Solaris, Linux

Specified by:
deleteRule in interface IGeometricNetwork
Parameters:
rule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRules

public IEnumRule getRules()
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IGeometricNetwork
All the connectivity rules associated with the network.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getRules in interface IGeometricNetwork
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumRule
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRulesByClassAndSubtype

public IEnumRule getRulesByClassAndSubtype(int classID,
                                           int subtypeCode)
                                    throws java.io.IOException,
                                           AutomationException
Description copied from interface: IGeometricNetwork
The connectivity rules associated with the class and subtype.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getRulesByClassAndSubtype in interface IGeometricNetwork
Parameters:
classID - The classID (in)
subtypeCode - The subtypeCode (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumRule
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

searchForNetworkFeature

public IEnumFeature searchForNetworkFeature(IPoint location,
                                            int type)
                                     throws java.io.IOException,
                                            AutomationException
Description copied from interface: IGeometricNetwork
The NetworkFeatures found at the point.

Supported Platforms

Windows, Solaris, Linux

Remarks

The SearchForNetworkFeature method returns an enumeration of the specified type of network feature located at the supplied point.  If more than one feature is coincident with the point, then all are returned. The returned features may span different classes; the only restriction is that all features must be of the same feature type. There is no guarantee as to the order of the returned features.

Specified by:
searchForNetworkFeature in interface IGeometricNetwork
Parameters:
location - A reference to a com.esri.arcgis.geometry.IPoint (in)
type - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getGeometryForEdgeEID

public IGeometry getGeometryForEdgeEID(int edgeEID)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IGeometricNetwork
The geometry of the EdgeElement.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getGeometryForEdgeEID in interface IGeometricNetwork
Parameters:
edgeEID - The edgeEID (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getGeometryForJunctionEID

public IGeometry getGeometryForJunctionEID(int junctionEID)
                                    throws java.io.IOException,
                                           AutomationException
Description copied from interface: IGeometricNetwork
The geometry that corresponds to the JunctionElement (a point).

Supported Platforms

Windows, Solaris, Linux

Specified by:
getGeometryForJunctionEID in interface IGeometricNetwork
Parameters:
junctionEID - The junctionEID (in)
Returns:
A reference to a com.esri.arcgis.geometry.IGeometry
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getNetworkFeature

public INetworkFeature getNetworkFeature(INetElementDescription networkElement)
                                  throws java.io.IOException,
                                         AutomationException
Description copied from interface: IGeometricNetwork
The NetworkFeature that corresponds to the NetworkElement.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getNetworkFeature in interface IGeometricNetwork
Parameters:
networkElement - A reference to a com.esri.arcgis.geodatabase.INetElementDescription (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.INetworkFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

spliceSimpleJunction

public void spliceSimpleJunction(ISimpleJunctionFeature junction,
                                 int junctionEID,
                                 IGeometry geometry,
                                 boolean forceConnectivity)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IGeometricNetwork
Create network connectivity between the simple junction and any intersecting network feature. For internal use only.

Supported Platforms

Windows, Solaris, Linux

Specified by:
spliceSimpleJunction in interface IGeometricNetwork
Parameters:
junction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
junctionEID - The junctionEID (in)
geometry - A reference to a com.esri.arcgis.geometry.IGeometry (in)
forceConnectivity - The forceConnectivity (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addJunctionWithSubsumption

public void addJunctionWithSubsumption(ISimpleJunctionFeature pJunction,
                                       int junctionEID,
                                       ISimpleJunctionFeature pSubsumedJunction)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IGeometricNetwork
Add a new junction feature to the network by replacing existing junction.

Supported Platforms

Windows, Solaris, Linux

Description

The pJunction argument represents the junction which will subsume or replace the existing junction.  The JunctionEID represents the Element ID of the junction feature specified in the first argument and can be obtained from SimpleJunctionFeature::EID property.  The thrid argument, pSusbsumedJunction represents the junction being subsumed.

AddJunctionWithSubsumption will enforce network connectivity between the newly created feature and any network features which are geometrically coincident.

Specified by:
addJunctionWithSubsumption in interface IGeometricNetwork
Parameters:
pJunction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
junctionEID - The junctionEID (in)
pSubsumedJunction - A reference to a com.esri.arcgis.geodatabase.ISimpleJunctionFeature (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

add

public void add(IFeature newFeature)
         throws java.io.IOException,
                AutomationException
Description copied from interface: IGraph
Adds the preexisting Feature to the graph.

Supported Platforms

Windows, Solaris, Linux

Remarks

The IGraph:Add method is meant for internal use only. 

There is no need to call INetworkFeature::CreateNetworkElements or INetworkFeature::Connect as these are handled internally by IFeature::Store

Specified by:
add in interface IGraph
Parameters:
newFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

addFeatureClass

public void addFeatureClass(IFeatureClass featureClass,
                            java.lang.String enabledFieldName,
                            int role,
                            java.lang.String ancillaryRoleFieldName)
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IGraph
Add the FeatureClass to this graph.

Supported Platforms

Windows, Solaris, Linux

Specified by:
addFeatureClass in interface IGraph
Parameters:
featureClass - A reference to a com.esri.arcgis.geodatabase.IFeatureClass (in)
enabledFieldName - The enabledFieldName (in)
role - A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)
ancillaryRoleFieldName - The ancillaryRoleFieldName (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

deleteSet

public void deleteSet(ISet featuresToDelete)
               throws java.io.IOException,
                      AutomationException
Description copied from interface: IGraph
Removes the set of Feature from the graph.

Supported Platforms

Windows, Solaris, Linux

Specified by:
deleteSet in interface IGraph
Parameters:
featuresToDelete - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getFeatureDataset

public IFeatureDataset getFeatureDataset()
                                  throws java.io.IOException,
                                         AutomationException
Description copied from interface: IGraph
The FeatureDataset associated with the graph.

Supported Platforms

Windows, Solaris, Linux

Remarks

Returns a reference to the feature dataset in which the graph exists.

Specified by:
getFeatureDataset in interface IGraph
Returns:
A reference to a com.esri.arcgis.geodatabase.IFeatureDataset
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDisplayFeedback

public IDisplayFeedback getDisplayFeedback(IFeature feature,
                                           ISet features,
                                           IPoint point)
                                    throws java.io.IOException,
                                           AutomationException
Description copied from interface: IGraph
The DisplayFeedback.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getDisplayFeedback in interface IGraph
Parameters:
feature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
features - A reference to a com.esri.arcgis.system.ISet (in)
point - A reference to a com.esri.arcgis.geometry.IPoint (in)
Returns:
A reference to a com.esri.arcgis.display.IDisplayFeedback
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

init

public void init(IFeatureDataset dataset,
                 int graphID,
                 java.lang.String graphName,
                 boolean buildNormalizedTables,
                 boolean createGraph)
          throws java.io.IOException,
                 AutomationException
Description copied from interface: IGraph
Initializes the graph.

Supported Platforms

Windows, Solaris, Linux

Remarks

The IGraph::Init method is called internally during the process of creating a Geometric Network and should be called independently.

Specified by:
init in interface IGraph
Parameters:
dataset - A reference to a com.esri.arcgis.geodatabase.IFeatureDataset (in)
graphID - The graphID (in)
graphName - The graphName (in)
buildNormalizedTables - The buildNormalizedTables (in)
createGraph - The createGraph (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

merge

public IEnumFeature merge(IEnumFeature mergingFeatures)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IGraph
Merges the Features together, returning the newly created Feature.

Supported Platforms

Windows, Solaris, Linux

Remarks

The Merge method is not currently implemented.

Specified by:
merge in interface IGraph
Parameters:
mergingFeatures - A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumFeature
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

split

public ISet split(IEdgeFeature splittingEdge,
                  IGeometry point)
           throws java.io.IOException,
                  AutomationException
Description copied from interface: IGraph
Split the feature.

Supported Platforms

Windows, Solaris, Linux

Specified by:
split in interface IGraph
Parameters:
splittingEdge - A reference to a com.esri.arcgis.geodatabase.IEdgeFeature (in)
point - A reference to a com.esri.arcgis.geometry.IGeometry (in)
Returns:
A reference to a com.esri.arcgis.system.ISet
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

transformSet

public void transformSet(ISet features,
                         int type,
                         IAffineTransformation2D tranformation)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IGraph
Repositions all specified NetworkFeatures and any topologically connected NetworkFeatures.

Supported Platforms

Windows, Solaris, Linux

Remarks

TransformSet will maintain connectivity between network features.  The type of stretching that is employed during TransformSet can be changed using the VertexBasedStretching property.

Specified by:
transformSet in interface IGraph
Parameters:
features - A reference to a com.esri.arcgis.system.ISet (in)
type - A com.esri.arcgis.geodatabase.esriTransformType constant (in)
tranformation - A reference to a com.esri.arcgis.geometry.IAffineTransformation2D (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

isVertexBasedStretching

public boolean isVertexBasedStretching()
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IGraph
The stretching model to nearest vertex (true) or junction (false) based stretching.

Supported Platforms

Windows, Solaris, Linux

Description

VertexBasedStretching controls the stretching model for the specified graph: vertex (true) or junction (false) based stretching.  Vertex based stretching modifies features to the nearest vertex(es), while junction based stretching will proportionally modify the feature to the nearest junction(s).

The VertexBasedStretching property should be used to set or get the stretching model when edits are being made to the workspace using the IWorkspaceEdit interface.  During an edit session in the Editor, VertexBasedStretching can be used to get the stretching model but cannot be used to set the stretching model.  In this case IEditProperties::StretchGeometry overwrites VertexBasedStretching and should be used to set the desired stretching model.

 

Specified by:
isVertexBasedStretching in interface IGraph
Returns:
The vertexBased
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVertexBasedStretching

public void setVertexBasedStretching(boolean vertexBased)
                              throws java.io.IOException,
                                     AutomationException
Description copied from interface: IGraph
The stretching model to nearest vertex (true) or junction (false) based stretching.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setVertexBasedStretching in interface IGraph
Parameters:
vertexBased - The vertexBased (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getErrorTable

public ITable getErrorTable()
                     throws java.io.IOException,
                            AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
The error table currently associated with the geometric network. This property will return nothing unless it has been set within the running application.

Supported Platforms

Windows, Solaris, Linux

Description

The ErrorTable property provides the ability to either return the error table if it exists or associate an error table with the geometric network, after it has been created with the IGeometricNetworkErrorDetection::CreateErrorTable method.  Once the error table is created, it can be associated with, or retrieved from, a geometric network. However, this association will not be persisted—the association is only for the lifetime of the geometric network component instance. The user is responsible for managing this error table.

Specified by:
getErrorTable in interface IGeometricNetworkErrorDetection
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setErrorTable

public void setErrorTable(ITable errorTable)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
The error table currently associated with the geometric network. This property will return nothing unless it has been set within the running application.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setErrorTable in interface IGeometricNetworkErrorDetection
Parameters:
errorTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createSelectionSetFromErrorTable

public ISet createSelectionSetFromErrorTable()
                                      throws java.io.IOException,
                                             AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
Returns a set of selection sets of the features in the geometric network Error Table.

Supported Platforms

Windows, Solaris, Linux

Description

A set of selection sets may be created from all the entries found in the error table that are currently associated with a geometric network via the CreateSelectionSetFromErrorTable method. This is a mechanism that can be used to create instances of the network features that are listed in the error table.

Specified by:
createSelectionSetFromErrorTable in interface IGeometricNetworkErrorDetection
Returns:
A reference to a com.esri.arcgis.system.ISet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createErrorTable

public void createErrorTable(java.lang.String name,
                             ITable[] errorTable)
                      throws java.io.IOException,
                             AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
Creates a non-versioned table that can be used to persist error information.

Supported Platforms

Windows, Solaris, Linux

Description

The CreateErrorTable method is used to create a table that can be used to persist information related to inconsistent network features (using a fixed table schema) with the specified name. Such network error information can only be persisted by the geometric network in a table with this schema. This table is user managed and should remain unversioned.

Specified by:
createErrorTable in interface IGeometricNetworkErrorDetection
Parameters:
name - The name (in)
errorTable - A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

detectNetworkErrors

public void detectNetworkErrors(int errorType,
                                IEnvelope areaOfInterest,
                                ISet selectionSets,
                                ISet[] problemSelectionSets)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
The features in the geometric network with connectivity problems.

Supported Platforms

Windows, Solaris, Linux

Description

The DetectNetworkErrors method is used to detect the different possible types of network connectivity and geometry problems.  While the DetectNetworkErrors method will discover network features with inconsistent connectivity, it does not perform an exhaustive verification.  The IGeometricNetworkConnectivity2::CheckandRepairConnectivity method performs a more exhaustive check for network inconsistencies.

The DetectNetworkErrors method takes a number of arguements, the first being the type of network error to detect. This arguement corresponds with a value from the esriNetworkErrorType enumeration.  Use esriNETConnectivity to verify network connectivity and esriNETGeometry to verify network feature geometry.

The second argument is an IEnvelope object defining the area of interest, any feature within or intersecting the envelope will be verified.  The third arguement is a selection set of features.  If Nothing is supplied for an area of interest, the features in the selection set will be verified.  Finally, any features identified as invalid will be returned in a selection set.

Specified by:
detectNetworkErrors in interface IGeometricNetworkErrorDetection
Parameters:
errorType - A com.esri.arcgis.geodatabase.esriNetworkErrorType constant (in)
areaOfInterest - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
selectionSets - A reference to a com.esri.arcgis.system.ISet (in)
problemSelectionSets - A reference to a com.esri.arcgis.system.ISet (out: use single element array)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

deleteNetworkElements

public void deleteNetworkElements(ISet selectionSets)
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IGeometricNetworkErrorDetection
Deletes the network elements associated with the specified network features.

Supported Platforms

Windows, Solaris, Linux

Description

The DeleteNetworkElements method takes an ISet of ISelectionSets. All of the network features contained in the various selection sets will have their network elements deleted from the logical network. The primary reason why one would want to do this is to correct the geometry of an edge feature that was loaded with invalid polyline geometry.  This method should be called on valid network features.

Specified by:
deleteNetworkElements in interface IGeometricNetworkErrorDetection
Parameters:
selectionSets - A reference to a com.esri.arcgis.system.ISet (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

checkAndRepairConnectivity

public void checkAndRepairConnectivity(boolean checkOnly,
                                       java.lang.String logFilePath,
                                       ISet[] errorSelectionSets,
                                       boolean[] hasInternalInconsistencies,
                                       IRepairConnectivityProgress pRepairConnectivityProgress)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: IGeometricNetworkConnectivity2
Checks and optionally repairs connectivity.

Supported Platforms

Windows, Solaris, Linux

Description

The CheckandRepairConnectivity method will check for and optionally repair an assortment of connectivity errors within a geometric network.  In contrast to RebuildConnectivity2, CheckandRepairConnectivity will only repair those features who have been identified as having inconsistent connectivity.

For a geometric network in a Personal or File Geodatabase, CheckandRepairConnectivity will work against the entire geometric network.  For geometric networks in an ArcSDE Geodatabase, CheckandRepairConnectivity will work against the geometric network connectivity within the version currently being edited.  Types of network inconsistencies that CheckandRepairConnectivity will discover and repair include:

- network features missing element IDs
- network features with more than 1 element ID
- an element ID that references a deleted feature
- inconsistent connectivity

CheckandRepairConnectivity takes five mandatory arguments.  The first, checkOnly is a boolean that specifies whether errors will be repaired or not.  A value of False designates that errors are corrected.  If True is specified CheckandRepairConnectivity will run in Check Only mode in which errors will be discovered but not repaired.

The second argument dictates whether CheckandRepairConnectivity will produce a log file listing the feature class and Object ID of all the network errors that were discovered and repaired.  For a geometric network called, 'MyNetwork' and a supplied path of 'D:/Temp/Logifles/' the logfilePath arguement would appear as; "D:/Temp/Logifles/MyNetwork.txt".  To run CheckandRepairConnectivity with no log file, specify an empty string for the logfilePath argument.

The third argument is a Set object that contains references to repaired features. errorSelectionSets can be used to determine if any features were found to have inconsistencies and repaired. The set object will contain a reference to each feature class which contains repaired features.

The fourth argument is a boolean which returns the state of the logical network. If the logical network contains internal inconsistencies, that is, inconsistencies which do not reference existing features within the geometric network, hasInternalInconsistencies will return True, otherwise, it will return False.

The fifth argumnt is an IRepairConnectivityProgress object that is used to retrieve any warnings generated by CheckandRepairConnectivity. During the process of repairing network connectivity, CheckandRepairConnectivity may perform actions that discover network features that require further review. If any warnings are encountered during repair of the network, they can be accessed using IRepairConnectivityProgress::Warnings. The type of warning, feature class and Object ID of the feature is included. Types of warnings include:

- creation of new orphan junctions
- invalid geometries
- coincident junctions
- coincident vertices

Specified by:
checkAndRepairConnectivity in interface IGeometricNetworkConnectivity2
Parameters:
checkOnly - The checkOnly (in)
logFilePath - The logFilePath (in)
errorSelectionSets - A reference to a com.esri.arcgis.system.ISet (out: use single element array)
hasInternalInconsistencies - The hasInternalInconsistencies (out: use single element array)
pRepairConnectivityProgress - A reference to a com.esri.arcgis.geodatabase.IRepairConnectivityProgress (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rebuildConnectivity2

public void rebuildConnectivity2(IEnvelope pIncrementalRebuildArea)
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IGeometricNetworkConnectivity2
Incrementally rebuilds connectivity for features within and intersecting the specified envelope. Version 2.

Supported Platforms

Windows, Solaris, Linux

Description

If network connectivity errors are found within the geometric network, they can generally be corrected through the use of the RebuildConnectivity2 method.  This method takes an envelope which should contain the network features for which connectivity will be rebuilt.  The RebuildConnectivity2 method does not check for invalid connectivity, it will remove and then rebuild the connectivity of any feature contained within or intersecting the specified envelope. 

RebuildConnectivity2 should only be used to rebuild the connectivity of features whose invalid geometry has been repaired or to rebuild inconsistent connectivity on features.  RebuildConnectivity2 is not as computationally expensive as IGeometricNetworkConnectivity::RebuildConnectivity and as such, can be used on a larger number of network features.  However, the size of the envelope supplied to RebuildConnectivity2 should still be taken into consideration.  It is generally faster to call RebuildConnectivity2 on small individual areas rather than one large area that encompasses the smaller areas.

RebuildConnectivity should not be used to establish connectivity between network features. To establish connectivity, use INetworkFeature::Connect.

Remarks

If RebuildConnectivity2 encounters an edge feature that is missing a junction on an endpoint, it will insert a new orphan junction at the endpoint of the edge feature.

Specified by:
rebuildConnectivity2 in interface IGeometricNetworkConnectivity2
Parameters:
pIncrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

rebuildConnectivity

public void rebuildConnectivity(IEnvelope pIncrementalRebuildArea)
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IGeometricNetworkConnectivity
Incrementally rebuilds connectivity for features within and intersecting the specified envelope.

Supported Platforms

Windows, Solaris, Linux

Description

If network connectivity errors are found within the geometric network, they can generally be corrected through the use of the RebuildConnectivity method.  This method takes an envelope which should contain the network features for which connectivity should be rebuilt.  The RebuildConnectivity method does not check for invalid connectivity, it will remove and then rebuild the connectivity of any feature contained within or intersecting the specified envelope.  It is a computationally expensive operation and can take a significant amount of time to complete if executed against a large number of network features.  The envelope should also be as small as possible, it is faster to call RebuildConnectivity on two small areas rather than one large area that encompasses both smaller areas. RebuildConnectivity should not be used to establish connectivity between valid network features. To establish connectivity, use INetworkFeature::Connect .

There are instances when RebuildConnectivity will not be able to rebuid the connectivity for network features. For this reason, IGeometricNetworkConnectivity::RebuildConnectivity2 should be used in place of RepairConnectivity .

 

Specified by:
rebuildConnectivity in interface IGeometricNetworkConnectivity
Parameters:
pIncrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isReduceNetworkConflicts

public boolean isReduceNetworkConflicts()
                                 throws java.io.IOException,
                                        AutomationException
Description copied from interface: IGeometricNetworkReconcileProperties
Returns true if the reconcile plan for the network reduces network conflicts

Remarks

ReduceNetworkConflicts will return a boolean value indicating the reconcile strategy applied to the geometric network.  The default value is false, indicating that the standard reconcile strategy will be applied.  An exclusive schema lock must be obtained before changing the ReduceNetworkConflicts property.  See the ISchemaLock interface for information on listing existing schema locks and obtaining an exclusive schema lock.

This property is set at the geometric network level, which means that all clients will reconcile using the same strategy.

Specified by:
isReduceNetworkConflicts in interface IGeometricNetworkReconcileProperties
Returns:
The reduceNetworkConflicts
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setReduceNetworkConflicts

public void setReduceNetworkConflicts(boolean reduceNetworkConflicts)
                               throws java.io.IOException,
                                      AutomationException
Description copied from interface: IGeometricNetworkReconcileProperties
Returns true if the reconcile plan for the network reduces network conflicts

Specified by:
setReduceNetworkConflicts in interface IGeometricNetworkReconcileProperties
Parameters:
reduceNetworkConflicts - The reduceNetworkConflicts (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

getMetadata

public IPropertySet getMetadata()
                         throws java.io.IOException,
                                AutomationException
Description copied from interface: IMetadata
The PropertySet containing metadata.

Supported Platforms

Windows, Solaris, Linux

Remarks

The variable to hold the data must be of IPropertySet data type.

The metadata property is frequently used to save, or update, changes to metadata documents that have taken place through methods available on the IPropertySet, IXmlPropertySet, and/or IXmlPropertySet2 interfaces.

Specified by:
getMetadata in interface IMetadata
Returns:
A reference to a com.esri.arcgis.system.IPropertySet
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

setMetadata

public void setMetadata(IPropertySet ppPropertySet)
                 throws java.io.IOException,
                        AutomationException
Description copied from interface: IMetadata
The PropertySet containing metadata.

Supported Platforms

Windows, Solaris, Linux

Specified by:
setMetadata in interface IMetadata
Parameters:
ppPropertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

synchronize

public void synchronize(int action,
                        int interval)
                 throws java.io.IOException,
                        AutomationException
Description copied from interface: IMetadata
Updates metadata with the current properties; may create metadata if it doesn't already exist.

Supported Platforms

Windows, Solaris, Linux

Description

The Synchronize method is used to extract metadata properties from an object and write those properties to the metadata .xml. Depending on the value of the esriMetaSyncAction, the Synchronize method may generate a new set of metadata if it doesn't already exist.

Specified by:
synchronize in interface IMetadata
Parameters:
action - A com.esri.arcgis.geodatabase.esriMetadataSyncAction constant (in)
interval - The interval (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isCanEditMetadata

public boolean isCanEditMetadata()
                          throws java.io.IOException,
                                 AutomationException
Description copied from interface: IMetadataEdit
Indicates if metadata can be edited.

Supported Platforms

Windows, Solaris, Linux

Remarks

This property is available to those objects that support metadata.

Specified by:
isCanEditMetadata in interface IMetadataEdit
Returns:
The pCanEdit
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.

interfaceSupportsErrorInfo

public void interfaceSupportsErrorInfo(GUID riid)
                                throws java.io.IOException,
                                       AutomationException
Description copied from interface: ISupportErrorInfo

Supported Platforms

Windows, Solaris, Linux

Description

Indicates whether the interface supports IErrorInfo.

Specified by:
interfaceSupportsErrorInfo in interface ISupportErrorInfo
Parameters:
riid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
Throws:
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.