Presentation is loading. Please wait.

Presentation is loading. Please wait.

GIS DATA SOURCES Getting maps into the Computer Adding Data from existing tables.

Similar presentations


Presentation on theme: "GIS DATA SOURCES Getting maps into the Computer Adding Data from existing tables."— Presentation transcript:

1 GIS DATA SOURCES Getting maps into the Computer Adding Data from existing tables

2 Tables.... The ‘data base’ part of GIS as a relational database management system The ‘data base’ part of GIS as a relational database management system A spreadsheet is how most people see a table... And indeed Excel (the most common spreadsheet program) can easily provide data to the ArcGIS or ArcView A spreadsheet is how most people see a table... And indeed Excel (the most common spreadsheet program) can easily provide data to the ArcGIS or ArcView

3 Sample of tabular data...the database for a TIGER roads file

4 Combining tabular data with Spatial Data There are incredible amounts of attribute data available in digital format. There are incredible amounts of attribute data available in digital format. Virtually any tabular data can be used in conjunction with the GIS. Virtually any tabular data can be used in conjunction with the GIS. Some sort of spatial ‘hook’ is required: Some sort of spatial ‘hook’ is required: - a street address - XY coordinates (Lat/Long) - a country/state/county/tract identification - a country/state/county/tract identification Many data sets are not developed to be ‘spatial’… but the spatial component can be very enlightening…. Many data sets are not developed to be ‘spatial’… but the spatial component can be very enlightening….

5 A classic example of spatial patterns derived from data that is commonly considered “non- spatial” http://www.usatoday.com/news/vote2000/cbc/map.htm

6 2004 Election Results http://www.usatoday.com/news/politicselections/vote2004/countymap.htm

7 Even years later, the RED-BLUE designations persist in the American political lexicon

8 Red or Blue—Which Are You? By Anne E. Kornblut, Slate Magazine 2004 “... Red and blue are states of mind, not actual states.... It's not as simple as liberal vs. conservative, elite vs. populist, urban vs. rural, religious vs. nonreligious, educated vs. uneducated, rich vs. poor—if it were, the terms "red" and "blue" wouldn't have taken off as the best shorthand for a divided America....” “... Red and blue are states of mind, not actual states.... It's not as simple as liberal vs. conservative, elite vs. populist, urban vs. rural, religious vs. nonreligious, educated vs. uneducated, rich vs. poor—if it were, the terms "red" and "blue" wouldn't have taken off as the best shorthand for a divided America....” http://slate.msn.com/id/2103764/ http://slate.msn.com/id/2103764/ http://slate.msn.com/id/2103764/

9 Sources of Data … Virtually endless… even if the data are not ‘available’ in digital form… the use of copy/paste can be used to grab the data… Virtually endless… even if the data are not ‘available’ in digital form… the use of copy/paste can be used to grab the data… US Census (virtually everything about the US population!) US Census (virtually everything about the US population!) USDA (Agricultural stats for the US) USDA (Agricultural stats for the US) UN-FAO (forestry/agriculture/population) UN-FAO (forestry/agriculture/population)

10 U.S. Census Bureau http://www.census.gov/main/www/cen2000.html (can be a difficult site to navigate) http://www.census.gov/main/www/cen2000.html

11

12 http://apps.fao.org/default.htm

13 Problems? Often the data are of a different ‘type’: while the join tool in Arcview is fairly robust, the items to be joined must be of the same type. e.g. number vs. text items. Often the data are of a different ‘type’: while the join tool in Arcview is fairly robust, the items to be joined must be of the same type. e.g. number vs. text items. Number items are right justified, text items are left justified. Even though a ‘number’ can appear as 2034, it may be a ‘text string’ rather than a number. Number items are right justified, text items are left justified. Even though a ‘number’ can appear as 2034, it may be a ‘text string’ rather than a number.

14 Number items Same field as ‘text’

15 Fixing the mixed type problem: Within a spreadsheet program, such as Excel, convert the data type Within a spreadsheet program, such as Excel, convert the data type Within Arcview, add a new field to a table and use the ‘calculate’ function to convert to a number field. Within Arcview, add a new field to a table and use the ‘calculate’ function to convert to a number field.

16 In Arcview, add a new field. ‘calculate’ that field to be the old field with using an operator that converts the text string to a number field.

17 Note: the field type can be number or a character string IF you need decimal places, specify them here, the default value is 0

18

19 ArcGIS Field types

20 Creating ‘new’ data in a table ArcGIS (and Arcview) can be used to manipulate the data in a table to create ‘new’ data relationships ArcGIS (and Arcview) can be used to manipulate the data in a table to create ‘new’ data relationships e.g. population change e.g. population change If asked to calculate the change in population, it is fairly simple to add a new field and calculate the value for this ‘new’ information

21 Under the options pulldown you will find the option to create a new data field

22 Name the new field and choose its properties Make sure the field is long enough to store the data... For example: You cannot go back and change a text field that you set to hold 6 characters to change and hold ‘MISSISSIPPI’

23 Right click on the name of the new field, choose calculate new values. The field will equal whatever expression you create in the box In this example, I have calculated the % population change between 1990 and 1999 Make sure the number of () is correct for the expression

24 And the map based on these ‘new’ data...

25 To review : calculating a field value.... The ADVANCED Button allows you to enter a VB (visual basic) expression

26 Cardinality: these relationships allow data tables to be joined (a single table is created)

27 One to many: this situation requires a relate rather than joining tables. When tables are related, the related items of a selected item (in another table) are highlighted (the tables remain separate )

28 XY ‘events’...Data from the GPS Adding x,y coordinate data to a map Adding x,y coordinate data to a map Click the Tools menu and click Add XY Data. Click the Tools menu and click Add XY Data. Click the table dropdown arrow and click a table that contains x,y coordinate data. If the table is not on the map, click the Browse button to access it from disk. Click the table dropdown arrow and click a table that contains x,y coordinate data. If the table is not on the map, click the Browse button to access it from disk. Click the X Field dropdown arrow and click the field containing x-coordinate values. Click the X Field dropdown arrow and click the field containing x-coordinate values. Click the Y Field dropdown arrow and click the field containing y-coordinate values. Click the Y Field dropdown arrow and click the field containing y-coordinate values. Click Edit to define the coordinate system and units represented in the x and y fields. Click Edit to define the coordinate system and units represented in the x and y fields. The x,y coordinates will be automatically transformed to match the coordinate system of the data frame. The x,y coordinates will be automatically transformed to match the coordinate system of the data frame. Tip Tip To add x,y data, your coordinates need to be in the projected units or decimal degrees. To add x,y data, your coordinates need to be in the projected units or decimal degrees.

29 Getting GPS data into the GIS..... My favorite tool works with Garmin GPS devices. It is a free tool developed by the Minnesota Dept. of Natural Resources. http://www.dnr.state.mn.us/mis/gis/tools/arcview/extensions/DNRGarmin/DNRGar min.html It is an Arcview extension, that has a standalone VB program that will allow you to download the data from a Garmin GPS to a table format.


Download ppt "GIS DATA SOURCES Getting maps into the Computer Adding Data from existing tables."

Similar presentations


Ads by Google