|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.geodatabase.GeometricNetwork
ESRI Geometric Network object.
| 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 |
public GeometricNetwork(java.lang.Object obj)
throws java.io.IOException
obj to GeometricNetwork. *
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;
java.io.IOException - if there are interop problems| Method Detail |
public IDataset getAsIDataset()
public IDatasetEdit getAsIDatasetEdit()
public IGeoDataset getAsIGeoDataset()
public INativeTypeInfo getAsINativeTypeInfo()
public ISchemaLock getAsISchemaLock()
public IFeatureClassContainer getAsIFeatureClassContainer()
public IGeometricNetwork getAsIGeometricNetwork()
public IGeometricNetworkErrorDetection getAsIGeometricNetworkErrorDetection()
public IGeometricNetworkConnectivity2 getAsIGeometricNetworkConnectivity2()
public IGeometricNetworkReconcileProperties getAsIGeometricNetworkReconcileProperties()
public IMetadata getAsIMetadata()
public IMetadataEdit getAsIMetadataEdit()
public ISupportErrorInfo getAsISupportErrorInfo()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getName()
throws java.io.IOException,
AutomationException
IDataset
getName in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IName getFullName()
throws java.io.IOException,
AutomationException
IDataset
getFullName in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getBrowseName()
throws java.io.IOException,
AutomationException
IDataset
getBrowseName in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setBrowseName(java.lang.String name)
throws java.io.IOException,
AutomationException
IDataset
setBrowseName in interface IDatasetname - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getType()
throws java.io.IOException,
AutomationException
IDataset
getType in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getCategory()
throws java.io.IOException,
AutomationException
IDatasetIDataset::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.
getCategory in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumDataset getSubsets()
throws java.io.IOException,
AutomationException
IDatasetThe Subsets property returns other Dataset objects contained in this dataset.
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.
getSubsets in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IWorkspace getWorkspace()
throws java.io.IOException,
AutomationException
IDatasetThe Workspace property returns the containing workspace for this dataset.
getWorkspace in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IPropertySet getPropertySet()
throws java.io.IOException,
AutomationException
IDatasetThe 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.
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.
getPropertySet in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean canCopy()
throws java.io.IOException,
AutomationException
IDatasetThe 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:
canCopy in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IDataset copy(java.lang.String copyName,
IWorkspace copyWorkspace)
throws java.io.IOException,
AutomationException
IDatasetIDataset::Copy does not support the copying of Graph objects such as a Geometric Network.
copy in interface IDatasetcopyName - The copyName (in)copyWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.GeoDBDataTransfer
public boolean canDelete()
throws java.io.IOException,
AutomationException
IDatasetThe 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.
canDelete in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete()
throws java.io.IOException,
AutomationException
IDatasetCertain feature classes, such as network and topology feature classes, cannot be deleted until their containing objects are deleted.
delete in interface IDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean canRename()
throws java.io.IOException,
AutomationException
IDatasetThe 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.
canRename in interface IDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void rename(java.lang.String name)
throws java.io.IOException,
AutomationException
IDatasetIDataset::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.
rename in interface IDatasetname - The name (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isBeingEdited()
throws java.io.IOException,
AutomationException
IDatasetEdit
isBeingEdited in interface IDatasetEditjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISpatialReference getSpatialReference()
throws java.io.IOException,
AutomationException
IGeoDatasetThis 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.
getSpatialReference in interface IGeoDatasetjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getExtent()
throws java.io.IOException,
AutomationException
IGeoDatasetThe 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.
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.
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.
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.
getExtent in interface IGeoDatasetAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public INativeType getNativeType()
throws java.io.IOException,
AutomationException
INativeTypeInfo
getNativeType in interface INativeTypeInfoAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void changeSchemaLock(int schemaLock)
throws java.io.IOException,
AutomationException
ISchemaLock
changeSchemaLock in interface ISchemaLockschemaLock - A com.esri.arcgis.geodatabase.esriSchemaLock constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getCurrentSchemaLocks(IEnumSchemaLockInfo[] schemaLockInfo)
throws java.io.IOException,
AutomationException
ISchemaLockReturns 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.
getCurrentSchemaLocks in interface ISchemaLockschemaLockInfo - A reference to a com.esri.arcgis.geodatabase.IEnumSchemaLockInfo (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureClass esri_getClass(int classIndex)
throws java.io.IOException,
AutomationException
IFeatureClassContainer
esri_getClass in interface IFeatureClassContainerclassIndex - The classIndex (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureClass getClassByID(int iD)
throws java.io.IOException,
AutomationException
IFeatureClassContainerEach 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.
getClassByID in interface IFeatureClassContaineriD - The iD (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFeatureClass getClassByName(java.lang.String name)
throws java.io.IOException,
AutomationException
IFeatureClassContainer
getClassByName in interface IFeatureClassContainername - The name (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getClassCount()
throws java.io.IOException,
AutomationException
IFeatureClassContainer
getClassCount in interface IFeatureClassContainerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumFeatureClass getClasses()
throws java.io.IOException,
AutomationException
IFeatureClassContainerThere is no guarentee on the order that the feature classes will be returned.
getClasses in interface IFeatureClassContainerjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumFeatureClass getClassesByNetworkAncillaryRole(int role)
throws java.io.IOException,
AutomationException
IGeometricNetworkThe 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.
getClassesByNetworkAncillaryRole in interface IGeometricNetworkrole - A com.esri.arcgis.geodatabase.esriNetworkClassAncillaryRole constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void establishFlowDirection()
throws java.io.IOException,
AutomationException
IGeometricNetwork
establishFlowDirection in interface IGeometricNetworkAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isValidFlowDirection()
throws java.io.IOException,
AutomationException
IGeometricNetworkValidFlowDirection 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.
isValidFlowDirection in interface IGeometricNetworkAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumFeatureClass getClassesByType(int type)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getClassesByType in interface IGeometricNetworktype - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISimpleJunctionFeature createOrphanFeature(IPoint location,
int[] orphanEID)
throws java.io.IOException,
AutomationException
IGeometricNetworkThe 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.
createOrphanFeature in interface IGeometricNetworklocation - A reference to a com.esri.arcgis.geometry.IPoint (in)orphanEID - The orphanEID (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getEdgeElement(IPoint location)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getEdgeElement in interface IGeometricNetworklocation - A reference to a com.esri.arcgis.geometry.IPoint (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IInvalidArea getInvalidArea()
throws java.io.IOException,
AutomationException
IGeometricNetwork
getInvalidArea in interface IGeometricNetworkjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setInvalidAreaByRef(IInvalidArea invalidArea)
throws java.io.IOException,
AutomationException
IGeometricNetwork
setInvalidAreaByRef in interface IGeometricNetworkinvalidArea - A reference to a com.esri.arcgis.geodatabase.IInvalidArea (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getJunctionElement(IPoint location)
throws java.io.IOException,
AutomationException
IGeometricNetworkThe 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.
getJunctionElement in interface IGeometricNetworklocation - A reference to a com.esri.arcgis.geometry.IPoint (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INetwork getNetwork()
throws java.io.IOException,
AutomationException
IGeometricNetwork
getNetwork in interface IGeometricNetworkAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public int getNetworkType()
throws java.io.IOException,
AutomationException
IGeometricNetwork
getNetworkType in interface IGeometricNetworkAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureClass getOrphanJunctionFeatureClass()
throws java.io.IOException,
AutomationException
IGeometricNetwork
getOrphanJunctionFeatureClass in interface IGeometricNetworkjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addRule(IConnectivityRule rule)
throws java.io.IOException,
AutomationException
IGeometricNetwork
addRule in interface IGeometricNetworkrule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void deleteRule(IConnectivityRule rule)
throws java.io.IOException,
AutomationException
IGeometricNetwork
deleteRule in interface IGeometricNetworkrule - A reference to a com.esri.arcgis.geodatabase.IConnectivityRule (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumRule getRules()
throws java.io.IOException,
AutomationException
IGeometricNetwork
getRules in interface IGeometricNetworkjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumRule getRulesByClassAndSubtype(int classID,
int subtypeCode)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getRulesByClassAndSubtype in interface IGeometricNetworkclassID - The classID (in)subtypeCode - The subtypeCode (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumFeature searchForNetworkFeature(IPoint location,
int type)
throws java.io.IOException,
AutomationException
IGeometricNetworkThe 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.
searchForNetworkFeature in interface IGeometricNetworklocation - A reference to a com.esri.arcgis.geometry.IPoint (in)type - A com.esri.arcgis.geodatabase.esriFeatureType constant (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGeometry getGeometryForEdgeEID(int edgeEID)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getGeometryForEdgeEID in interface IGeometricNetworkedgeEID - The edgeEID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IGeometry getGeometryForJunctionEID(int junctionEID)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getGeometryForJunctionEID in interface IGeometricNetworkjunctionEID - The junctionEID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public INetworkFeature getNetworkFeature(INetElementDescription networkElement)
throws java.io.IOException,
AutomationException
IGeometricNetwork
getNetworkFeature in interface IGeometricNetworknetworkElement - A reference to a com.esri.arcgis.geodatabase.INetElementDescription (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void spliceSimpleJunction(ISimpleJunctionFeature junction,
int junctionEID,
IGeometry geometry,
boolean forceConnectivity)
throws java.io.IOException,
AutomationException
IGeometricNetwork
spliceSimpleJunction in interface IGeometricNetworkjunction - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addJunctionWithSubsumption(ISimpleJunctionFeature pJunction,
int junctionEID,
ISimpleJunctionFeature pSubsumedJunction)
throws java.io.IOException,
AutomationException
IGeometricNetworkThe 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.
addJunctionWithSubsumption in interface IGeometricNetworkpJunction - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void add(IFeature newFeature)
throws java.io.IOException,
AutomationException
IGraphThe 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
add in interface IGraphnewFeature - A reference to a com.esri.arcgis.geodatabase.IFeature (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void addFeatureClass(IFeatureClass featureClass,
java.lang.String enabledFieldName,
int role,
java.lang.String ancillaryRoleFieldName)
throws java.io.IOException,
AutomationException
IGraph
addFeatureClass in interface IGraphfeatureClass - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void deleteSet(ISet featuresToDelete)
throws java.io.IOException,
AutomationException
IGraph
deleteSet in interface IGraphfeaturesToDelete - A reference to a com.esri.arcgis.system.ISet (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IFeatureDataset getFeatureDataset()
throws java.io.IOException,
AutomationException
IGraphReturns a reference to the feature dataset in which the graph exists.
getFeatureDataset in interface IGraphjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDisplayFeedback getDisplayFeedback(IFeature feature,
ISet features,
IPoint point)
throws java.io.IOException,
AutomationException
IGraph
getDisplayFeedback in interface IGraphfeature - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void init(IFeatureDataset dataset,
int graphID,
java.lang.String graphName,
boolean buildNormalizedTables,
boolean createGraph)
throws java.io.IOException,
AutomationException
IGraphThe IGraph::Init method is called internally during the process of creating a Geometric Network and should be called independently.
init in interface IGraphdataset - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IEnumFeature merge(IEnumFeature mergingFeatures)
throws java.io.IOException,
AutomationException
IGraphThe Merge method is not currently implemented.
merge in interface IGraphmergingFeatures - A reference to a com.esri.arcgis.geodatabase.IEnumFeature (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public ISet split(IEdgeFeature splittingEdge,
IGeometry point)
throws java.io.IOException,
AutomationException
IGraph
split in interface IGraphsplittingEdge - A reference to a com.esri.arcgis.geodatabase.IEdgeFeature (in)point - A reference to a com.esri.arcgis.geometry.IGeometry (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void transformSet(ISet features,
int type,
IAffineTransformation2D tranformation)
throws java.io.IOException,
AutomationException
IGraphTransformSet will maintain connectivity between network features. The type of stretching that is employed during TransformSet can be changed using the VertexBasedStretching property.
transformSet in interface IGraphfeatures - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isVertexBasedStretching()
throws java.io.IOException,
AutomationException
IGraphVertexBasedStretching 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.
isVertexBasedStretching in interface IGraphjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVertexBasedStretching(boolean vertexBased)
throws java.io.IOException,
AutomationException
IGraph
setVertexBasedStretching in interface IGraphvertexBased - The vertexBased (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITable getErrorTable()
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetectionThe 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.
getErrorTable in interface IGeometricNetworkErrorDetectionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setErrorTable(ITable errorTable)
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetection
setErrorTable in interface IGeometricNetworkErrorDetectionerrorTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISet createSelectionSetFromErrorTable()
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetectionA 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.
createSelectionSetFromErrorTable in interface IGeometricNetworkErrorDetectionjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void createErrorTable(java.lang.String name,
ITable[] errorTable)
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetectionThe 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.
createErrorTable in interface IGeometricNetworkErrorDetectionname - The name (in)errorTable - A reference to a com.esri.arcgis.geodatabase.ITable (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void detectNetworkErrors(int errorType,
IEnvelope areaOfInterest,
ISet selectionSets,
ISet[] problemSelectionSets)
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetectionThe 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.
detectNetworkErrors in interface IGeometricNetworkErrorDetectionerrorType - 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)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void deleteNetworkElements(ISet selectionSets)
throws java.io.IOException,
AutomationException
IGeometricNetworkErrorDetectionThe 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.
deleteNetworkElements in interface IGeometricNetworkErrorDetectionselectionSets - A reference to a com.esri.arcgis.system.ISet (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void checkAndRepairConnectivity(boolean checkOnly,
java.lang.String logFilePath,
ISet[] errorSelectionSets,
boolean[] hasInternalInconsistencies,
IRepairConnectivityProgress pRepairConnectivityProgress)
throws java.io.IOException,
AutomationException
IGeometricNetworkConnectivity2The 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
checkAndRepairConnectivity in interface IGeometricNetworkConnectivity2checkOnly - 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)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void rebuildConnectivity2(IEnvelope pIncrementalRebuildArea)
throws java.io.IOException,
AutomationException
IGeometricNetworkConnectivity2If 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.
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.
rebuildConnectivity2 in interface IGeometricNetworkConnectivity2pIncrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void rebuildConnectivity(IEnvelope pIncrementalRebuildArea)
throws java.io.IOException,
AutomationException
IGeometricNetworkConnectivityIf 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 .
rebuildConnectivity in interface IGeometricNetworkConnectivitypIncrementalRebuildArea - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isReduceNetworkConflicts()
throws java.io.IOException,
AutomationException
IGeometricNetworkReconcilePropertiesReduceNetworkConflicts 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.
isReduceNetworkConflicts in interface IGeometricNetworkReconcilePropertiesAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setReduceNetworkConflicts(boolean reduceNetworkConflicts)
throws java.io.IOException,
AutomationException
IGeometricNetworkReconcileProperties
setReduceNetworkConflicts in interface IGeometricNetworkReconcilePropertiesreduceNetworkConflicts - The reduceNetworkConflicts (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public IPropertySet getMetadata()
throws java.io.IOException,
AutomationException
IMetadataThe 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.
getMetadata in interface IMetadataAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setMetadata(IPropertySet ppPropertySet)
throws java.io.IOException,
AutomationException
IMetadata
setMetadata in interface IMetadatappPropertySet - A reference to a com.esri.arcgis.system.IPropertySet (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void synchronize(int action,
int interval)
throws java.io.IOException,
AutomationException
IMetadataThe 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.
synchronize in interface IMetadataaction - A com.esri.arcgis.geodatabase.esriMetadataSyncAction constant (in)interval - The interval (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanEditMetadata()
throws java.io.IOException,
AutomationException
IMetadataEditThis property is available to those objects that support metadata.
isCanEditMetadata in interface IMetadataEditAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void interfaceSupportsErrorInfo(GUID riid)
throws java.io.IOException,
AutomationException
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||