Nov 30, 2012

Editing annotation features

Exercise 3b: Editing annotation features

About editing annotation features
Now that the labels have been created, you will start an edit session and add the unplaced annotation features to the map. The Unplaced Annotation window lets you view unplaced annotation features in a table that can show all the unplaced annotation in the annotation feature classes on your map. You can filter the table to show annotation for a specific annotation class and choose whether to show annotation for the whole extent of the data or for the current visible extent. You can sort the table alphabetically by the unplaced annotation's text content or annotation class by clicking either the Text or Class column heading.

Placing unplaced annotation features
Prerequisite:
The Exercise3.mxd is open.

Steps:
1. Click the Editor menu on the Editor toolbar and click Start Editing.
2. Click the Editor menu on the Editor toolbar, point to Editing Windows, then click Unplaced Annotation.
3. On the Unplaced Annotation window, check the Draw box to display the unplaced annotation features on the map.
4. Click Search Now. A number of annotation features are listed in the table. If you scroll through the table, you can see there are unplaced annotation features from several annotation classes represented. You can also see some new annotation features outlined in red on the map. You see these unplaced annotation features because the Draw box is checked.
5. Click the Edit Annotation tool on the Editor toolbar.
6. Click the map, press and hold down the Z key, then click and drag a box around the small cluster of unplaced annotation features at the east side of the park. The Z key is the keyboard shortcut to zoom in. To pan to this area, you can press the C key. You can also navigate to the Zion Canyon bookmark.

  
 The Hillshade background layer has a visible scale range; when you zoom in closer than 1:85,000, it is no longer displayed. Setting a visible scale range is also a good idea for annotation feature classes, as they are most useful within the range of scales where they are legible. There is no need to spend time or—especially for multiuser geodatabases—network and database resources drawing annotation features when they cannot be read. You can set a visible scale range for a layer in ArcMap, or you can change the properties of the annotation feature class itself. The second method has the advantage that the annotation feature class will always be drawn within its visible scale range when it is added to a map.
7. Now that you have zoomed in to the cluster of unplaced annotation in the east side of the park, you are ready to start placing the unplaced annotation features. Click Search Now.
8. Right-click Birch Creek in the Text column and click Place Annotation. The Birch Creek annotation feature is placed. It is selected, so it has a blue outline instead of a red outline.

Making annotation follow along the edge of a feature
The annotation feature is straight and placed parallel to a segment of the stream feature. The other stream annotation features curve to follow the streams, so you will make this newly placed annotation feature follow the stream. You can make an annotation feature follow a line feature or the boundary of a polygon feature.

The Follow Feature Options dialog box allows you to specify how annotation will behave when it follows a feature.

Steps:
1. With the Edit Annotation tool, right-click the Birch Creek annotation feature, point to Follow, then click Follow Feature Options.
2. For Make annotation, click Curved.

  
3. For Constrain Placement, click the Side cursor is on button to constrain the placement of the annotation.
4. Type 100 in the Offset from feature text box. The annotation will be offset 100 meters from the stream.
5. Click OK.
6. Move the pointer over the stream feature just south of the Birch Creek annotation feature, rightclick, then click Follow This Feature. The stream feature flashes, and the annotation feature bends to follow the stream. The selected annotation feature follows any line feature that you right-click and tell it to follow using the Edit Annotation tool.
7. Place the pointer over the middle of the Birch Creek annotation feature. The pointer changes to the four-pointed Move Annotation pointer.

  
8. Drag the Birch Creek annotation feature along the stream feature. Press the L key as you drag the annotation if you need to flip its reading direction.

Stacking and rotating annotation
You have placed an annotation feature and made it follow another feature with the Edit Annotation tool. The Edit Annotation tool also allows you to make other edits to annotation features. Now that you have placed the annotation feature from the StreamsAnno feature class, you will place the other nearby annotation features.

