Exercise 4a: Editing shared features with a map topology
About map topology
Many vector datasets contain features that share geometry. Features can share edges—for example, line segments—or nodes, the points at the ends of segments. For example, watershed polygons might have common edges along ridgelines, and lake polygons might share their shoreline edges with land-cover polygons. Three watersheds might share a single node at a mountain peak, and three river-reach features might share a node at a confluence. The Topology toolbar contains tools for working with topologically related features.
A map topology creates topological relationships between the parts of features that are coincident. You can specify the feature classes that you want to participate in the map topology. You can also choose the distance, or cluster tolerance, that defines how close together edges and vertices must be in order to be considered coincident. You can simultaneously edit shared edges and nodes with the Topology Edit tool when you create a map topology.
ArcView users can create and edit a map topology, which is the type used in this exercise. ArcEditor and ArcInfo users also can edit geodatabase topology, which defines a set of rules about the relationships between feature classes in a feature dataset. You will edit a geodatabase topology in another exercise.
Creating a map topology
Start ArcMap and display the Editor, Snapping, and Topology toolbars.
In this exercise, you will update multiple watershed features in two feature classes by creating a map topology.
- Click the Open button on the Standard toolbar.
- Navigate to the MapTopology.mxd map document located in the \Editing\Topology directory where you installed the tutorial data. (C:\ArcGIS\ArcTutor is the default location.)
- Click the map and click Open.
- If you still have the map document open from the previous exercise and are prompted to close it, you can do so without saving your changes.
- Click the Editor menu on the Editor toolbar and click Start Editing.
- Close the Create Features window. You will not need it in this exercise.
Click Bookmarks and click 3 Region Divide.
The map zooms to the bookmarked area. Now you can see labels for the smaller watersheds.
- Click the Map Topology button on the Topology toolbar.
- Click Select All. You want all the features on the map from both feature classes to participate in the map topology.
- Click OK.
This map contains two feature classes. Hydro_region contains polygon features representing three large hydrologic regions in the southwestern United States. Note that part of the Great Basin regional watershed has been omitted from the tutorial dataset. Hydro_units contains polygon features representing smaller watersheds within these regions. You can see the features in the Hydro_units feature class because the Hydro_region features are partly transparent.
The regional data was derived by dissolving the smaller hydrologic units, so the boundaries of the features in Hydro_region are already coincident with the boundaries of the smaller watersheds. In this exercise, you will create a map topology to allow you to edit the vertices that make up a shared edge and move a node that defines the intersection of multiple features.
Finding shared features
Now you will start editing the map topology using the Topology Edit tool to select an edge and determine which features share it. You can use the Show Shared Features dialog box to investigate which features share a given topology edge or node and control whether edits that you make to a given topology element will be shared by certain features.
- Click the Topology Edit tool on the Topology toolbar.
- Click the edge that is shared by the East Fork Sevier. Utah. polygon (#16030002) and Kanab. Arizona, Utah. polygon (#15010003).
- Click Show Shared Features on the Topology toolbar.
- Double-click Hydro_units. The plus sign changes to a minus, and two more branches expand below Hydro_units. Each of these represents a hydrologic unit feature that shares this edge.
Click East Fork Sevier. Utah. (51).
Feature number 51 in the Hydro_units feature class, the East Fork Sevier hydrologic unit, flashes on the map.
Double-click Hydro_region and click Great Basin Region (1).
Feature number 1 in the Hydro_region feature class, the Great Basin region, flashes on the map.
- Close the Shared Features dialog box.
Editing a shared edge in a map topology
Now that you have seen that the features you need to update share this edge, you'll update the boundary of the watersheds to better fit the terrain.
Check Hillshaded_terrain.sid in the ArcMap table of contents to turn on the image.
- Press and hold the Z key. The pointer becomes the Zoom In tool.
- While pressing the Z key, drag a box around the selected edge.
Double-click the edge. Now you can see the vertices (in green) that define the shape of this edge.
Move the pointer over the second vertex from the eastern end of the edge. When the pointer changes to a box with four arrows, click the vertex, drag it toward the northwest, then drop it on the blue guideline.
- Click once on the map, off the edge, to deselect it. Then click the edge again to reselect it.
Reshaping a shared edge in a map topology
- Ensure edge snapping is enabled. If it is not, click Edge Snapping on the Snapping toolbar.
- Click the Reshape Edge tool on the Topology toolbar.
Move the pointer over the edge where the selected topology edge and the blue guideline begin to diverge.
- Click the edge to begin an edit sketch.
- Continue adding vertices along the guideline. You can hold down the SPACEBAR key to turn off snapping temporarily if you are having difficulty placing the reshape line where you want it along the blue line.
- Make sure that the last vertex you add to the sketch snaps to the edge near the vertex you moved.
- Right-click anywhere on the map and click Finish Sketch.
Moving a shared node in a map topology
Now that you've adjusted the edge shared by the watershed boundaries, another problem with the existing data needs to be fixed. The node at the east end of the edge is the point where the Great Basin, Upper Colorado, and Lower Colorado region watersheds come together. You'll move this shared node by a specified number of meters.
- Click the Topology Edit tool on the Topology toolbar.
- Click once on the map, off the edge, to deselect it.
- Press and hold the N key. This temporarily limits the selectable topology elements to nodes.
Drag a box around the node while holding down the N key.
- Right-click and click Move.
Type 460 and 410 in the x and y boxes, respectively, and press ENTER.
The node is moved to the new location, and all the features that share it in the map topology are updated. You can also move the node by dragging it as you move the vertex of the topology edge.
- Click the Editor menu on the Editor toolbar and click Stop Editing.
- Click Yes to save your edits.
- Close ArcMap if you are done working with the tutorial. You do not need to save the map document.
- To continue to the next exercise, click Exercise 4b: Using geodatabase topology to fix line errors.
In this exercise, you learned how to create a map topology and how to use the Topology Edit tool to edit multiple features that share edges and nodes. The map topology allowed you to maintain the common boundary between the features while simultaneously editing four, then six, features in two different feature classes. The Topology Edit tool and the topology editing tasks can also be used to edit the edges and nodes in a geodatabase topology.