Segment editor

Functionality

The segment editor is used to create and/or edit a segment map. Furthermore, you can create a polygon map, by first digitizing segments with the segment editor, and then polygonizing the segments in the segment editor into a polygon map. For more information on creating a polygon map, see also How to create polygon maps.

With the segment editor, you can:

Additionally, you can copy and paste segments to and from the clipboard, and you can pack, check and polygonize segments.

The segment editor has a menu bar, a context-sensitive menu, and a toolbar.

You can create and edit segments with the mouse on the screen, but you can also use a digitizer when a map is fixed onto your digitizer tablet.

Furthermore, in any map editor you can always use existing maps as a background by adding these maps as other data layers to the window, see How to add extra layers to a map window.

When you wish to create polygons later on, you have to make sure that all segments are properly connected to each other by nodes. This means that during digitizing and/or editing, you must to use snap and split for the beginnings and the ends of all segments that are supposed to be connected to each other.

To start the segment editor:

The segment editor is automatically started when you create a new segment map.

To edit an existing segment map, display the segment map in a map window, open the Edit menu, choose Edit Layer, and select the segment layer from the cascading menu. You can also click a segment map with the right mouse button in a Catalog and choose Edit from the context-sensitive menu. For other methods, see How to edit point, segment, polygon, and raster maps.

Dependent segment maps cannot be edited: first break the dependency links in the Segment Map's Properties sheet.

When the segment editor is opened, it starts in Select mode; the mouse pointer appears as a hand.

Working with the digitizer

Make sure that the digitizer is properly set up (Setup Digitizer wizard) and that the analog map is properly referenced on the digitizer tablet (Map Reference). The Setup Digitizer and the Map Reference commands on the File menu of the Main window should both be preceded with a check mark . For more information, see also How to set up a digitizer and start digitizing or Segment editor : Digitizer.

When the digitizer is Active in the segment editor, a small, floating window will appear: the digitizer menu (see Figure 1). The digitizer menu contains the commands that will be performed when pressing the buttons on the digitizer cursor. The numbers in front of the commands on the digitizer menu correspond to the numbers of the buttons of your digitizer cursor.

When in the description below, it is written that you have to press for instance the Move Points button, you have to press the button of your digitizer cursor which corresponds with the number in front of the Move Points option on the digitizer menu. In this example, this is the digitizer button corresponding with 3:

Fig. 1: Example of the digitizer menu in the segment editor.

Zooming/Changing the window:

During digitizing, it is very important that you zoom in on the part on which you are currently working to ensure proper snapping and splitting. You can use the Zoom in button in the toolbar of the editor, but you can also zoom in with the digitizer cursor.

To zoom in with the digitizer buttons:

You can also directly position the digitizer cursor on the first corner of the area of interest, press the Change Window button, then move the cursor to the second corner of the area of interest, and press the 2nd Point button.

To display the entire map again:

Adding segments

To start segments:

  1. To start a segment with a loose end:
  2.  

  3. To start segments from an existing node on an existing segment (snap):
  4.  

  5. To start a segment from any other position in an existing segment (snap/split):

To delete intermediate points while inserting a segment:

To end segments:

  1. To end a segment with a loose end:
  2.    

  3. To end a segment on an existing node of an existing segment (snap):
  4.    

  5. To end a segment at any other position in an existing segment (snap/split):

To assign a class name, ID or value to the segment:

Each time that you end a segment, an Insert/Edit dialog box will be opened asking for the class name, ID, or value of the new segment. Whether you can enter a class name, type an ID, or type a value depends on the domain of the map.

In case the map uses a class or value domain, the class name or value you just entered will be the default for any next segments that you will digitize.

Moving points within segments:

To move a segment node or an intermediate point within a segment:

Working with the mouse

To zoom in on the map:

You can zoom in on the segment map by for instance clicking the Zoom In button in the toolbar. For more information, see Map window : Zoom in.

To choose between different modes:

In the segment editor, you can work in Select mode, in Move Points mode, in Insert mode or in Split/Merge mode.

To switch to a certain mode:

To go to Select mode, you can also press the Esc key on the keyboard.

Select mode to select existing segments:

In Select mode, the mouse pointer appears as a hand. You can select one or more segments by clicking them, in order to change their class name, ID, or value.

 

For more information, see Segment editor : Select mode.

Editing the code of selected segments:

Depending on the domain of the segment map that you are editing, you can change the class name, identifier or value of selected segments.

To edit the class name, ID, or value etc. of one or more segments:

When you double-click a segment, you can immediately select a class name, type an identifier, or type a value. Segments in a segment map using an identifier domain can only be edited individually.

When you selected multiple segments, you can select a class name, or type a value for the selection in the appearing Edit dialog box. For more information, see Segment editor : Edit.

All changes that you make are immediately stored in the segment map.

Deleting selected segments:

To delete segments, first make a selection, and then press the Del key on the keyboard, or choose Delete from the Edit menu or from the context-sensitive menu. For more information, see Segment editor : Delete.

To cut, copy and paste:

When you choose Cut from the Edit menu, the current selection of segments is copied to the clipboard and then deleted from the map. For more information, see Segment editor : Cut.

To copy segments to the clipboard, make a selection and choose Copy from the Edit menu. Segment coordinates and segment class names, identifiers or values are copied. The copied segment(s) will also be available as picture.

The copied segments can for instance be pasted as points into a point editor, or as segments into a segment editor. For more information, see Segment editor : Copy.