Steps:
1. On the Unplaced Annotation window, click Grotto Springs, then right-click it and click Pan to Annotation.
2. Press the SPACEBAR, which is the keyboard shortcut to place a selected annotation feature. The Grotto Springs annotation feature is placed.

  
3. Right-click the feature on the map and click Stack. The Grotto Springs annotation feature is split at the space in the text, and the word Grotto is placed above the word Springs.
4. Move the pointer over the middle of the Grotto Springs annotation feature. The pointer will change to the four-pointed Move Annotation pointer. Click the middle of the Grotto Springs annotation feature and drag it toward the southwest so it is between the spring features.

  
5. On the Unplaced Annotation window, click Zion Canyon Scenic Drive and press the P key, which is the keyboard shortcut to pan to a selected annotation feature.
6. Right-click Zion Canyon Scenic Drive and click Place Annotation.
7. Right-click the Zion Canyon Scenic Drive annotation feature on the map and click Stack.
8. Click the middle of the Zion Canyon Scenic Drive annotation feature with the four-pointed Move Annotation pointer and drag it toward the southwest until the south end of the annotation feature is near the intersection with the road that branches off to the east, Highway 9.

  
9. Move the pointer over the blue, wedge-shaped rotate handle on the northeast corner of the Zion Canyon Scenic Drive annotation feature until the pointer becomes the Rotate pointer. Click the corner and drag it counterclockwise until the annotation feature follows the general trend of the road.

  
10. If you wanted, you could continue to place and edit the annotation features. When you are done, close the Unplaced Annotation window.
11. To continue to the next exercise, Exercise 3c: Creating new annotation features.

You have placed, moved, stacked, and rotated annotation features with the Edit Annotation tool. Next, you will create new annotation features and edit them.

Converting labels to annotation

Exercise 3a: Converting labels to annotation

About annotation features
Annotation is a way to store text to place on your maps. With annotation, each piece of text stores its own position, text string, and display properties. Dynamic labels, based on one or more attributes of features, are the other primary option for placing text on maps. If the exact position of each piece of text is important, you should store your text as annotation in a geodatabase. Annotation provides flexibility in the appearance and placement of your text because you can select individual pieces of text and edit them. You can convert labels to create new annotation features.
In this exercise, you will convert labels into geodatabase annotation so you can edit the text features.

Preparing the labels for conversion
The map you will use in this exercise contains roads and water features in Zion National Park. The layers in the map have dynamic labels, but some of the map features could not be labeled due to space constraints.
When you convert the labels to annotation, you can position each piece of text manually.

Steps:
1. Click the Open button on the Standard toolbar.
2. Navigate to the Exercise3.mxd map document in the Editing directory where you installed the tutorial data. (C:\ArcGIS\ArcTutor is the default location.)
3. Click the map and click Open.
4. 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. Each feature layer has dynamic labels, and the Streams layer has label classes based on the layer's symbology. Label classes let you create different labels for different types of features in a given layer, so for example, intermittent streams can be given smaller labels than perennial streams.
5. Click Customize, point to Toolbars, then click Labeling.
6. To view which labels do not fit, view the unplaced labels. Click the View Unplaced Labels button . The labels that could not be placed are displayed in red. It might be possible to fit these labels by adjusting their size, changing the feature and label weights, or making the map larger. However, for this exercise, you will convert the labels to annotation and place or delete the unplaced annotation.

  
7. Click the View Unplaced Labels button again to hide the unplaced labels. Annotation features have a fixed position and size, so when you zoom in to the map, they appear to get larger. Labels are dynamically drawn according to their layer’s label properties. If the map does not have a reference scale, they are drawn at their specified font size regardless of the map scale. To make labels behave more like annotation, you can set a reference scale for the map. The labels are drawn with their specified font size scaled relative to the reference scale. When converting labels to annotation, you should specify a reference scale. If you do not, the current map scale is used as the reference scale for the annotation.
8. Type 170000 in the Map Scale box on the Standard toolbar and press ENTER.
9. In the table of contents, click the List By Drawing Order button , if it is not already the active way to sort layers. Then, right-click Layers (the name of the data frame), point to Reference Scale, then click Set Reference Scale. Now if you zoom in or out, the labels become correspondingly larger or smaller. You are ready to convert these labels to annotation.

Converting labels to annotation
Annotation can be stored in a map document or in feature classes in a geodatabase. You will convert these labels to annotation stored in a geodatabase. The Convert Labels to Annotation dialog box allows you to specify what kind of annotation to create from the labels, which features to create annotation for, and where the annotation will be stored.

