TopologyQueries Command

Created:9/29/2002
Description:

The TopologyQueries command allows for the selection of features based on their topological relationships to other features. The command allows for queries such as select the features that share edges with the selected features, or select lines that don't have polygons on the left or right.

How to use:
  1. In the Customize dialog, click on 'Add from file' and select this sample's dll.
  2. Under the Commands tab of the Customize dialog, select the TopologyQueries Command from the 'Developer Samples' category, and drag it on to a toolbar (or onto the Selection pulldown). Dismiss the Customize dialog.
  3. Click on the command to bring up a dialog for making selections. You do not need to be editing to use the tool.
  4. Choose your options and click on the Apply button to execute the query.
  5. In most cases you will want to click on the "Use selected features" and/or "Select only within the visible extent" options to limit the selection.

Application:
ArcMap

Requires: Topology data

Minimum ArcGIS Version Required: 8.3

Difficulty: Advanced


Visual Basic
File Description
TopoQuery.cls Class containing the code for the TopoQueries Command.
frmTopoQuery.frm Form for performing topological queries.
TopoQueryPrj.vbp The project file for the TopoQueries Command.


Key CoClasses: FeatureClass, Topology, TopologyEdge, TopologyGraph
Key Interfaces: IEnumTopologyParent, IFeatureClass, IMapTopology, ITopology, ITopologyEdge, ITopologyGraph
Key Members: IEnumTopologyParent::Next, IFeatureClass::Update, IMapTopology::Cache, ITopology::Cache, IMapTopology::FindClass, ITopologyEdge::LeftParents, ITopologyEdge::Parents, ITopologyEdge::RightParents, ITopologyGraph::Build, ITopologyGraph::GetParentEdges