8
1 Tutorial 6: Creating a Point Layer and Adding Data to the Attribute Table Tutorial Content 6.1. When should I use a point layer to represent data? 6.2. How can I add data to an attribute table? a) Customising the Attribute Table b) Adding Point Data to the Layer c) Adding Data to the Attribute Table 6.3. How do I save my edit session? 6.4. Can I create a shortcut to common editing commands? 6.5. How can I customise the Point Layer? Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical location, an example at a detailed level might be trees which have been mapped as part of a tree survey. At a regional or national level, points might be used to represent the location of individual towns and cities. In this example we are going to create points which represent the approximate site of some of the former industrial water mills in the Loxley Valley. We are also going to indicate whether the water mills are considered to be of archaeological significance being listed on the Sites and Monuments Records (SMR) by adding data to the layer’s attribute table. A small selection of the Loxley Valley’s former mills is listed in the table below, along with their SMR status. These are the mills we will plot. Mill Name Listed on the Sites and Monuments Record Low Bradfield Corn Mill No Dam Flask Corn Mill No Dam Flask Paper Mill No Loxley Wire Mills Yes Olive Paper Mill Yes The locations of the water mills listed in the table have been indicated on the map below, which is from Crossley, D. 1989. Water Power on the Sheffield Rivers. Sheffield Trades Historical Association and the University of Sheffield. Page 77.

Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

1

Tutorial 6: Creating a Point Layer and Adding Data to the Attribute Table Tutorial Content 6.1. When should I use a point layer to represent data? 6.2. How can I add data to an attribute table?

a) Customising the Attribute Table b) Adding Point Data to the Layer c) Adding Data to the Attribute Table

6.3. How do I save my edit session? 6.4. Can I create a shortcut to common editing commands? 6.5. How can I customise the Point Layer?

Open your saved tutorial map project. 6.1. Points

Point layers are used to represent data that has a precise geographical location, an example at a detailed level might be trees which have been mapped as part of a tree survey. At a regional or national level, points might be used to represent the location of individual towns and cities. In this example we are going to create points which represent the approximate site of some of the former industrial water mills in the Loxley Valley. We are also going to indicate whether the water mills are considered to be of archaeological significance – being listed on the Sites and Monuments Records (SMR) – by adding data to the layer’s attribute table. A small selection of the Loxley Valley’s former mills is listed in the table below, along with their SMR status. These are the mills we will plot.

Mill Name Listed on the Sites and Monuments Record

Low Bradfield Corn Mill No

Dam Flask Corn Mill No

Dam Flask Paper Mill No

Loxley Wire Mills Yes

Olive Paper Mill Yes

The locations of the water mills listed in the table have been indicated on the map below, which is from Crossley,

D. 1989. Water Power on the Sheffield Rivers. Sheffield Trades Historical Association and the University of

Sheffield. Page 77.

Page 2: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

2

Low Bradfield Corn Mill Dam Flask Corn Mill Dam Flask Paper Mill Loxley Wire Mills Olive Paper Mill

Page 3: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

3

6.2. Adding data to an Attribute Table a) Customising the Attribute Table

In this example we also want to add information to the point layer’s attribute table. First we need to open the attribute table. Right click on the layer name in the table of contents, in this case the point layer created in Tutorial 5: water_mills. Then select the option Open Attribute Table from the drop down menu.

The Attributes Table window will open. We have not yet added any data to the layer, so the table has no lines of data in it. We want to add two new columns (known as fields) to the table so that we can add the name of the water mill and record whether it is listed on the SMR. Click on Options in the bottom right hand corner of the window and select 'Add Field. . .' from the drop down menu.

The ‘Add Field’ window will open. First we want to create a column for the name of the water mill. In the ‘Name:’ text box type water_mill. In the ‘Type:’ text box select the option Text from the drop down list.

Click OK.

*Note: Don’t include spaces in field names, use an underscore instead (_) and

keep the length of the ‘name’ with less than 10 characters. The new water_mill column will be added to the attribute table. Now we want to add a column (field) to indicate whether the mill is listed on the SMR. Click on Options again and select Add Field. Create a ‘Text’ field and name the field ‘SMR_listed’. Click OK.

The new field will be added to the right of the water_mill field that we just created. Note: you might need to use the bar at the bottom of the window to scroll along to see it. Close the attribute table.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

Page 4: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

4

b) 6.2.2. Adding Point Data to the Layer

Data must be added to the ‘water_mills’ in an ‘Edit Session’. When you have added the necessary information to your data layer you must end the ‘Edit Session’. All edits are temporary until you have chosen to save and

permanently apply them to the layer. You can also quit an ‘Edit Session’ without saving the changes.

First it is necessary to specify which layer is to be edited (the target layer) so that ArcMap knows which layer is to be modified. To do this it is necessary to show the ‘Editor’ toolbar. Click on the ‘Editor Tool’

