lab 2: projecting geographic data

30
Lab 2: Projections 1 Lab 2: Projecting Geographic Data What you’ll Learn: Basic methods for map projections in ArcMap. What You’ll Produce: A map of Minnesota in three different statewide projections, a map of reprojected Minnesota county boundaries with an inset global view, and a worksheet recording areas and coordinates for various projections. Background: Chapter 3 of the GIS Fundamentals textbook provides the necessary background. We introduce unavoidable distortion when we flatten the Earth’s curved surface onto a flat map. Different map projections represent the same points with different X and Y (or E and N) coordinate values. We cannot mix map projections in an analysis, so we often have to re-project some of our data layers. Note that in the instructions below we often use the terms “map projection,” “projection,” and “coordinate system” interchangeably. A map projection is associated with a specific coordinate system, and to project data is to convert from one coordinate system to another. Data: For this exercise are in the class resources Lab/lesson 2 on the class website lab page Week 2 or on the lab share drive (\files.umn.edu\cfans\labs), see the Quick Start or related video for access instructions Observing How Distance May Change with a Map Projection Start ArcMap, and add two data frames. Name one Albers, and the other Mercator (see last week’s lab or last week’s video Data Frames for instructions) Activate the Alber’s Layer (right click on data frame name, then Activate) Add the layers twocity_Albers.shp, and USA_48_Albers.shp. Left click on the Measure Tool to enable it, and set the Distance Units to Miles (see Lab 1 instructions/videos in you don’t remember) Left-click once on Los Angeles, then move the mouse to New York and double left-click on New York. The distance between the two cites is displayed, either in a drop-down window, or at the bottom left of the ArcMap window (it depends on the version and setup). Your measured distance should be approximately 2,440 miles. Activate the Mercator data frame. Add the layers twocity_Mercator.shp, USA_48_Mercator.shp

Upload: others

Post on 29-Nov-2021

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lab 2: Projecting Geographic Data

Lab 2: Projections

1

Lab 2: Projecting Geographic Data

What you’ll Learn: Basic methods for map projections in ArcMap. What You’ll Produce: A map of Minnesota in three different statewide projections, a map of reprojected Minnesota county boundaries with an inset global view, and a worksheet recording areas and coordinates for various projections. Background: Chapter 3 of the GIS Fundamentals textbook provides the necessary background. We introduce unavoidable distortion when we flatten the Earth’s curved surface onto a flat map. Different map projections represent the same points with different X and Y (or E and N) coordinate values. We cannot mix map projections in an analysis, so we often have to re-project some of our data layers. Note that in the instructions below we often use the terms “map projection,” “projection,” and “coordinate system” interchangeably. A map projection is associated with a specific coordinate system, and to project data is to convert from one coordinate system to another.

Data: For this exercise are in the class resources Lab/lesson 2 on the class website lab

page Week 2 or on the lab share drive (\files.umn.edu\cfans\labs), see the Quick Start or related video for access instructions

Observing How Distance May Change with a Map Projection

Start ArcMap, and add two data frames. Name one Albers, and the other Mercator (see last week’s lab or last week’s video Data Frames for instructions) Activate the Alber’s Layer (right click on data frame name, then Activate) Add the layers twocity_Albers.shp, and USA_48_Albers.shp.

Left click on the Measure Tool to enable it, and set the Distance Units to Miles (see Lab 1 instructions/videos in you don’t remember) Left-click once on Los Angeles, then move the mouse to New York and double left-click on New York. The distance between the two cites is displayed, either in a drop-down window, or at the bottom left of the ArcMap window (it depends on the version and setup). Your measured distance should be approximately 2,440 miles. Activate the Mercator data frame. Add the layers twocity_Mercator.shp, USA_48_Mercator.shp

Page 2: Lab 2: Projecting Geographic Data

Lab 2: Projections

2

Re-measure the distance from LA to NY. The new measurement should be approximately 3,127 miles. The on the “ground distance” between LA and NY is actually 2,444 miles. The difference in measurements between the “Albers” and “Mercator” is due to unavoidable distortion caused when we stretch measurements from the curved Earth surface to a flat map surface. Notice that the distortion is different for different projections.

Data Frame Coordinate Display Later in this lab, you will learn to project data from an existing file to create a new file with a different coordinate systems. First we want to introduce the idea of a temporary, or “on the fly” projection, something that ArcMap often does when you add data to a data frame (Video: On the fly projection). A data frame usually has a specified coordinate system. You can manually set the system, or ArcMap can establish one automatically when you first load data. Once a data frame has been specified, ArcMap will display the approximate coordinates of the current cursor location in the lower-left of the frame (see the arrow below. Create a data frame, and add the minn_count_dd data. This is a data layer of Minnesota county boundaries in decimal degrees coordinates.

Page 3: Lab 2: Projecting Geographic Data

Lab 2: Projections

3

Move your cursor around the screen and notice the coordinate values to the lower right. Note how these change along with the cursor position as the program displays the map projected coordinate values corresponding to the cursor position. You can change the units to correspond to your coordinate system, see the Video, Cursor Coordinates.

Page 4: Lab 2: Projecting Geographic Data

Lab 2: Projections

4

From the assigned textbook readings, you should know what decimal degrees coordinates look like. The data frame may be displaying some other coordinate units. To change the display coordinate units while navigating around the map: -right click on the data frame name in the Table of Contents at the left of the Data Frame, then -left click on Properties, General tab This will display various panes in a window. About half-way down you can set the display units. Select Display, then Decimal Degrees (see figure on right). Click on OK to close the window, and verify that the units are now displayed as decimal degrees. You can display the county names by right clicking on the minn_county_dd name in the Table of Contents, and then checking the box for “Label features in the layer” near the upper left, and making sure the label field is NAME. This is a column we created for each county that contains the county name. See the Video: Label Features

Page 5: Lab 2: Projecting Geographic Data

Lab 2: Projections

5

Zoom in and reposition the cursor successively until you have an accurate reading for the coordinates of the northeast corner of Ramsey County (see the map figure, below). You’ll know you’re zoomed in enough when the coordinate values don’t change or only change in the third decimal place when you move slightly off of the displayed corner. Record the decimal degree coordinates of the northeast corner of Ramsey County on the Lab 2 Worksheet, either a hand copy or printout of the page at the end, or the editable MSWord worksheet provided with this week’s data files

NE corner Ramsey County

Page 6: Lab 2: Projecting Geographic Data

Lab 2: Projections

6

Data Layer Coordinate System vs. Data Frame Coordinate Systems Every data layer has a coordinate system associated with it. The X and Y coordinates are expressed in some units, and they may be geographic (longitude/latitude), or projected (X,Y, or Easting/Northing). I can

• right click on a layer name in the table of contents (TOC), then

• Properties, and

• click on the source tab

to show the data coordinate system. When done for the minn_count_dd data, it shows the geographic coordinate system for the data layer: This is the coordinate system for the data set.

Page 7: Lab 2: Projecting Geographic Data

Lab 2: Projections

7

Add the USA_48_Mercator to the same data frame. Open the Properties – Source tab for this data layer, and it should display something like the window: Note it lists the projected coordinate system as World_Mercator Grab and drag the minn_count_dd to the top of the list in the Table of contents

(TOC), and zoom to all layers (click ), and you’ll get a display similar to that below. Note that although the different data sets are in different projections, they line up on top of each other. Why?

The layers line up because ArcMap allows a data frame to have a set projection, different from the projection for data added to the frame. ArcMap temporarily re-projects all added data to the set data frame projection. (see Video, Data Frame Projection)

Page 8: Lab 2: Projecting Geographic Data

Lab 2: Projections

8

The reprojection is temporary, when loading data to a data frame. It doesn’t change the data on the disk, but re-calculates coordinates between reading it and displaying it. This can be helpful, because we can coherently display data that are in different coordinate systems, but it can be a trap, because it can obscure the true projection of a data layer. This can be quite confusing at first, but you need make sure you understand this concept of a data frame coordinate system, with temporary reprojection, and a data layer coordinate system– the coordinate system the data are stored in. If you understand this difference, you will likely save yourself much confusion and grief. Why is this important? Some operations won’t work correctly, for example when editing, some overlays, or area calculations, or distance measurements, if data layers are in different coordinate systems. You may think they are in the same system if you display them together, but your geo-calculations may be wrong. Sometimes you will be confused in interpreting data, or mis-identify the coordinates because data are re-projected temporarily for display. Remember, if you have any questions about the coordinate system of a layer, look at the layer properties, as shown above. Let’s explore this further. First let’s look at the current data frame coordinate system. Right click on the name of the DATA FRAME in the TOC (with the default name of Layers, or in our case, New Data Frame in the first figure at the start of this lab), then left click on Properties

Page 9: Lab 2: Projecting Geographic Data

Lab 2: Projections

9

Click on the Coordinate System tab, and it should display something like the window at right. The bottom half displays the current coordinate system. The GCS_WGS_1984 is the label for that specific geographic (lat./long.) coordinate system. The top half displays a selection window that allows you to set the coordinate system. Let’s change the data frame coordinate system. Click on the Projected Coordinate Systems folder, then Continental, then North America, then the NAD83 Contiguous USA Albers, then O.K.

Zoom to full layer, and notice it changes the shape of the US and Minnesota data, to look

something like:

Page 10: Lab 2: Projecting Geographic Data

Lab 2: Projections

10

The data on disk haven’t been changed, they’ve just been temporarily reprojected to this specific Albers coordinate system. We can verify the DATA FRAME coordinate system (remember, right click on the data frame name in the TOC, then Properties, then the Coordinate System tab), it should look something like the right. Note in the bottom window pane, it shows the new data frame coordinate system, here listed as Albers, with parameters. Change the Data Frame coordinate system again, this time selecting Projected Coordinate Systems UTM NAD NAD83 UTM Zone 12 N Zoom to full extent, and display the data, noting the change in the projection, as at right. Finally, switch the Data Frame coordinate system again, this time back to the Geographic Coordinate Systems North American NAD83 Note the change in shape. We haven’t changed the projection of the data on the disk, we’ve just told ArcMap to project on the fly, to a new system, before display.

Page 11: Lab 2: Projecting Geographic Data

Lab 2: Projections

11

Creating an Inset Map We can use this temporary projection to create an inset map in a different coordinate system, as you did last week; this time we’ll use a different coordinate system for the inset. First, if you haven’t closed out your last project, do so now, and create a ArcMap project new data frame (see figure at right). Open the data frame properties, and verify that the data frame coordinate system is not set (right click on the data frame name, then properties, then the Coordinate System tab). The Data Frame Properties window should look like the figure at right, with the bottom pane showing no current coordinate system. We could set the data from manually through selection in the top pane. Don’t do this now, but we could click on the folders, e.g., Projected coordinate systems, and navigate as above to set a coordinate system for the data frame. Alternately, we could load a layer that already has the coordinate system we want, and when we do this to an empty data frame, it will assign this layer’s coordinate system to the data frame. To clarify, loading a data layer into a new Data Frame sets the Data Frame coordinate system; all subsequent layers will be projected, if possible, on-the-fly to this original system while being displayed. Add the minn_county.shp layer to the empty data frame. Verify that the data frame coordinate system has now been set to NAD_1983_UTM_Zone_15N.

Click here to create a new ArcMap project, or type Cntl-N on the keyboard

Page 12: Lab 2: Projecting Geographic Data

Lab 2: Projections

12

Rename this data frame “Minnesota Counties.” Now, insert a new data frame, and name it “Earth From Space.” Again, verify that the data frame has no current coordinate system Now change the coordinate system for the data frame manually: Open the data frame properties, and set the Coordinate System to: Projected Coordinate Systems World The World from Space Again, look at the data from properties, you should see a bottom pane in the window that shows and orthographic projection, similar to the figure on the right. Add three data layers to this new data frame:

• Countries (boundaries of the World’s countries in 1990, in geographic coordinates)

• minn_county (Minnesota counties, in UTM Zone 15N coordinates), and

• graticule15 (lines of constant latitude and longitude, at 15 degree intervals)

Re-arrange the layers so the graticule is on top in the TOC, then the minn_count layer second, with the Countries layer at the bottom. Symbolize the minn_count layer so it is a solid bright color, and Countries polygons so they are a light or pastel, and the graticule as a thin black line, so that you have something like the figure at right.

Page 13: Lab 2: Projecting Geographic Data

Lab 2: Projections

13

Zoom to the data layer full extent with , then switch to the first data frame with only the minn_county data (right click in TOC, Activate), and also zoom to full extent. Switch to layout view (see last week’s lab). Notice there are boxes for each frame. They may overlap, so you may have to click one and hold to drag aside. Move and resize the boxes, perhaps also going back to the data view and panning/zooming, so that the Minnesota State box is larger, and the US/Minnesota combined data are about 1/6th the size, as in many inset maps (see figure). You have two different frames in this common map design, with a small inset showing general location in one coordinate system, and a larger panel in a different coordinate system showing detail for the highlighted portion of the inset. Note that each panel has a bounding box or frame around it in the layout view. The larger bounding box interferes with the inset You can remove this bounding box by:

• right clicking on the box,

• selecting Properties from the bottom of the dropdown menu, and

• then the Frame tab in the resultant window. (see Video from last week, Data Frames) Add a North arrow to your map, a caption, your name, a legend, and descriptive title, and export/print a PDF, as instructed last week. See an example below of the map you should produce. Although you need not exactly match the colors and positions, make sure to include a proportioned main map and inset, a descriptive title, your name, a north arrow, and scale bar.

Page 14: Lab 2: Projecting Geographic Data

Lab 2: Projections

14

Page 15: Lab 2: Projecting Geographic Data

Lab 2: Projections

15

There are a couple of additional points about on-the fly-projections. You may obtain data that has been projected to a coordinate system, but for which the identity of the coordinate system has been lost. This is most common with shapefiles, where the coordinate system information is stored in a .prj file, e.g., minn_county.prj. If the file is lost, damaged, mis-specified, or not copied with the rest of the shape files, then the ArcMap program can’t identify the layer’s coordinate system. If you know the coordinate system, you can add the prj file back or fix it for a geodatabase through the “Define Projection” tool in the ArcToolbox (shown at the right, we’ll describe ArcToolbox more in the next section). If you don’t know what the projection is, you either need to try to figure it out by matching coordinates or overlaying with other data, or you will likely have to discard the data, because it isn’t very useful without knowledge of the coordinate system. Second, when you load some data you may get a message that says the datums may be incompatible, typically because there is not a datum transformation specified. You may ignore these warnings for this Lab (ONLY!). Datum transformations are described in the textbook, GIS Fundamentals, and elsewhere, and whether datum transformation differences are important depend on the source and target projections, the accuracy of the data, and the goals of the analyses. In this exercise, for the data we’ve given you, the datum differences aren’t significant, but datum shifts are important in many applications.

Page 16: Lab 2: Projecting Geographic Data

Lab 2: Projections

16

Projecting Data to a New File – The Project Tool The above section describes how to reproject the coordinate values temporarily. However, we often want to permanently project the coordinate values in a data set from one coordinate system to a new data set, in a different projected coordinate system. We accomplish this in ArcGIS with the projection tool. Each time we apply the projection tool, we identify the source data set, the output data set, and the output projection. Most source data sets have a coordinate system associated with them. The Project tool reads this coordinate system to determine the input. We then specify the output, including the datum transformation, if needed, and save the new file to a target location (Video, Project to a new file).

Create a New Map (FILE NewBlank Map) and insert two new empty data frames in addition to the default, for a total of three data frames.

Now left click on the ArcToolbox, the little red toolbox along the

Page 17: Lab 2: Projecting Geographic Data

Lab 2: Projections

17

Icon ribbon, or available via the Geoprocessing menu listed along the top bar, or perhaps a side bar (see arrows, below)

Page 18: Lab 2: Projecting Geographic Data

Lab 2: Projections

18

This should open the ArcToolbox (see right). Click on Data Management Tools then Projections and Transformations then Project The Project tool converts data from one coordinate system to another, saving the projected data to a new file. Detailed instructions for specific projection examples are provided a bit further on in this document, but the general process is to start the Project tool, and then:

• Select a data layer containing the features you like to convert to a new coordinate system

• Specify an output location and name for a new data layer

• Specify the output projection, and if need be, a datum transformation (Arc calls it a Geographic Transformation, the same thing as the datum transformation described in the textbook

• Apply the projection

Page 19: Lab 2: Projecting Geographic Data

Lab 2: Projections

19

Remember, ArcGIS shapefiles store information about the projection in a .prj file. For example, a layer named minn_county_dd may have projection information stored in the file minn_county_dd.prj. The .prj file is not mandatory, however, even though all data do have a coordinate system. Without a .prj, ArcMap is ignorant of the projection system, so you may have to specify the input as well as output projections in the general steps above.

Detailed Instructions This section will step you through the projection screens. You will have to use these steps several more times in this Lab. In later iterations, refer back to this sequence. Remember, did you: Start a new empty ArcMap project (.mxd) by selecting FileNewBlank Map. Add two (2) more EMPTY Data Frames with InsertData Frame. As stated in on page 16. If not do so now. Start the Project Tool from the ArcToolbox, as shown in the previous figure. This opens a window where you specify the:

Input data Output data set and location Output coordinate system, and optionally, (only if needed/required) a geographic transformation, usually (and in the textbook) called a datum transformation. You specify each of the projection options by clicking on the entry bars or adjacent buttons.

Page 20: Lab 2: Projecting Geographic Data

Lab 2: Projections

20

Fill out the window as shown here, with helpful details on selecting the output coordinate system below.

Specifying the output projection is often done through navigating a “tree” of available

options. Open the menu by clicking on the Output Coorindates selection icon: This opens a window with expandable lists, through which you can select a pre-defined coordinate system. The two most common choices are Geographic (latituded/longitude) and Projected (Cartesian) coordinate systems. Here successively click on the folders to select Projected,

Page 21: Lab 2: Projecting Geographic Data

Lab 2: Projections

21

then click on Continental, then click on North American then click on USA Contiguous Albers Equal Area Conic, then OK at the bottom of the window.

Page 22: Lab 2: Projecting Geographic Data

Lab 2: Projections

22

Barring errors, the selected projection should show up in the Output Coordinate System window Clicking OK at the bottom of the window will perform the projection, and create a new file. The above will create the new data file, projecting from the original Geographic system to the Albers coordinate system you specified. Now add the Albers_minn_county layer to an empty data frame, if it is not already added automatically.

Change the name of this data frame to Albers (remember, right click on the data frame name in the table of contents, then select the Properties option, then the General tab, then type the new name in the Name textbox). Project to a UTM Coordinate System Activate one of the other data frames, and change its name to UTM Zone 15N Use the project tool again, with

- input once again as the minn_county_dd data

- a new output data set, named UTM15_minncounty,

- an output coordinate system via

• Projected Coordinate Systems, then

• UTM, then

• NAD83, then

Page 23: Lab 2: Projecting Geographic Data

Lab 2: Projections

23

• NAD83 UTM Zone 15N

Your last screen when selecting the output coordinate system should look like that at the right Click on OK to apply the projection, and load the data to your data frame named UTM Zone 15N

Project to a Custom Mercator Coordinate System Rename your remaining, empty data frame to Custom Mercator (Video,CustomProjection). Use the projection tool in ArcToolbox one more time, with - input once again as the minn_county_dd data

- a new output data set, named Custom_Mercator_minncounty,

- a custom output coordinate system where we select along the projection tree as

before:

• Projected Coordinate Systems, then

• World, then

Page 24: Lab 2: Projecting Geographic Data

Lab 2: Projections

24

• Mercator (world), then

• Right click on Mercator (world), as shown below, then

• Left click on Copy and Modify

Page 25: Lab 2: Projecting Geographic Data

Lab 2: Projections

25

This should display a projected coordinate system properties menu (see figure at right). You should change the name to Custom Mercator and change the Central_Meridian to -94.00 You can then click on Apply, then OK to create the custom projection, and then click OK at the bottom of the projection list window to close that menu.

Page 26: Lab 2: Projecting Geographic Data

Lab 2: Projections

26

You should then have the Project Tool window like that shown below

Note the output coordinate system is set to Custom Mercator, And ArcGIS will automatically set a Geographic Transformation (same as Datum Transformation if needed). It guesses at the appropriate datum transformation based on your input and output, usually correctly. Hit OK to affect the projection.

Now you should have three different data frames, with three different versions of the Minnesota counties – an Albers, a UTM, and a custom Mercator. Notice the shapes are different, not so much between the Albers and UTM, but noticeably so for the Mercator relative to the other two.

Activate the measure tool , set the distance units to miles:

Page 27: Lab 2: Projecting Geographic Data

Lab 2: Projections

27

Measure Distances from the northeastern-most point of Minnesota to the southwestermost point for each of your three projections. Do this as carefully as you can, it pays to expand the data frame window to as large as will fit on your screen. Write down the distances, perhaps on the lab 2 worksheet at the back of this lab, to be entered for online grading later. Also, record the coordinates for the northeast corner of Ramsey County for all three coordinate systems, as you did for the

decimal degrees display at the start of this lab. Write the coordinates down for the Albers, UTM, and custom Mercator projection layers onto the worksheet at the end of this lab. Create a map with all three Minnesota projections We wish to create a map with all three projections. For a fair comparison, we’ll need to set a fixed scale for each of the data frames.

Page 28: Lab 2: Projecting Geographic Data

Lab 2: Projections

28

• First, go to the layout view, and in File > Page and Print Setup, set the Orientation button about mid-way down from Portrait to Landscape

• Reposition the 3 data frame boxes to be side by side and about the same size. You may want to change the colors of the layers in each data view for easy identification.

• On the layout view, select each data frame (one at a time), right click, select Properties and from the Data Frame tab, and change Extent to a fixed scale (see figure following).

• Set the scale for each Make each the same scale, something near 1:10,000,000 or so. Note you shouldn’t type in the 1: or the commas into the window, we show them here for clarity.

Page 29: Lab 2: Projecting Geographic Data

Lab 2: Projections

29

The example shows a scale or 1:14,500,000, which may be a bit small, but anything between that and 1:10,000,000 should work. Make sure you choose the same fixed scale for each data frame and Apply, then OK. Note the default is a border around each data frame in the layout view, and the map looks better if you remove them, as shown before (Data Frame Properties FrameBordersnone) Add a name, North Arrow, title, and scalebar, and individual titles for each data frame (see example). Note that you don’t need to add a legend.

Page 30: Lab 2: Projecting Geographic Data

Lab 2: Projections

30

Distance Across Minnesota, from northeast to southwest, in miles: Albers: UTM Zone 15N: Custom Mercator: Coordinates of northeast corner of Ramsey County:

Projection x-coordinate y-coordinate

Decimal degrees

Albers (Meters)

UTM Zone 15 (Meters)

Custom Mercator (Meters)