8D Advanced Object Editing - dl. ?· Advanced Object Editing ... Combine, Erase and Split Combine Using…

  • View
    212

  • Download
    0

Embed Size (px)

Transcript

8D

Advanced Object Editing

In this session:

The Status BarDrawingSettingsToolsAutomated Object CreationSQL StatementsCombine, Erase and SplitCombine Using Column DataZero-Distance Buffers

The Status Bar

1. The Status Bar

The Status Bar is located along the bottom of your MapInfo Professional window, and can provide a lot of information at a quick glance.

You can also change two important settings just by clicking in the Status Bar.

1-1. Show the Cursor Location

Click on the left side to change what is displayed. The Cursor Location will display the location of your mouse in terms of the coordinate units (e.g., degrees of longitude and latitude).

1-2. Change the Editable Layer

Click closer to the middle of the Status Bar to change the Editable layer. This may be a bit quicker than going through Layer Control.

2. Drawing

2-1. Snap to Nodes

If you have a need to trace a street network, you can turn Snap mode on to make sure you trace the streets accurately.

1. Open DCWASHS.TAB (located in \Training_Data\US\DC\).2. Press S on your keyboard to turn Snap mode on. It will appear in the Status Bar.

3. Make the Cosmetic Layer editable.4. You may wish to change your line style.5. Use the Polyline tool and trace some of the streets by snapping and clicking. You will be able

to tell you are snapped when the cursor turns into a large cross-hairs.

2 Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved.

Session 8D: Advanced Object Editing

6. Double-click to stop drawing.

2-2. Auto Node

If the object you are drawing requires more of a freehand look, you can use the Auto Node feature. Essentially Auto Trace clicks the mouse for you at a set distance interval.

1. Press S on the keyboard to turn Snap off.Snap and Auto Node dont get along well with each other.

2. Press N on the keyboard to turn on Auto Node.

3. Use either the Polygon or Polyline tool.4. Click once to start drawing and just move your mouse around where youd like to draw. You

dont have to click again until you want to stop drawing.5. Double-click to stop drawing.

2-3. Auto Trace

You can use Auto Trace to trace around existing shapes with several nodes. It is still used in conjunction with Snap mode, but you dont have to click on every single node. For example, tracing Florida.

1. Close All. Click Discard if prompted to save anything.2. Open STATES.TAB (located in \Training_Datat\US\).3. Press N to turn off Auto Node.4. Press T to turn on Auto Trace and S to turn on Snap.5. Make the Cosmetic Layer editable.6. Zoom into Florida.

Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved. 3

Drawing

7. Use either the polygon or polyline tool and snap to any node along the Florida coast.8. Move your mouse, and snap to any other node, without clicking.

You will notice that the border is traced. However, that will not actually become permanent until you click. YOU MUST BE SNAPPED TO ANOTHER NODE.

9. Snap to a node and click again.10. Continue tracing in this manner until you have completely traced the coast.

Note: Auto Trace always takes the path of least resistance. That means that when you are tracing a region object, Auto Trace will always go in the direction of the least number of nodes. That can be changed by holding down the CTRL key.

4 Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved.

Session 8D: Advanced Object Editing

3. Settings

There are some settings you can affect some of your object editing.

3-1. Move Duplicate Nodes

First youll see how one particular setting works before you change it.

1. Close All. Click Discard if prompted to save anything.2. Open DC_DISTRICTS.WOR (located in \Training_Data\Workspaces\).

The scenario here is that the Southern and MidHaven Quadrants need to be redrawn to follow the red line. You will need to reshape both.

3. Select the MidHaven Quadrant.

4. Click Reshape. 5. Make sure that Snap mode is turned on and click and drag each node of the MidHaven

Quadrant to follow the red line.Notice that when you move the MidHaven Quadrant up, there is a gap, and that you now have to move the Southern Quadrant up to match it.

Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved. 5

Settings

6. From the File menu, choose Revert Table.7. Click Discard.