Steps:
1. In the table of contents, right-click Layers and click Convert Labels to Annotation. ArcView users can view feature-linked annotation, but they cannot create it or edit datasets that contain it. If you have an ArcView license, the Feature Linked column of check boxes is unavailable. In this exercise, you will create standard annotation features. Skip the next step if you have an ArcView license.
2. Uncheck the check boxes in the Feature Linked column. Small folder icons, the browse buttons, appear beside the annotation feature class names as you uncheck the Feature Linked check boxes. Feature-linked annotation must be stored with the feature class that it is related to in the geodatabase. Standard annotation feature classes can be stored in other geodatabases; after unchecking the boxes, you have the option to specify a new location for your annotation. Standard annotation feature classes are stored in the same dataset as their source feature class by default. If a feature layer on the map was based on a shapefile or coverage feature class, the browse button would have been visible and you would need to browse to a geodatabase to store the new annotation feature class.

 

 
3. Verify that Convert unplaced labels to unplaced annotation is checked. This gives you a chance to manually place the annotation for the features that could not be labeled.
4. Click Convert. The labels are converted to annotation. The process should take less than a minute, though the speed depends on your computer. When the annotation feature classes are created, they are added to ArcMap. Each layer's label classes are stored as separate annotation classes within a single annotation feature class. For example, the two label classes for streams become two annotation classes, Intermittent and Perennial, within the StreamsAnno annotation feature class. These annotation classes can be turned on and off independently, and they can have their own visible scale ranges.
5. To continue to the next exercise, Exercise 3b: Editing annotation features. You have converted labels to annotation features. Next, you will place them on the map and edit their positions.

Nov 29, 2012

Editing Tutorial (Part 2)

Exercise 2a: Defining new types of features to create

About the Define New Feature Type wizard
Sometimes you may want to create features of a certain type in an existing layer, but the layer is not set up to capture those features. For example, you want to add features to a roads layer to represent an unpaved road, but you currently only have categories in your data for freeway, major highway, and local road. Through a wizard, you can define everything about the unpaved road category at one time—making it easy to prepare your data to display and store the new types of features. ArcMap automatically adds a symbol for the new category, any required geodatabase information (such as subtype value or coded domain value) for that layer, and a feature template to use when creating an unpaved road. The wizard saves you from having to stop your work to open multiple dialog boxes to set up the data on your own.
The park contains several areas of natural, cultural, or historical significance that are designated for research and education purposes only and are not open for public recreational use. In this exercise, you will define a new category of features to represent buffer regions around areas in the park that have been proposed for research-only use. This new category can show the area where travel is not recommended but is not prohibited.
The Research areas layer is symbolized by unique values, so the Define New Feature Type wizard allows you to define the symbol and create a feature template containing the default attributes for the new buffer zones category. You will use an existing feature to create the new buffer around it in a later exercise.

Steps:
1. Click the Open button on the Standard toolbar.
 
2. Navigate to the Exercise2.mxd map document in the Editing directory where you installed the tutorial data. (C:\ArcGIS\ArcTutor is the default location.)
 
3. Click the map and click Open.
 
4. 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.
 
5. If you are prompted to enable hardware acceleration to improve performance, click Yes.
 
6. Right-click the Research areas layer in the table of contents, point to Edit Features, then click Define New Types Of Features.
The Define New Feature Type wizard starts.
 
7. Click Change Symbol to choose a different symbol to be used for the new buffer areas.
 
8. Click the Color drop-down arrow and click Gray 30% to change the fill color to gray.

  
9. Click OK on the Symbol Selector dialog box.
 
10. Click in the Name box and type Buffer zones.


11. Click in the Description box and type Buffer zones around Zion research areas.
 
12. Click in the Tags box. Select the text following Polygon;, delete it, then type Buffers. The Tags box should appear as Polygon; Buffers when you are finished. Make sure the tags are separated by a semicolon.
 
13. Click Next.
The next panel in the wizard shows you the existing categories in the layer.
 