To paste data from the clipboard into the current segment map, choose Paste from the Edit menu. You can paste points, segments, polygon boundaries, and pixels. For more information, see Segment editor : Paste.

Insert mode to add segments to the segment map:

In Insert mode, the mouse pointer appears as a pencil. In Insert Mode you can use Autosnap. When Autosnap is active, the system automatically snaps to nodes and splits when necessary, i.e. there is less need to use the Shift and/or Ctrl keys as described below. You can specify a snap tolerance in pixels in the Customize Segment editor dialog box.

To insert a new segment:

To delete intermediate points while inserting a segment:

To connect a new segment to an existing node (snap):

To start or end a new segment on an existing segment (snap/split):

Each time that you end a new segment, an Insert/Edit dialog box will be opened asking for the class name, ID, or value of the new segment. Whether you can enter a class name, type an ID, or type a value depends on the domain of the map.

In case the map uses a class or value domain, the class name or value you just entered will be the default for any next segments that you will insert.

Move Points mode to change the position of a coordinate in a segment:

In Move Points mode, the mouse pointer appears as a pair of tweezers. Furthermore, all segment nodes appear as boxes and all intermediate coordinates appear as crosses. In Move Points mode, you can drag individual coordinates within a segment to a new position.

There are three ways to move a node or an intermediate point:

  1. Click a begin or end node or an intermediate point;
    the selected point and its segment change their color;
  2.  

  3. Press and hold down the left mouse button on a node or an intermediate point;
    the selected point and its segment change their color;
  4.  

  5. To pick up a node to which multiple segments are connected: click the node;
    the node is selected and one segment changes its color;

To snap the selected point to an existing node:

To split a segment and snap to the selected point to the created node (snap/split):

Split/Merge mode to split and merge segments:

In Split/Merge mode, the mouse pointer appears as a pair of scissors.

To split a segment:

To merge two segments:

To remove a superfluous node which connects only two segments which have the same code:

Other functionality

To customize the segment editor:

By choosing Customize from the File menu or from the context-sensitive menu, you can specify for instance whether to use Autosnap or not, the distances that should be used for snapping and tunnelling, and the colors to display your segments. For more information, see Segment editor : Customize.

Save:

When editing segments in the segment editor, all changes are immediately stored. However, to permanently store changes, you may use the Save button or the Save command on the File menu. After you used Save, any changes that you made before using Save, cannot be undone anymore with the Undo All Changes button or command. For more information, see Segment editor : Save.

To undo all changes:

When editing segments in the segment editor, all changes are immediately stored. However, you can undo all changes, i.e. restore the segment map until the moment when you last used Save, by choosing Undo All Changes from the File menu. For more information, see Segment editor : Undo all changes.

Undelete segments:

When segments were accidentally deleted, you can use the Undelete Segments command on the Edit menu to selectively recover deleted segments. For more information, see Segment editor : Undelete segments.

Find undefineds:

When you wish to check whether all segments have a valid class name, ID or value, you can use the Find Undefineds command on the Edit menu. By using Find Undefineds, all undefined segments will appear in a special color, so that you can manually assign a proper class name, ID or value to the segments. For more information, see Segment editor : Find undefineds.

To extend or reduce the coordinate boundaries of the map:

While you are in the segment editor, you can extend the map's coordinate boundaries or reduce the map's coordinate boundaries. This will affect the area in which coordinates can be entered into the map. For more information, see Boundaries of map.

To check segments:

To check whether segments are correctly digitized, choose Check Segments from the File menu. For regular polygonization, you can perform a check on Self Overlap, Dead Ends, and Intersections. Furthermore, for contour lines, you can perform the Code Consistency check; and for imported segments where each segment encloses a full future polygon, you can perform the Closed Segments check.

To polygonize segments:

To polygonize segments, choose Polygonize from the File menu. During regular polygonization, topology is created. You can polygonize the entire segment map or a selection of segments in the current segment map. You can create different polygon maps from one segment map, by using a mask.

When you polygonize, a check on Self Overlap, Intersections and Dead Ends is automatically performed before the map is polygonized. If there are errors in the segments, the operation is aborted and the errors must first be corrected. After correction the operation can be restarted. It is therefore advised to check segments before polygonization; in case errors are found, you have to correct these.

When during polygonization you created a dependent polygon map, and you have changed or updated the original segment map in the mean time, you can easily update the dependent polygon map by clicking the Make Up-to-Date button in the Polygon Map Properties sheet.

In case you imported segments of which each segment encloses a full future polygon, you can use the non-topological polygonization method.

To remove redundant nodes:

To remove nodes which connect 2 segments only, regardless of segment codes, choose Remove Redundant Nodes from the File menu. This option can for instance be used to reduce the number of segments after importing a segment map from another package, to speed up polygonization, and to improve complex line drawing.

The option combines the 2 segments around a found redundant node into a new segment and this new segment obtains the code of the segment encountered first. It is advised to make a backup of your segment map before performing this command.

To pack segments:

To permanently remove segments from a segment map, when you have marked some segments for deletion, choose Pack from the File menu.

To exit the segment editor:

To exit the segment editor, choose the Exit Editor command on the File menu or from the context-sensitive menu. You can also click the Exit editor button in the toolbar. In these cases, the editor is closed but the map(s) remain displayed in a map window.

When you double-click the Close button or the Control-menu box, the map and the editor are closed.

All changes that you make in the polygon map are continuously stored.

For more information, see also Appendices : Keyboard shortcuts and Appendices : Mouse functions.

See also: