Beruflich Dokumente
Kultur Dokumente
4)
Practice Guide 2013
Groep Urbanistiek Peter van der Waerden Maart 2013 Translated by: Paul van der Waerden
Introduction
In a time of progressing automation a plethora of software packages is being offered which can support a wide range of activities. This is also true for applications for which Geographic Information Systems (GIS) can be used. These applications are characterized by the combined use of spatial and non-spatial data.
It is impossible to master all GIS-software packages. The available packages often have similar principles related to: Types of Data: Data Management: Data Manipulation: data types; Data Presentation: Generating maps, tables, and reports. The combining of spatial and non-spatial data; The recording of these data in multiple data files; Offering of selection- and analysis methods which are connected to the
In any given GIS software package, these principles are extensively featured. The packages only differ in their internal organization (icons used, file types, etc.). The possibilities regarding the creation of files, the selection of objecs, running spatial analyses, and creating data presentations are available in all packages.
Figure 0.1: Global Zoning (from Van Leusden & Van Nunen, 1998)
Goal
The course goal is to provide insight into the workings of the subdivisions of GIS and the way in which these are integrated in software packages. On top of that an image is created of the way in which Urban Planning could be supported by GIS. In this course the software package MapInfo Professional version 11.0.4 (MapInfo Corp) will be used
Figure 0.2: Proposed access structure (from Van Leusden & Van Nunen, 1998)
MapInfo
The MapInfo application offers the possibility to save, analyze, and present (large sets of) geographical data. With the application a number of complex geographic analyses can be conducted, such as polygon overlay analyses, buffer analyses, geographical selections, and spatial aggregation. The application also offers easy ways to produce a variety of thematic maps and overview tables.
Course structure
This course consists of the following elements: 1. Introduction to MapInfo (lesson 1) 2. Building and maintaining databases (lessons 2 to 5) 3. Conducting geographical analyses (lessons 6 and 7) 4. Producing thematic maps (lesson 8)
Users instruction
Read the instructions and accompanying text carefully before conducting the activities This symbol indicates that the user should conduct an activity Attention: the images in this guide are in the first place illustrative for the to be conducted activities. The images also offer some guidance in what the results of the activities should look like. It can happen, however, that the results on the screen differ slightly from the images in this guide, but this does not necessarily mean that the user has incorrectly conducted the activities.
Required materials
To successfully complete the course you will need the following materials: -MapInfo Professional version 11.0: to be installed via \\archnas1\software\MapInfo\ver11.0 -File DC_Quad.tab: this can be found via \\archnas1\software\MapInfo\ver.7.5\MAPINFO\DATA\tut_data\tut_usa\USA\DC
Starting up MapInfo
MapInfo can be launched in two different ways. You can launch the program by clicking on the MapInfo shortcut on the desktop. When there is no icon on the desktop it can be started via the Windows Start menu Start >Programs>MapInfo>MapInfo Professional 11.0 Make sure you launch the correct version of MapInfo After launching a dialog box for quick start will appear. The Quick Start menu contains the following options (fig. 1.1) 1. Restore Previous Session: load the session (combination of geographic and attribute file) you last worked on; 2. Open Last Used Workspace: (sometimes combined with the name of the last used workspace) load the last used workspace, including page layout; 3. Open a Workspace: load a specific workspace; 4. Open a Table: load a specific data file.
Click Cancel to continue Now we see the next screen (fig. 1.2). This is the standard screen of MapInfo. This image can vary, depending on your operating system. Elements like scale, location, shape, size, and visibility of the tool bars or function bars can be different in every computer environment.
The opening screen consists of several elements. Here you can find a short description of these elements. During the course most elements will be discussed in depth. Title Bar: Indicates which data files (both geographic and attribute files) and windows (both maps and data) are opened. Menu Bar: Toolbar: This bar contains the main functions like file, edit, and table. Standard function bar with menu options for maintaining and editing files, such as open, copy, and paste. A number of toolbars can be placed at any location on the screen, as well as in the top toolbar. The two most important bars are the Main toolbar and the Drawing toolbar: Main toolbar: contains options for selecting and scaling of objects and requesting and showing (graphical) information. This bar also contains the important function Layer Control. Draw toolbar: contains functions to create and edit spatial objects. DBMS toolbar: toolbar used to access remote databases. Web Services: toolbar used to access online workspaces and data.
Floating Toolbars:
Status Bar:
The bar at the bottom of the screen displays messages that could be helpful when working with MapInfo. It displays which window is active and relevant information that goes with that window.
You have just opened a full-color map of the city center of Washington DC. A colored map can be distracting, so you want to adjust the color scheme this way: Click Layer Control in the Main toolbar Double-click the layer DC_Quad In the popup window make sure the Style Override box is checked and click on the icon underneath it. In the next window, set the conversion to Grayscale and adjust the Brightness to 60% Click OK twice to return to the main workspace We now have a map in grayscales.
Display
The map we now have is not very large and therefore not very usable for designing. You can maximize the map window by clicking on the Maximize icon at top right corner. With the zoom-in, zoom-out, and grabber functions from the main toolbar you can adjust the map view to suit your needs. Activate the Main toolbar by clicking on it Perform a number of zoom and move action to familiarize yourself with these functions When you want to return to the full map quickly, you go to: Map > View Entire Layer: a dialog box appears with all connected layers. Select DCQUAD to be shown in its entirety. Click Ok to view the whole map.
Measuring Units
For every application it is important that the measuring units used on screen and in analyses are correctly presented. Depending on your version of MapInfo or operating system, the standard unit is set to Miles. For the rest of this course we will convert this to Kilometers (fig. 1.4). Select Map > Options If necessary, change Distance Units to kilometers and Area units to square meters Click OK to confirm the changes
Click Close. You will return to the opening window of MapInfo as we started with at the beginning of this lesson. When you want to temporarily end this tutorial simply close MapInfo via File > Exit or the X in the top right corner. If you want to continue right away please turn the page.
Tables
A Drawing in MapInfo is built up from several different tables, where each table is a separate file on your hard disk. A table file consists of rows and columns: each row contains information of a specific spatial object (set point, line, or area); each column contains a certain theme (e.g. circumference, inhabitants, average income). The value of a theme can be saved as a whole number (Integer type: 100, 220, etc.), characters (Character Type: a, bb, etc.), or decimal number (Float type: 11.60, 13.3754, etc.). The bitmap we opened in the last lesson can only contain one drawing (the map of DC), so we need to open a new table when we want to add spatial objects in the drawing. In this lesson we will place a number of shopping malls on the map Go to File > New Table or click the New Table icon in the Toolbar Select both Open New Browser and Add to Current Mapper De-select Open New Mapper Click Create Now the data fields have to be generated in which information can be saved (fig. 2.1), such as names, store surface, and the number of stores of the shopping malls. Add one field by adding the following data. In the field Name Name, in the field Type Character, and in the field Width 16.
Click Create, save the table as Shoppingmalls in the same directory as your workspace. The following screen will appear (fig. 2.2).
Set Points
Now we will add five shopping malls to the map of Washington DC. Make sure the map window is active by clicking on it. To place set points on the map you have to select the Symbol icon from the Draw toolbar. Maximize the Map window to be able to easily find the locations. Place markers at the following locations: Dupont Circle, Logan Circle, Washington Circle, Mt. Vernon Square (near Library), and Plaza (below Union Station). When you want to use Map > View Entire Layer, make sure to select All Layers (instead of just DC_Quad) as the layer Shoppingmalls does not cover the entire area. Click OK to continue
Wrongfully placed points can be moved by selecting them with the Select icon in the Main toolbar and then dragging them to the right place. You can also remove points by selecting them and then choose Edit > Clear or press the Delete button on your keyboard. By placing the shopping malls on the map, MapInfo automatically creates a row (or record) for each one of them in the Shoppingmalls table. This becomes visible when you restore the map window to its original size. The standard symbols are perhaps not very suitable to indicate the shopping malls. Several characteristics of the symbols can be changed and we will manually change some of them right now. Activate the map window by clicking on it. Go to Map > Layer Control, or press Ctrl+L, or Click on the Layer Control icon in the Main toolbar. Click on the icon on the left of Shoppingmalls in the Layer Control menu. In the dialog box (fig. 2.3) select a suitable symbol and color. Leave the dialog box by clicking on OK. Close Layer Control. N.b. you can also reach this window by double clicking on Shoppingmalls in the Layer Control Menu. Other options in that menu will be discussed later in this lesson.
Now the shopping malls need a name label. When you select one of them on the map (using the select option) the corresponding row in the Shoppingmalls table is selected as well. This works the other way round as well: when you select a row in the table the corresponding icon on the map is also selected. Activate the Shoppingmalls table Fill in the column Name with the names of the shopping centers: Dupont Mall, Logan Mall, Washington Mall, Mt. Vernon Mall, and Plaza Mall (fig. 2.4). If necessary, use the zoom functions. Make sure each shopping center receives the correct name.
Labels
As you can see, the names are not automatically displayed on the map. You can add them as follows: Activate the map window. Go to Layer Control. Make sure the Label option is active behind Shoppingmalls (rightmost icon) Double-click the Shoppingmalls layer to open the Layer Properties menu. Go to the Label Display tab in this menu (fig. 2.5). Click on the button underneath Styles and select a Bold 8 pt. Arial font. Click OK to return to the Label Display menu. In the Placement subsection, select the label position underneath the anchor point. Click OK to close this menu and close Layer Control.
When you followed the steps correctly, your map should look something like this (fig. 2.6):
Saving a Table
We will now save the modified (table with added names) Shoppingmalls table (fig. 2.7). File > Save Table. In this menu you will see all adjusted tables. Select the Shoppingmalls table (the only adjusted table) and click Save.
For the rest of this course, modify your Workspace so that it looks like figure 2.8.
Save your Workspace, for instance as the MapInfo Tutorial you created in lesson 1. You can now suspend this course by exiting MapInfo. If you want to continue, please turn the page.
To add the Line database to the map window, open Layer Control. Click on the Green Plus Symbol (Add Layer) to add a layer. Select the Roads layer and click Add. Important! As you can see in the Layer Control Menu, the Shoppingmalls layer is momentarily the Editable Layer, as the Editable icon is enabled. This means that, if you would add spatial objects to the map window, the new elements will be drawn in the Shoppingmalls layer. However, we want them to appear in the newly created Roads layer, so: Make the Roads Layer editable by clicking on the Editable icon next to it. Close Layer Control to continue. Have a look at the status bar at the bottom of your screen; it will now display the text Editing: Roads (fig. 3.2). This way, you can always see in what layer new spatial objects will appear in.
Lines
Contrary to set points and symbols from the last lesson, we can create lines in three different manners. You can find the accompanying buttons on the Draw Toolbar. Line: Polyline: Arc: A singular straight line with one starting and one finishing point. A multiline with a starting and a finishing point with one or more inflection points in between, thereby dividing the line in multiple line pieces. A singular line with a starting and a finishing point with a bent line piece in between.
Draw some random lines on the map with these options to familiarize yourself with them. You will notice that these lines are drawn differently: For Lines and Arcs you click once and then drag your cursor to the end of the line, whereas for Polylines you click once for each inflection point and twice to end the line. When you try to draw the line outside the window the map will automatically move along with your cursor. To make the lines more visible you can edit the lines width and color in the Layer Control menu (see lesson 2).
Marquee Select from the Main toolbar. With this tool you can select all objects (in a layer) whose center is in the selected area. An even faster method is Query > Select All from Roads. Select all the lines you just created. Press Delete to erase all lines
Now we see one of the downsides of MapInfo: when it packs a table it automatically closes the Roads window and removes the Roads layer from the map window. As we have just saved our Workspace this is not a big problem. Go to File > Close All to close the current Workspace Open the recently saved Workspace under File > Recent Files > 1. \MapInfo Tutorial.WOR. In case you forgot to save your Workspace you can always add the Roads table the same way you did earlier in this lesson (via New Browser Window).
In the Status bar the line SNAP now appears (fig. 3.5). When you move your cursor close to a set point on your map it will change into a crosshair to display that, when you click there, the coordinates of the set point will be used.
Figure 3.5: Status Bar with the SNAP-function enabled
With the Line tool from the Draw toolbar, draw in Mass. Ave on your map. Mass. Ave West runs from Dupont Mall to Mt. Vernon Mall and Mass. Ave East runs from Mt. Vernon Mall to Plaza Mall (fig. 3.6) Also Draw in New Hampshire Ave on the map (from Washington Mall to Dupont Mall) To be able to easily draw lines from Logan Mall to Mass. Ave we first add a node to Mass. Ave directly on Scott Circle (Select > Reshape > Add Node). Do the same for Thomas Circle. Now the two roads between Mass. Ave and Logan Mall are easy to draw in with the Line tool. To get from Washington Mall to Mt. Vernon Mall via Pennsylvania Ave en New York Ave we can use the Polyline tool. The inflection points we can place roughly on sight and connect the finishing point to Mass. Ave.
Name the roads accordingly (In order: Mass. Ave West, Mass. Ave East, New Hampshire Ave, Rhode Island Ave (north to Logan), Vermont Street (south to Logan), and Pennsylvania Ave; fig 3.7)
Labels Part 2
If the different roads are still not extremely clear on the map, make them more visible on the map. Use Layer Control (see lesson 2) to give the lines a clearly visible color and width. Make sure the labels are displayed underneath the object. When 8 pt. Arial is not clear enough for you, you can add the option Background Halo; with this option the text is displayed with a small white border. When you look at the map now, you will see that not all labels for the roads are displayed. Only when other labels are not overlapping, a label will be displayed. Go to Labeling Rules (via the Layer Control menu) and check Allow overlapping text. Click OK for it to take effect (fig. 3.8). As you zoom in on the map it can happen that you can see part of a road but not the label. We can make the labels visible permanently by checking Label Partial Elements in the Labeling Rules tab. Check this option in the menu. Save all the changes in your workspace. You can now suspend this course by exiting MapInfo. If you want to continue, please turn the page.
Areas
To create and edit areas on the map there are similar tools available as for creating and editing lines. There are four tools that can be used: 1. 2. 3. 4. Polygon Ellipse Rectangle Rounded Rectangle A singular area consisting of one polygon. A singular area in the shape of an ellipse. A singular area in the shape of a rectangle. A singular area in the shape of a rectangle with rounded edges.
Polygons are created by clicking and double-clicking (like poly-lines). The other three spatial objects are created by clicking and dragging. Holding Shift makes sure height/width will stay proportional. Lets draw four areas on the map from the last lessons. Create a new table Regions and give it one Character(16) field Name (see previous lessons for how to create a new table). The four areas we want to make are: o North (above New York Ave. and Mass. Ave.) o East (right of New York Ave. and 14th street, above Constitution Lane) o West (left of Mass. Ave, New York Ave, and 14th street, above Constitution Lave) o South (the rest of the map, below Constitution Lane) Make sure the new Area-layer is the Editable Layer. Draw in the areas by using the Polygon tool from the Draw toolbar (fig 4.1). Use the SNAPfunction where possible (it can be turned on or off while drawing).
As you might notice, the underlying map is fully covered by the filling of the drawn areas. It is now almost impossible to see if the area borders are in the right place. Go to Layer Control, double-click Regions, enable Style Override, and disable the fill (top option). Make the borders of each area clearly visible (see fig 4.2).
Figure 4.2: The new map with the Roads, Regions and Map layer
Fill in the names of the areas in the Regions data table. Save the edited table Save your new workspace
You will see that not the shopping malls, but rather the roads within radius have been selected. This is because the Roads layer is still above the Shoppingmalls layer. Go back to Layer Control and move Shoppingmalls above Roads. Perform another Radius Selection. Make sure that shopping malls are now being selected. When we want to select all spatial objects within an area, we can use the Boundary Select tool. With this tool, click within one of the areas to select all shopping malls that are in it. Save all the changes in your workspace. You can now suspend this course by exiting MapInfo. If you want to continue, please turn the page.
Adding data
Lets add some data to the several tables we already have in our workspace. First, let us add Traffic volume to the Roads table. Go to Table > Maintenance > Table Structure. Select the Roads table and click OK. The following window should appear:
Click Add Field. Name this field Traffic Volume and make the type Float. When you click OK you will get an error message (fig. 5.2). Apparently you are not allowed to use spaces in field names.
Figure 5.2: MapInfo warning window for an incorrect field name Click OK. Change the name to TrafficVolume. Click OK. As when packing a table, the data window for the Roads table will disappear and the roads have vanished from the map. However, before we load the workspace again: Add the fields DailyShops and NonDailyShops (both type Small Integer) to the Shoppingmalls table. Add the field Inhabitants (Integer) to the Regions table. Go to File > Close All and then File > Recent Files > 1. /MapInfo Tutorial.WOR to make the original workspace reappear. Fill the data files with the following data. Please keep in mind that the order in which the objects appear in fig. 5.3 5.5 might differ from the order in your workspace. Shopping Malls Dupont Mall Logan Mall Mt. Vernon Mall Plaza Mall Washington Mall Daily Shops 10 4 10 13 15
Figure 5.3: Shopping Mall Data.
Non-Daily Shops 50 16 20 32 40
New Hampshire Ave Pennsylvania Ave Rhode Island Ave Vermont Street
Figure 5.6: The Assist option from the Update Column menu
Generating Columns
Now we will have MapInfo add two columns to the Regions table: Area and Density (fig 5.8) Open your workspace Make sure the Regions Browser is the active window. Go to Browse > Pick Fields Click on Expression underneath Fields in Table.
Fill in Area(obj, sq km) with the aid of the Functions list. Then change the name to Area under Edit Browser Column (fig. 5.9).
Now we add another column by clicking on Expression again. This time fill in Inhabitants/Area(obj, sq km), with the aid of the Columns and Operators lists. Name this column Density (fig. 5.10).
Click on OK and check the newly created columns. The exact numbers may vary depending on the regions you created (fig. 5.11).
Save the modified Regions table and the new workspace. Close all windows and open the workspace you just saved to continue this lesson.
Select Objects > Combine and observe the Data Aggregation menu.
In the Data Aggregation menu (fig. 5.12) we have to fill in what should happen to the values of the original spatial objects. We can keep the name (denoted with Value), but for Traffic Volume it suggests taking the Sum. As the values for Traffic Volume are averages we want to take Average here as well. MapInfo does not have a standard option to take into account the length of the roads, so we use no weight. In our table we now see one Mass. Ave with an average Traffic Volume of 8.75.
Splitting a line is a little bit more complicated. MapInfo can only split lines when they are divided by an area. We are going to split Pennsylvania Ave. The western part will stay Pennsylvania Ave, while the western part will become New York Ave. To do that, we have to go through the following steps. Draw the figure in 5.13 in any layer on the map by using the Polygon tool. Make sure the figure encompasses the entire section of the polyline to the right of the White House (being New York Ave). Use the SNAP-function to make one of the intersections of the Polygon the same as where the line has to be split.
Make the Polyline (Pennsylvania Ave) the target of your next actions (Objects > Set Target). Select the area you just created. Select Objects > Split.
For Data Disaggregation we can leave both methods at Value (fig. 5.14). Now we have two new line pieces, both with a Traffic Volume of 8.5. Click OK for the split to take effect.
In the data table for Roads you will now see two items named Pennsylvania Ave. Change the name for the eastern part of the line to New York Ave. Delete the area on the map that was used to split the line. Meanwhile there are several grey lines in our tables because spatial objects have been removed. You can use the Pack-function (see lesson 3) to get rid of these lines. Clean up the Roads table. Save the Roads table file. To get the whole workspace back it is easiest to close all windows and open the workspace again. If necessary, click Save when asked if you want to save modified tables.
Data Aggregation
The last function we discuss in this lesson is data aggregation or the combining of data. When we joined to roads earlier in this lesson we already encountered the aggregation of data. Data aggregation is the uniting of numerical attributes for spatial objects that have been combined into a larger spatial unit. In MapInfo, the following aggregation functions are available (fig. 5.15).
MapInfo Average Count Minimum Maximum Sum Weighted Average Proportion Sum
Proportion Average
Description Calculates the average values of the selected data cells Searches for the minimal value of all selected data cells Searches for the maximum value of all selected data cells Adds all data from the selected data cells Calculates the weighted average of the selected data cells Calculates the sum of the data cells, taking into account the part of the spatial object that is involved in the calculation Calculates the average of the data cells, taking into account the part of the spatial object that is involved in the calculation Calculates the weighted average of the data cells, taking into account the part of the spatial object that is involved in the calculation
We are going to work out an example. Imagine we want to know how many shops for daily needs there are in each are. To start this process, select Table > Update Column (fig. 5.16). Fill in the menu as in fig. 5.16. You will notice that you cannot yet select Add new temporary column under Column to Update yet. When you skip this and fill in Get Value From Table, MapInfo will automatically fill in the previous field.
Now, when you press the Join button, the following menu will appear (fig 5.17). In this menu you can indicate whether you want to use the detailed (first option) or the simplified (second option) joining option. Leave the option as it is set by default.
Because we want to know the total number of daily shops within an area, we have to select Sum from the possible aggregation functions and Dailyshops from the possible data fields. When you press OK a new data window will appear with the results (fig. 5.18).
(Please note, the exact numbers may vary, depending on where you placed the area borders. This is not important for the rest of the course). From this table, we can gather that there are 24 daily shops in the area North. This is congruent with the number of shops in Logan (4), Dupont (10), and Mt. Vernon Mall (10). The area West has 35 shops in it (Dupont, Mt. Vernon, and Washington Mall (15)); East has 23 shops (Mt. Vernon and Plaza Mall (13)); and there are no shops in the area South. As you notice, Dupont Mall and Mt. Vernon Mall are on the border of two (or even three areas) and as such count towards each areas total number of daily shops. If you want to suspend the tutorial you can exit MapInfo now. Do not save the workspace. If you want to continue immediately, please turn the page.
Queries
By way of a query, MapInfo can select a number of spatial objects within an object layer based on criteria you set. First, we will make a selection of all roads with an average traffic volume over 7. Go to Query > Select (fig. 6.1). In the window that pops up, indicate that you want to select object from the Roads table, that meet the requirements TrafficVolume > 7 formula. You can insert this formula by hand or use the Assist option, selecting TrafficVolume under Columns and > (more than) under Operators and adding the 7 by hand.
When we click OK, all objects with a traffic volume over 7 will be selected. A new data window is generated, in which all these objects have been summed up. In the already existing Roads table, the objects are also highlighted. Please Note: Even though the new data window is a new window, it is still dealing with the same spatial objects from the Roads data file. You will notice when you select an object in either window, or change the mane of a spatial object. You can, however, save the Query table in a separate file via File > Save Copy As, where you will have to select the right Query table from the list. With every query a new table is added to the memory, so when you do multiple queries you can recognize them by the number. For important queries it is advised to save them under another name immediately.
SQL Select
When you need a more advanced selection you can use the SQL (short for Standard Query Language) Select function. For instance, when you want to select all areas that contain a shopping mall, you need data from two different tables (Shoppingmalls and Regions) and the selection has to match a geographical requirement (contains). Go to Query > SQL Select and behold the menu. In the field From Tables we have to indicate which tables will be used, in this case Shoppingmalls and Regions. Please Note: the table from which the selection will have to be made (in this case Regions) must be mentioned first. Activate the From Tables field. You can now select the tables one by one from the Tables dropdown menu. Now there should be Regions, Shoppingmalls in the From Tables field. When two tables are selected, MapInfo will automatically create a requirement that will have to be met, in this case Regions.Obj Contains Shoppingmalls.Obj, which means that all spatial objects from Regions will be selected that contain a spatial object from Shoppingmalls. This is already a great start, but we will add another requirement. Move the cursor to the Where Condition Field. Select And from the list of Operators. From Columns select Shoppingmalls.Totalshops, from Operators > (more than), and add the number 50. This field should now contain the formula Regions.Obj Contains Shoppingmalls.Obj And Shoppingmalls.Totalshops > 50 (see fig. 6.3). Click Verify to check the structur of the condition. If the syntax is correct, click OK twice and check if the areas North and West have been selected.
Oddly enough, there are 3 fields in the new Query browser. This is because for every combination of shopping mall and area that meets the requirements a separate entry has been made. Dupont Mall is situated in two areas, and is thus mentioned in both areas. Washington Mall also meets the requirements, so it is also mentioned, even though the area West is already mentioned for Dupont Mall. When you try to select one of the two West rows in the Query2 Browser, you will notice that the other is automatically selected as well; they are, in fact, the same spatial object (the region West). To end this lesson, close all windows. If necessary save the changes in the tables but do not save the workspace.
Redistricting
A much-used operation within GIS is the joining of areas/lines/points into one area/line/point based on a characteristic (called Redistricting). Redistricting is used to execute calculations with a wide range of aggregated data with district totals as a result. With the aid of a District Browser the overall data per district can be presented. In the district browser, one record at a time is selected, which is called the Target District. In the following example, we will be combining the areas North and East into District 1 and the areas South and West into District 2. The aforementioned aspects of Redistricting will be encountered. Before we can execute the redistricting, we have to add a data field to the Regions table. This data field will determine to which district an area belongs. Go to Table > Maintenance > Table Structure and add a new column named District (type Character 8) to the Regions table. Please Note: When this column does not appear immediately in the Regions browser, right-click it, select Pick Fields and add the District Column to the browser. Fill in the newly created column as in the figure below (fig. 7.1).
Now select Window > New District Window. Look at the menu in which the following options are given (fig. 7.2). 1. Source Table, in which the combination should take place 2. District Field, in which is indicated to which district each object belongs. 3. Available fields; the fields which will be available after the combination, with indication with what they should be filled. For example, Sum(Inhabitants) means that, after combination, there will be a field with the total number of inhabitants for the district. 4. When you want these fields to show up after combination, you move them to the Fields to Browse list. By default the fields District (name of the district), Count (the number of underlying areas), and Fill (what filling pattern indicates the area) are included here.
Fill in the menu with categories you want to show up (for instance Sum(Inhabitants) and Pct(Inhabitants)) Click OK to see the results. The image below (fig. 7.3) shows the result of a Redistricting. In the newly created layer and accompanying data window you can see two districts. The data for these districts are combined into one table. For instance, the number of areas is combined (Count) and the number of inhabitants has been added per district (Sum).
Close all windows. When you do this MapInfo will give you the following message (fig. 7.4).
Figure 7.4: Closing window when changes have not been saved
This concerns the newly created district data window that is not yet included in the workspace. It is not necessary that it is included in the workspace. Click Discard to unplug the application. Save the changes to the Regions table (addition of the District column).
Buffer Analysis
In this segment we will determine how many inhabitants suffer from traffic noise from the roads we have drawn in. To do that we will first draw a buffer around the roads that will indicate the affected area. We will place that buffer in a separate table. Open your workspace Add a new table to the current map window (only check the option Add to Current Mapper). Add one character field (Character 16) labeled Name. Save the new table under the name Buffer. The table will now be added to the map window. In Layer Control, make sure that the Buffer Layer is the editable layer. Select the Roads Browser. Go to Query > Select All to select all roads. Now make sure the map window is the active window! Go to Objects > Buffer. Check the option From Column and select Expression. In the window that now appears, add the formula TrafficVolume * 15 (either by hand or with the dropdown menus). Set units to meters. With the Smoothness option, you can adjust the number of segments for a circle (the higher the number, the smoother the circle). You can leave this set at its default (12). MapInfo can also create a separate buffer for every Polyline, or create one buffer for all lines. Select One buffer of all objects (the default setting). Click Next, and then OK. On the map a new area appears that represents the buffer (fig. 7.5)
By using Options > Region Style you can edit the display of the buffer. When you choose a pattern filling and uncheck Background, the underlying map will be visible through the pattern. Make sure the underlying map becomes visible through the buffer (fig. 7.6).
To be able to decide how many people live in the buffer area, we will have to divide the buffer among the region areas. To do this we will have to make adjustments to the Regions table. As we might want to make other buffer analyses in this area, we will make a copy of the Regions table. Go to File > Save Copy As. Select Regions and save it as RegionsBuffer1. Open this table via File > Open On screen you will see a white-filled area (fig 7.7). To be able to work with the files we have to be able to see the underlying layers as well.
We make the underlying map visible in the Layer Control Menu. Double-click the RegionsBuffer1 layer and set the fill to none (N). By default the Regions layer is on top of the Regionsbuffer1 layer, so any changes will occur to the Regions layer. You could move the Regionsbuffer1 layer on top of the Regions layer, but we are going to do something else. Make the Regionsbuffer1 layer editable. Make the Regions layer not selectable by deselecting the Selectable icon.
Overlay Analysis
Now the splitting can start. In essence, we will be performing an overlay analysis. With the actions to be executed we will combine two layers (Regions and Buffer) with each other. The three regions in which the buffer is situated will be divided into six smaller regions with the help of the buffer borders. Nothing will happen to the region South, as the buffer is not in that region. Select the three areas (North, East, West) in which the buffer is situated (by using the Shift key) and set them as the target for the split with Objects > Set Target. Select the buffer. Go to Objects > Split. We want to split Inhabitants by Area Proportion, so the total number of inhabitants will be divided relative to the new areas (fig. 7.8). Click OK.
As a result from the Overlay Analysis, the RegionsBuffer1.tab table will now contain seven spatial objects, the new area sections. Open the data window for RegionsBuffer1 via Windows > New Browser (fig. 7.9). Select multiple areas in the newly opened browser window to view the exact borders of the different areas.
To select all the new areas within the buffer zone, we will perform an SQL select. The tables used are RegionsBuffer1, Buffer(RegionsBuffer1 first, as that is the table we will be selecting form) and the condition is Buffer.Obj Contains RegionsBuffer1.Obj (Please Note: this is exactly the opposite of what MapInfo suggests). A new Query Browser (Query2 Browser, fig. 7.10) will be opened with the data of the areas that are within the buffer zone. There could be more categories in your table, depending on the data in the original tables that was or was not saved in previous lessons (such as Area, Density, or Sum of DailyShops).
With the Statistics Menu (Options > Statistics or the icon in the main toolbar) we can see that there are around 3000 people living in the buffer area (fig. 7.11). The exact number can vary, as you could have drawn the region borders slightly differently.
To end this lesson, close all windows. If necessary, save any changes to the tables.
In general, and also in MapInfo, the following types of thematic maps can be generated: 1. Ranges: the available spatial objects are ranked on the basis of one data field, where every tier gets its own color or filling. A tier division can occur on the basis of number of objects within the tier, natural borders based on a specific algorithm, specified percentage borders, or manually specified borders. 2. Bar Charts: for every spatial object one or more data fields can be reproduced in a bar chart. 3. Pie Charts: for every spatial object one or more data fields can be reproduced in a pie chart. 4. Graduated: the data of objects is displayed with the aid of a scaled symbol. The size of the symbol is determined by the value of the data field. 5. Dot Density: The data of spatial objects is displayed with the aid of dots In the area. Each dot represents a number of occurrences, for instance 100 inhabitants. 6. Individual: The filling or color is displayed per spatial object (no gradation). 7. Grid: The data of point objects is presented with a continuous color gradation. The gradation is calculated by interpolating between point data in the table file. In the Thematic Map menu (which we will use in this lesson), graphic examples accompany the buttons for each option. Open your workspace. Select the map window. Go to Map > Create Thematic map. An extensive menu will appear with a multiplicity of options, with varying color schemes, symbols, and filling patterns. Browse through the menu and observe the different thematic map options, types, and templates (fig. 8.1).
Click Next to continue to the final step of creating a thematic map (fig. 8.3).
Accept the default settings and click OK. On your map, the chosen theme is now displayed with scaled circles (fig 8.4). What the circles mean is displayed in the accompanying legend.
Figure 8.5: The result of creating the theme for the Shoppingmalls layer
We can make the theme even clearer by changing the settings (fig. 8.5). Go to Map > Modify Thematic Map and click Settings. Click Options. Here you can change the symbol and color if you would like to. Set the Graduate Size By to Constant. When you have clicked OK twice, you will see that the ratio between circles has changed.
Accept the default settings in step 3 and behold the results (fig. 8.7).
To make the underlying map visible again we have to edit the filling pattern via Map > Modify Thematic Map. This option will only appear when the map is the active window. Select Regions (Ranges by). Click Styles under Customize. Click the top color range (fig. 8.8) and select a filling pattern that is not solid and deselect Background so the underlying map will become visible. Click OK Click on the bottom color range and select the color green and the same filling pattern as the top range.
When you click OK, you notice that the color gradation is made via an ugly brown (for the middle category). To change this, fold out the Options and set the color spread to HSV (Hue, Saturation, Value) instead of RGB (Red, Green Blue) under Auto Spread Style by.
Click OK twice to return to the map. Back at the map (fig 8.9), you can now see that two areas have a low density (light color) and two have a high density (darker color),
You might wonder where and how the information of these thematic maps is stored. Open Layer Control (fig. 8.10). You will see that the thematic maps have been stored in separate layers, but you cannot change the order of these layers (the up and down button are disabled). This is because the thematic layers are always right on top of the layer that they have been derived from. You can also see that the thematic layers cannot be made editable or selectable, or have a label attached to them. You can, however, make the layers (in)visible separate from their derived layer.
Close Layer Control. The thematic layers are not treated as normal tables, and cannot be saved as such. You save thematic layers in your workspace. If the legend was not yet visible, you can make it appear by clicking the Legend symbol in the Main toolbar (next to the symbol). The contents of the legend can be edited through Map > Modify Map. Click Legend Change the titles of both generated thematic maps to Shopping Mall Size and Population Density (fig. 8.11).
References
Bremer, P. (1999) CAUD, Computer Aided Urban Design. Afstudeerverslag Technische Universiteit Eindhoven, Eindhoven.
MapInfo Corp. (1998) MapInfo Professional: User's Guide, Troy, New York.
MapInfo Corp. (1998) MapInfo Professional: Reference Guide, Troy, New York.
Van Leusden, L. & Van Nunen, B. (1998) Brandevoort, een andere kijk op VINEX, verslag Stedebouwkundige Planologie 5, Technische Universiteit Eindhoven, Eindhoven.
Van Nunen, B.L.T. (1999) GIS in de Ruimtelijke Ordening bij Gemeenten. Afstudeerverslag Technische Universiteit Eindhoven, Eindhoven.