14. For Value and Label, type Buffer zones. They should be populated automatically from the name you set on the previous panel of the wizard. The label is used to display the symbol category in the table of contents and legend.


15. Click Next.
The next panel in the wizard allows you to set the default attribute values that will be used for new features created with the new Buffer zones feature template. This panel should be familiar to you from the exercise where you set the default attribute values for the landownership tracts.
 
16. Notice that Buffer zones is already set as the default attribute value for the Name field. You could also set defaults for the Comment field; however, you will leave it blank since any comments will be specific to each feature you create, rather than a universal default


17. Click Finish.
 
18. A message appears that the new feature type was added successfully. Click No to quit adding new types.
The new symbol appears in the layer's entry in the table of contents, and a new feature template has been created.
 
19. Click the Editor menu on the Editor toolbar and click Start Editing.
Notice that the Create Features window lists a new feature template for the Buffer zones.
 
20. To continue to the next exercise, Exercise 2b: Creating features from existing features.
Now that you have added a feature template for the new type, you are ready to start creating features.

Exercise 2b: Creating features from existing features

About buffering features
You are provided with a polygon feature showing one of these researchonly locations in the park and will use it to create another feature representing a buffer zone around it. You will select the original researchonly polygon and use the Editor menu > Buffer command to create the new feature.
When you click the Buffer command, a dialog box opens allowing you to specify a feature template and buffer distance. Like other measurements when editing, the buffer distance is specified in map units, but you can also give the value in other units by specifying a distance units abbreviation with the value that you enter.

Prerequisite:
The Exercise2.mxd is open and you are in an edit session.
Editing commands that create new features automatically from existing features, such as Buffer, require you to choose the feature template to use when creating the new feature. Similar to clicking a feature template in the Create Features window, choosing a template on these dialog boxes defines the layer where a feature will be stored and the default attributes for the new feature. A buffer feature can be created as either a line or a polygon, so you could see both line and polygon templates listed but no templates for any other types of features.

Steps:
1. Navigate to the Research-only area bookmark. The map zooms to the Goose Creek area of the park. The polygons depict research-only areas.
 
2. Turn off the Streams layer in the table of contents. This makes it easier for you to see and select the correct features.
 
3. Click the Edit tool on the Editor toolbar.
 
4. Select the southernmost Research areas polygon—the tan-colored one.


5. Click the Editor menu and click Buffer.
 
6. Click the Template button on the Buffer dialog box.
 
7. Click the Buffer zones polygon template on the window.
The Select Feature Template window shows only templates that are valid output types for the particular command rather than all the templates listed on the Create Features window. In the case of Buffer, polygon and line templates would be listed, if available, since both these geometry types can store the new buffer feature. On the other hand, when using a command, such as Copy Parallel, that creates line features, only line feature templates are listed for that command. If you want to find a template by name, you can enter it into the <Search> box.
 
8. Click OK on the Select Feature Template window.
 
9. Type 300 in the Buffer Distance text box. This means a buffer will be created 300 meters (the map units) from the border of the selected polygon.


10. Click OK.

 
The new 300-meter polygon buffer feature is created using the properties of the Buffer zones feature template. The new feature is selected and is drawn on top of the existing feature.
 
11. To continue to the next exercise, Exercise 2c: Editing polygon features.
In this exercise, you used an editing command, Buffer, to generate a feature from an existing feature and chose the feature template to use when creating the new feature.

Exercise 2c: Editing polygon features

About editing polygons
In the previous exercise, the Buffer command created a feature that is the extent of the original feature plus the buffer distance. Since this feature should just be the buffer, you need to remove the shape of the original inner feature from the current buffer feature. You can use the Editor menu > Clip command to cut a hole in the polygon feature.
You will also use the Cut Polygons tool to split a polygon by an overlapping line feature.
Cutting a hole in a polygon
 
Prerequisite:
The Exercise2.mxd is open and you are in an edit session.
The new feature is drawn on top of the existing one. To use Clip, you need to select the underlying existing feature. The Edit tool has special capabilities to help you select the correct feature from overlapping ones.

Steps:
1. Click the Edit tool on the Editor toolbar.
 