icon. The ‘Editor’ toolbar will be displayed.

To set the target layer, click on the drop down list in the ‘Editor’ toolbar and select the option Start Editing.

The ‘Start Editing’ window will open. Click on the source folder that you have saved your ‘water_mills’ shapefile in. Click OK.

The ‘Target:’ layer window in the 'Editor toolbar' will now show ‘water-

mills’. We also need to specify an Editing ‘Task:’ we want the default option ‘Create New Feature’

To add points to the layer we need to select the ‘Sketch Tool’ from the ‘Editor’ toolbar.

We are now ready to add our points to indicate the locations of the five water mills listed in the table. Refer to the map above from Crossley (1989) for the approximate locations of the mills. You might want to use the zoom tools in ArcMap to help find the right location. When you have identified the correct location, you can add a point by clicking. In this example we have zoomed in on the OS plan of the area of Low Bradfield to add a point for the site of the ‘Low Bradfield Corn Mill’ You might need to turn on the ‘Raster-50k-sk28’ layer to help you navigate your way around the Loxley Valley. After you have added a point, it is best to add the attribute data for that point to the layer table before you add the next point.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

Page 5: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

5

c) Adding Data to the Attribute Table

We want to add the details to the attribute table for the Low Bradfield Corn Mill point. Click on the ‘attributes’ icon in the ‘Editor’ toolbar.

The ‘Attributes window will open. Click on water_mill. You will be

able to add the name to the table. Type ‘Low Bradfield Corn Mill’. Click SMR_listed. The corn mill is not listed, so type ‘No’. Then

click anywhere in the white space and close the window. We can check that this information has been recorded in the table by opening it. Right click on the layer name in the table of contents and select Open Attribute Table from

the drop down menu. Close the window and try adding the remaining points to the layer. Don’t worry if you can’t find the exact locations of the mills, we are just using this as an example. Just add the points in the approximate location. After you have added a point, add the attribute information for that point.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

Page 6: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

6

6.3. Saving your Points and Ending your Edit Session

Once you have added your five points and the attribute information, you need to save your edits and end your Edit Session. Select ‘Save Edits’ from the drop down menu in the ‘Editor’ toolbar. It is a good idea to save your edits as you

go along, rather than waiting until you have added all the data to a layer and just saving at the end. To end the editing session select ‘Stop Editing’ from the same drop down menu. If you just select ‘Stop Editing’

and you haven’t saved some of your ‘Edits’ you will be asked if you want to save the edits at this point. 6.4. Creating a Shortcut to the Common Editing Commands

It is possible to create a shortcut to common editing commands, such as ‘Start Editing’, on the toolbar rather than having to access them in the menu. Click on Tools in the menu bar and select Customize from the drop down list. The Customize window will open.

Leave this window open. Click on Editor in the Editor toolbar.

Click on the Start Editing command, hold down and drag next to the ‘Editor’ menu in the toolbar. Do the same for the Stop Editing and Save Edits commands.

Right click each command and select the option Image Only from the drop down menu.

Each command will now be represented by an icon. Now it is possible to start and stop editing with one click. Close the ‘Customize’ window.

6.5. Customising the Point Layer

Your attribute table should contain entries for the five water mills and you should have five points in the map area. The points use a default symbology chosen by ArcMap. We can customise the points using ‘Symbol Selector’. Click on the point symbol in the table of contents to display the ‘Symbol Selector’ window.

Select a symbol from the options in the window. Select a colour under ‘Option’ by clicking on the coloured box,

more colour options will be displayed. The point size can also be changed by altering the value in the box next to ‘Size’. When happy with your selection click OK.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

Page 7: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

7

In this example the points have been coloured red and use point size 10. At the moment the layer is coloured using a single symbol. We can also colour the points based on the information recorded in the attribute table. In this example we are going to colour the points differently depending on whether the water mill is listed on the SMR. Right click on the layer name in the table of contents and select Properties from the drop down menu to open the ‘Layer Properties’ window.

Select the Symbology tab. Select ‘Categories’ option and click on ‘Unique values’.

In ‘Value Field’ drop down list all the fields in the

attribute table are displayed. In this case we want ‘SMR-listed’.

Click on Add All Values. . .

An ‘Add Values’ window will open; select ‘Yes’ and ‘No’ using the ‘shift’ key in the keyboard. Then click OK.

ArcMap will assign a colour to your points. You can customise the colour and symbol by double clicking on them to open the ‘Symbol Selector’.

Click Apply, and then click OK.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.

Page 8: Tutorial 6 - University of Sheffield/file/tutorial6.pdf · Open your saved tutorial map project. 6.1. Points Point layers are used to represent data that has a precise geographical

8

The water mill points are now coloured differently depending on whether they are listed on the SMR.

OS map data © Crown Copyright/database right 2009. An Ordnance Survey/EDINA supplied service.