|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geodatabase.INetworkBuildProxy
public class INetworkBuildProxy
Provides access to members for changing the schema of a network dataset and building it.
The INetworkBuild interface is used to make schema edits to the network dataset; adding or removing of sources and attributes. Schema edits to the network dataset can be made two ways; directly adding or removing sources and attributes or by editing the data element and using the UpdateSchema method. The INetworkBuild interface is also the interface to use for building the network dataset.
Geodatabase network datasets can contain any number of edge, junction and turn sources. Geodatabase network datasets also contain a system junction source which is a system managed source that is used to manage connectivity within the network dataset. Shapefile network datasets can only contain one edge source, any number of turn sources, and the system junction source.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
INetworkBuildProxy()
|
|
INetworkBuildProxy(Object obj)
|
protected |
INetworkBuildProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addAttribute(INetworkAttribute attribute)
Adds the given attribute to the schema of the network dataset. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
void |
addSource(INetworkSource source)
Adds the given source to the schema of the network dataset. |
IEnvelope |
buildNetwork(IEnvelope areaToBuild)
Builds the network dataset for the given extent. |
void |
deleteAttribute(INetworkAttribute attribute)
Deletes the given attribute from the network dataset. |
void |
deleteSource(INetworkSource source)
Deletes the given source from the network dataset. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
updateSchema(IDENetworkDataset dataElement)
Updates the schema for the network dataset based upon the given data element. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public INetworkBuildProxy()
public INetworkBuildProxy(Object obj) throws IOException
IOException
protected INetworkBuildProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void addAttribute(INetworkAttribute attribute) throws IOException, AutomationException
The AddAttribute method is used to add an attribute to the network dataset. After calling AddAttribute, the network needs to be rebuilt in order to reflect the change.
addAttribute
in interface INetworkBuild
attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addSource(INetworkSource source) throws IOException, AutomationException
The AddSource method is used to add a feature class to the network dataset. Depending on the source being added to the network dataset, different properties may be specified. While turn sources require no additional parameters, edge and junction sources require a connectivity policy and group and optionally can have elevation fields defined.
Object classes, tables and non-simple feature classes, such as annotation, dimension, geometric network feature classes and feature classes already in a network dataset cannot be added to a network dataset. After calling AddSource, the network needs to be rebuilt in order to reflect the change.
addSource
in interface INetworkBuild
source
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteAttribute(INetworkAttribute attribute) throws IOException, AutomationException
DeleteAttribute removes the specified attribute from the network dataset. After calling DeleteAttribute, the network needs to be rebuilt.
deleteAttribute
in interface INetworkBuild
attribute
- A reference to a com.esri.arcgis.geodatabase.INetworkAttribute (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deleteSource(INetworkSource source) throws IOException, AutomationException
DeleteSource removes the specified source from the network dataset. The source will be removed from all the network attributes and directions for the network dataset. DeleteSource cannot be performed on the system junction source for the network dataset. After calling DeleteSource, the network needs to be rebuilt.
deleteSource
in interface INetworkBuild
source
- A reference to a com.esri.arcgis.geodatabase.INetworkSource (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void updateSchema(IDENetworkDataset dataElement) throws IOException, AutomationException
The UpdateSchema method should be used to make multiple schema changes to a network dataset in one operation. Use the Delete and Add methods for Attributes and Sources in order to make simple schema edits.
Use IDatasetComponent::DataElement to retrieve a copy of the data element for this network dataset. Make the changes to the data element copy, then call UpdateSchema to update the network dataset. The end user is responsible for ensuring the integrity of the data element when it’s supplied to the UpdateSchema method.
Certain operations are not allowed and will return an error when performed with the UpdateSchema method, these include:
updateSchema
in interface INetworkBuild
dataElement
- A reference to a com.esri.arcgis.geodatabase.IDENetworkDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope buildNetwork(IEnvelope areaToBuild) throws IOException, AutomationException
BuildNetwork builds the network dataset in the area specified by the areaToValidate envelope and returns the envelope of the validated area. If an empty envelope is supplied, BuildNetwork will return an empty validated area. The simplest way to build a Network Dataset is to pass in the envelope of the extent of the network dataset. Note that the network dataset must be rebuilt when edits are made to the underlying features or feature classes. Edits include:
Incremental rebuilds of the network dataset are not supported in ArcGIS 9 - the entire network must be rebuilt. If any envelope other than that of the Network Dataset extent is supplied, the entire network will still be built.
BuildNetwork must be performed outside of an edit session on shapefile or Geodatabase network datasets. During the process, the connectivity of features will be determined based on the connectivity policy and group settings and the elevation fields. The attributes defined on the network dataset will be populated within the logical network. Solve operations can still be performed on Network Datasets that have been edited since they have been built, however, the results are not guaranteed to be correct.
buildNetwork
in interface INetworkBuild
areaToBuild
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |