1 / 41

GIS Brownbag Series

GIS Brownbag Series. Attributes. In the beginning…. Earliest GIS systems did not have attributes Needed separate layers for labels (e.g. names). CAD software still maintains different separate layers. Amelia Earhart.

kedma
Download Presentation

GIS Brownbag Series

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GIS Brownbag Series Attributes

  2. In the beginning… Earliest GIS systems did not have attributes Needed separate layers for labels (e.g. names) CAD software still maintains different separate layers

  3. Amelia Earhart

  4. Right-click on the name of the shapefile for the flight path to open attribute table Shapefile showing Amelia’s last flight

  5. Attributes: • Length • FROM_CITY • TO_CITY

  6. Feeding sites of a chimp called “Fifi” Aerial photograph of Gombe National Park. Feeding sites stored in a shapefile or personal geodatabase Aerial photograph stored as a raster

  7. Raster attributes Number of attributes attached to rasters is limited

  8. Shapefile or Personal Geodatabase Attributes OBJECTID and Shape attributes are automatically generated by ArcGIS Many attributes can be attached to each feature

  9. Attributes can be: • Numbers (whole or with decimal places) • Names or text • Dates • Hyperlinks

  10. Depending on type of attribute different maps can be created This map was created based on text attribute Numbers allow to display population size

  11. Depending on type of attribute different analysis can be done What if you want to show the area for each County?

  12. Adding fields to an attribute table Step 1: Create a new attribute that will hold the area A. Open attribute table B. Click “Options” button. Then select “Add Field” If “Add Field..” is “greyed-out” stop edit session and try again

  13. Pick any name you like. Must be < 11 characters Other choices: Text, Date, Short or Long Integer Number of spaces to store a number Number of decimals. E.g. 1.1234

  14. Step 2: Calculate the area The new attribute “Area” has been added! Right-click on “AREA” and select Calculate Geometry Notice how all the area’s are set to “0”

  15. Joining other data to attribute tables Table with population size for each County Goal: show those numbers on a map Solution: join this data to the shapefile from previous slide Step 1: Save your data in Excel as a DBF4 file

  16. Add your .dbf file to ArcMap

  17. Determine how you are going to join your data Join “population” table to shapefile Look for a primary key: an attribute that both tables have in common and that can be used for the join. Here: both tables have County names

  18. Joining tables Right-click on the shapefile

  19. Make sure that primary key is the same data type in both tables: E.g. you can not join numbers to text. Choose “No”

  20. Data from “population” table we joined to the shapefile Data from shapefile

  21. Tip: export joined table to new shapefile

  22. Map showing population size for each County Maybe population density would be a more informative map..

  23. Density is “POPULATION” / “AREA”

  24. Add a new field to store density attribute

  25. Right-click on DENSITY

  26. Types of Relationships This is a one-to-one relationship One record in the shapefile matches one record in the population table

  27. ? Types of Relationships Is this a one-to-one relationship? NO! It is a one-to-many Can we join this data? NO! Instead of “join”, use a “relate”

  28. Relates: Example DBF table with information about a few different laterals Goal: we want to look at those laterals on a map

  29. This is a one-to-many relationship Relate NHD to the laterals table This is the NHD: it has the geometry

  30. H Canal is selected

  31. By clicking the + you see related tables Use “info” tool on this line segment Attributes for that line segment

  32. By relating tables the user has much more information at “his/her fingertips” Tables that NHDFlowline layer is related to

  33. ?

  34. Upcoming Brownbag Lectures May 20: Model Builder June 17: How to make maps that communicate Check out previous Brownbag Presentations on WEnet

More Related