2. Click the center of the buffer feature. Since there are multiple selectable features where you clicked, the selection chip appears. Click the arrow to the right of the icon to view a list of the features from which you can select. Features are listed in the selection chip by their display expression, which is set on the Layer Properties > Display tab.


3. Rest your pointer over a feature in the list to flash it on the map. Click the Isolated Mesa Tops feature to select it. You will use this feature to clip a hole in the Buffer zone polygon.
 
4. You can check that the correct feature is selected by clicking the List By Selection button in the table of contents and noting that only the Isolated Mesa Tops is listed in the Research areas layer in the Selected category.
The Editor > Clip command only clips polygon features that are within a buffer distance of a selected feature—in this case, the Isolated Mesa Tops research area.
 
5. Click the Editor menu and click Clip.
 
6. Ensure the Buffer Distance is 0. This way, you will be clipping to the exact border of the selected feature rather than at a distance from it.


7. Click Discard the area that intersects. This removes the overlapping area from the feature that is being clipped.
 
8. Click OK. The overlapping area is clipped and now the original Research areas feature is visible through the hole in the buffer feature.


9. Click the List By Selection button in the table of contents, if you are not already listing layers this way, then click each feature on the map and note that the selected feature changes in the list in the table of contents. The 1 to the right of the selection icons indicates that there is one selected feature.



Since the buffer feature has a hole in it, its geometry is represented in ArcGIS as a multipart polygon. Multipart features either contain holes in them or are composed of more than one physical part that only references one set of attributes. For example, the individual islands that make up Hawaii are often represented as a multipart polygon feature. You can view the list of parts in a feature by double-clicking it with the Edit tool and opening the Edit Sketch Properties window.

Cutting a polygon
The neighboring research area needs to be divided into two polygons based on the river that runs through the middle. You can use the Cut Polygons tool to split the polygon.
To use the Cut Polygons tool, you need to select the polygon, then digitize a line where you want to cut the polygon. To change the shape of the line used to cut the polygon, click a construction method type on the Editor toolbar or on the Feature Construction mini toolbar. Segments can be created using a variety of methods, for example, as straight lines, with curves, or traced from the shapes of other features.
If you are cutting a polygon along a simple line, you can click to draw the line using the Straight Segment construction method. However, in this case, the river feature you want to use to cut with is long and curved, so it will be easier to trace around the border to create the line.

Steps:
1. Click the Edit tool on the Editor toolbar.
 
2. Click the Goose Creek research area, the blue polygon just to the west of the polygons you were previously editing. You may need to zoom in or pan to this feature so you can see it better.
 
3. In the table of contents, click the gray layer icon to the left of the Streams layer to make the streams visible again so you can trace along them. When you do this, the layer icon becomes colored .


4. Click the Snapping menu on the Snapping toolbar and click Intersection Snapping . This turns on snapping to intersections between features, which will help you ensure that the line used to cut the polygon starts and stops at the intersection of the polygon and line edges.
 
5. Click the Cut Polygons tool on the Editor toolbar.
 
6. Click Trace on the Editor toolbar palette.
 
7. Snap to the intersection of the polygon edge and the stream line near the buffer polygons, then click to start tracing the line through the polygon. Follow along the stream line to trace it.


 
8. Once you have traced all the way across the polygon, snap to the intersection of the polygon and line at the northern edge of the polygon, and click the map to place vertices.


9. Right-click anywhere on the map and click Finish Sketch.
 
10. You are finishing the sketch used to cut the polygon. The polygons flash on the map as the cut is made and the new features are selected. If an error occurs, ensure that you have the correct feature selected, try the trace again, then make sure your line goes completely across the polygon. It may help to zoom in when you start and end the trace.

  
11. Click the Edit tool on the Editor toolbar.
 
12. Click each new feature and notice that you now have two polygons.

  
13. Click the Editor menu on the Editor toolbar and click Save Edits.
 
14. Click the Editor menu on the Editor toolbar and click Stop Editing.
 
15. To continue to the next exercise, Exercise 2d: Editing vertices and segments.
In this exercise, you learned how to clip polygons and split them by tracing along an overlapping line feature.

Exercise 2d: Editing vertices and segments