You will now change the appropriate setting so that you will be able to make changes to both quadrants at the same time.

8. From the Options menu, choose Preferences.9. Click Map Window.10. Select the Editing tab.

6 Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved.

Session 8D: Advanced Object Editing

11. Change the option to Move Duplicate Nodes in the Same Layer.

Note: You can also change the Snap Tolerance and Auto Node Tolerance here as well.

12. Click OK.13. Reshape the quadrants as above and notice the difference in behavior.

Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved. 7

Settings

3-2. Object Styles

Another trick that may make your object editing a bit easier is the capability to change the default object styles. You can set it globally, choosing a style that will be the default every time you start up the program, and you can also choose a style on a layer-by-layer basis.

To choose a global default object style:

1. From the Options menu, choose Preferences.2. Click Styles.

3. Change your Default Object Styles as necessary. Once you click OK, these will be saved for the next time you start MapInfo Professional.

4. Click OK.

To choose a default object style for an individual layer:

1. In Layer Control, make a layer editable.2. Click Insert Style.

8 Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved.

Session 8D: Advanced Object Editing

These style settings will be set specifically for this layer and are actually saved in the .TAB file. That means that the next time you open this particular file, these settings will be remembered.

Note: The layer used for the above screenshot only has region objects. If your layer has line or point objects, those buttons would also appear.

3. Make your style changes and click OK.4. Click OK to close layer control.

4. Tools

Among MapInfos wide selection of tools are a few that might come in handy for creating and editing objects. Two of them that you will look here are Create Line by Length and Grid Maker.

1. Close All.2. Open US_SELECTS.WOR (located in \Training_Data\Workspaces\).3. Through Tool Manager, load the Create Line by Length, Grid Maker and Connect

the Dots tools.

4. Click OK to close Tool Manager.

Two new buttons have been added to your Tools toolbar:

Create Line by Length

Grid Maker

Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved. 9

Tools

4-1. Create Line by Length

The Create Line by Length tool allows you to set a starting location, a rotation angle, and a distance for a line to be drawn automatically.

1. Click the Create Line by Length tool and click somewhere on the map. The Properties of New Line dialog box displays.

2. The Starting X and Starting Y are populated using the coordinates of the location at which you clicked.

3. Adjust the Angle, Length and distance units.

By default, an angle of 0 degrees is straight to the east. As the rotation angle increases, it moves in a counter-clockwise direction. Ninety degrees is straight north. However, that can be changed using the Advanced Options.

4. Choose Create Line or Create Polyline.

You can use the tool to create a single line or a polyline. If you choose to create a polyline, the dialog box will re-open after drawing the first segment, and allow you to continue to add more segments.

5. Click Draw Line or Close when complete.

10 Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved.

Session 8D: Advanced Object Editing

4-2. Grid Maker

You can use the Grid Maker to automate the process of creating a grid of square cells.

1. From the Map menu, choose Clear Cosmetic Layer and click Discard when prompted.2. Click the Create Grid button and click and drag on the map over the area for which you

wish to create the grid.

3. When you release the mouse button, the Grid Maker dialog box displays.

You can make several changes to the way the grid will be drawn. You can choose to either create the cells as regions or polygons. You can adjust the drawing styles. The Extents are all populated based on where you clicked-and-dragged your mouse. You can also change the size of the cells by changing the Spacing between lines and the unit of measurement.

4. Make any necessary changes to the settings.5. Click Browse to save the .TAB file that will be created to specific folder.

Copyright 2008 Pitney Bowes MapInfo Corporation. All rights reserved. 11

Automated Object Creation

6. Click OK.7. A message will appear that tells you how many cells will be created as part of this grid. If the

number is too large, you may wish to cancel the process here.

4-3. Connect the Dots

As the name would suggest, this tool will connect point objects, creating a polygon or polyline object in the same table as the source points. They are connected in the order in which they appear in the source table.

This tool is not part of the