About editing vertices and segments
In the previous exercise, you edited whole features. In this exercise, you will be editing the vertices and segments that make up a feature. You can double-click a feature with the Edit tool to edit its shape. When you do this, the Edit tool pointer changes from a black arrow to a white arrow to show you can directly select vertices and modify segments.
The Edit Vertices toolbar provides quick access to some of the most commonly used commands when editing vertices. It appears on-screen whenever either the Edit tool or the Topology Edit tool is active and
you are editing the vertices of a feature or topology edge. The toolbar floats the first time it appears but can be docked after that.

Note: This exercise requires an active Internet connection since it uses imagery served from the Web. If you do not have an Internet connection or if the imagery is loading slowly, you can still perform the tutorial using an image that is installed with the tutorial data. You need to turn on the DOQQ imagery (local) layer in the table of contents, then you can turn off the World imagery (Web) layer.

Editing vertices and segments
You will drag the vertices and handles to edit the shape of a line that was poorly digitized on a trailhead that starts at a road and ends near a stream.

Steps:
1. Make sure you have stopped editing from the previous exercise.
 
2. In the table of contents, click the List By Drawing Order button .
 
3. Right-click the Editing features data frame name and click Activate to make this the active data frame.
 
4. Click the Editor menu on the Editor toolbar and click Start Editing.
 
5. Close the Create Features window. You will not need it in this exercise.
 
6. Navigate to the Trail bookmark.
 
7. Click the Edit tool on the Editor toolbar.
 
8. Select the trail line (the dashed line) that connects to the road and click the Edit Vertices button on the Editor toolbar. When you are viewing the sketch geometry of a feature, the Edit Vertices toolbar appears, giving you quick access to commands used when editing a feature's vertices and segments.


When compared to the aerial photograph, notice that this line is straight when it should be curved, and it also has some extra vertices. You can easily change a straight segment into a circular arc or Bézier curve, and vice versa, and delete the extra vertices. A Bézier curve is smooth and has on each of its two endpoints handles that can be moved to change the direction and the steepness of the curve. You can create Bézier curves by digitizing them using the Bézier Curve sketch construction method or by using certain editing commands, such as Smooth on the Advanced Editing toolbar.
 
9. Move your pointer over the middle of the segment closest to the road and notice that the pointer changes to indicate you are working with a segment. Right-click, point to Change Segment, then click Circular Arc.
10. The segment changes to an arc. Click the arc, drag it, and drop it over the trail on the aerial photograph. You can hold down the SPACEBAR key to turn off snapping temporarily if you are having difficulty placing the curve where you want it.


11. Click the map away from the feature to update its shape, then double-click the feature, which accomplishes the same thing as using Edit Vertices.
 
12. Click the Delete Vertex tool on the Edit Vertices toolbar. The Delete Vertex tool looks like the white Edit tool with a minus sign (-) next to it.
 
13. Drag a box around the three vertices that form a zigzag shape between the previous segment and the horizontal segment. This deletes those vertices, as they are in the incorrect locations and are not needed to maintain the shape of the line in this area.

14. Click the Modify Sketch Vertices tool (the white Edit tool) on the Edit Vertices toolbar. This allows you to continue working with the segments and vertices.
 
15. Right-click the northernmost segment, point to Change Segment, then click Bézier.
A new set of Bézier curve handles is added, and the segment changes into an S-shaped curve.
You can see the locations of the vertices and handles, which are displayed in blue. Rest your pointer over a green vertex, then rest it over a blue handle. You get different pointer icons depending on the type of point you are over.
 
16. Drag the handles to reshape the curve to match the aerial photograph.

  
17. Click the map to update the changes you made to the shape. If you need to refine the line's shape further, double-click it again with the Edit tool and modify the segments. If you want to insert or delete a vertex, use the tools on the Edit Vertices toolbar.

  
18. Click the Editor menu on the Editor toolbar and click Save Edits.
 
19. Click the Editor menu on the Editor toolbar and click Stop Editing.
 
20. Close ArcMap if you are done working with the tutorial. You do not need to save the map document.
 
21. To continue to the next exercise, Exercise 3a: Converting labels to annotation.
You changed segments into different types and edited vertices.

Favorite Blogs