GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
School of Geography FACULTY OF ENVIRONMENT Working with Tables 1.
Advertisements

Working with Tables Class 10 GISG 110. Objectives Working with Tables Table structure Table creation and manipulation Tabular formats Connecting tables.
Annotation & Nomenclature By Corey Fortezzo for PG&G GIS Workshop, 2010.
Geodatabase basic. The geodatabase The geodatabase is a collection of geographic datasets of various types used in ArcGIS and managed in either a file.
Mgt 240 Lecture MS Excel and Access: Introduction to Databases September 23, 2004.
Visualizing Multiple Physician Office Locations Exercise 9 GIS in Planning and Public Health Wansoo Im, Ph.D.
19 th Advanced Summer School in Regional Science An introduction to GIS using ArcGIS.
ArcCatalog and Geodatabases
©2007 Austin Troy Lecture 7: Introduction to GIS 1.Queries and table operations for a single layer in Arc GIS 2.Intro to queries in Access Lecture by Austin.
Using the Tax Assessor’s Database & Other land use datasets.
Chapter 2 Querying a Database
Attribute databases. GIS Definition Diagram Output Query Results.
GIS 1 Copyright – Kristen S. Kurland, Carnegie Mellon University GIS Lecture 9 Spatial Analysis.
Basics of thematic mapping in GIS (ArcMap) Kelly Clonts Presentation for UC Berkeley, D-Lab October 29 th, 2014.
2015 User Conference General Workshop Designing Financial Reports to Meet Your Needs Introducing Advanced Reporting Tools Utilizing Excel April 23/24/25.
Pasewark & Pasewark 1 Access Lesson 6 Integrating Access Microsoft Office 2007: Introductory.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
GIS 1 Attribute Tables. GIS 2 Data table format Rectangular table with one value per cell - Columns (fields) are attributes - Rows are observations (data)
Lecture 4 Geodatabases. Geodatabases Outline  Data types  Geodatabases  Data table joins  Spatial joins  Field calculator  Calculate geometry 
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Lecture 6 – Table Functions.
Managing Business Data Lecture 8. Summary of Previous Lecture File Systems  Purpose and Limitations Database systems  Definition, advantages over file.
GIS Concepts ‣ What is a table? What is a table? ‣ Queries on tables Queries on tables ‣ Joining and relating tables Joining and relating tables ‣ Summary.
Working with Tables Lesson 5 of Introduction to ArcGIS for Emergency Managers.
Attribute Data in GIS Data in GIS are stored as features AND tabular info Tabular information can be associated with features OR Tabular data may NOT be.
The Attribute Table! Without the attribute table, a polygon is just a polygon, a point is a point The attribute table defines what points, lines, or polygons.
Importing your Own Data To display in GIS Lab 4a: (Table Join) Mapping By State, County, or Nation.
GIS 1 GIS Lecture 4 Geodatabases. GIS 2 Outline Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Geodatabases.
Introduction to SPSS Edward A. Greenberg, PhD
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
1 ADVANCED MICROSOFT EXCEL Lesson 9 Applying Advanced Worksheets and Charts Options.
GIS Tutorial 1 Lecture 4 Geodatabases. Outline  Data types  Geodatabases  Data table joins  Spatial joins  Field calculator  Calculate geometry.
How do we represent the world in a GIS database?
Lesson 17 Getting Started with Access Essentials
Intro to GIS and ESRI Trainers: Randy Jones, GIS Technician, Douglas County Jon Fiskness, GISP GIS Coordinator, City of Superior.
Introduction to the Geodatabase. What is a Geodatabase? What are feature classes and feature datasets? What are domains Design a personal Geodatabase.
Chapter 17 Creating a Database.
ArcCatalog and Geodatabases Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you structure your database?
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
Working with ArcGIS Data Data Management and Tips Your friend…..ArcCatalog.
Spreadsheets the basics. Readings n As per Module 5.
Intro to GIS | Summer 2012 Attribute Tables – Part 1.
Geographic Data in GIS. Components of geographic data Three general components to geographic information Three general components to geographic information.
©2007 Austin Troy Lecture 7: Introduction to GIS 1.Queries and table operations for a single layer in Arc GIS 2.Intro to queries in Access Lecture by Austin.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
Return to Outline Copyright © 2009 by Maribeth H. Price 4-1 Chapter 4 Attribute Data.
Transportation Agenda 77. Transportation About Columns Each file in a library and item in a list has properties For example, a Word document can have.
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Data Visualization and Best Practices Webinar. Overview Environmental Data Sources and Considerations  SDWIS, radon labs, local health departments, for.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 8 BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from Access, a Web site, or a CSV text file.
Lecture 18: Spatial Analysis Using Rasters Jeffery S. Horsburgh CEE 5190/6190 Geographic Information Systems for Civil Engineers Spring 2016.
Key Terms Attribute join Target table Join table Spatial join.
GO! with Microsoft Office 2016
Attribute Extraction.
ArcGIS Topology Shapefiles, Coverages, Geodatabases
Mastering ArcGIS Attribute Data (Continued)
Attribute Extraction.
Building and Using Queries
Spatial Data Processing
Preliminaries: -- vector, raster, shapefiles, feature classes.
ArcCatalog and Geodatabases
SSI Toolbox Status Workbook Overview
GIS Lecture: Data.
Microsoft Excel 2007 – Level 2
GIS Lecture: Geoprocessing
ArcCatalog and Geodatabases
GIS Lecture: Data.
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
ArcCatalog and Geodatabases
Presentation transcript:

GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 2 Outline Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Overview Geodatabases Editing Tables Excel Tips Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 3 Administrative Data Example

GIS 4 Administrative Data Mission What does the organization do? Transaction event (who, what, where, when) - must have spatial component What data is available? Databases Spreadsheets Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 5 Example County Property Assessments Assesses the value of each land parcel and its structures Sets a property tax rate Sends property tax bill = assessed value * tax rate Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 6 Allegheny County Assessment WEB Site Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 7

GIS 8

GIS 9 Westmoreland County Assessment WEB Site Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 10 Data Tables

GIS 11 Property Table Property Data Owner Address Sale Date and Price Map Lot Block Number Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 12 Parcels GIS Layer Smallest geographic element is a deeded land parcel Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 13 Data Joins

GIS 14 Join Property Table to Parcels Join on common attribute value Values must be the same Copyright – Kristen S. Kurland, Carnegie Mellon University Must remove dashes!

GIS 15 Import Property Table to ArcMap Save Excel file as a comma separated file.CSV File or DBF (DBASE IV) file Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 16 Add Table as Data Layer Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 17 Join Table to Map A common field joins or links tables Records with the same value are matched Some cleaning necessary (dashes removed) Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 18 Join Table to Parcels Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 19 Resultant Parcels Table Property fields are appended to parcels table Source files remain separate Joins can be removed Maps can be created from values in the new fields Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 20 Resulting Assessment Map

GIS 21 Resulting Assessment Map Copyright – Kristen S. Kurland, Carnegie Mellon University Central Oakland Land Parcels 2003 Assessment

GIS 22 Problems with Joins Saving.DBF and.CSV files in Excel Avoid special formats Keep it simple Use Access as a “middle man”

GIS 23 Common Datasets

GIS 24 Common Datasets U.S. Census Maps and U.S. Census Tables Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 25 Common Datasets Zip Codes - Use with U.S. Census data or Geocoding Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 26 Place Geocodes: FIPS Codes Federal Information Processing Standards Codes Developed by the National Institute of Standards and Technology Codes for Place Names Throughout the World countries states/provinces counties metropolitan statistical areas (MSA’s) cities places - indian reservations, airports, and post offices in the US Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 27 Place Geocodes: Hierarchy Country: US FIPS CODES County: 003 (Allegheny) State: 42 (Pennsylvania) Tract: 0501 Block: 12 (US ) Block Group: 3 CENSUS CODES Minor Civil Division: (Wilkinsburg) Parcel (Block & Lot#) Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 28 Locating Data Contact agencies Obtain data on-line Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 29 Spatial Joins

GIS 30 Spatial Joins Spatially count points within polygons Join tables using Shape field Join points to polygons or polygons to points

GIS 31 Spatial Joins Join municipality name to points spatially Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 32 Spatial Joins Resultant point layer (food points) now contains municipality information Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 33 Aggregate Data Summarize on spatial join - Counts the number of points (records) for each municipality Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 34 Aggregate Data Resultant Table - Count of points (food stores) in each polygon (municipality) Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 35 Join Summary Table Join summary table of counts (based on municipality name from sum table) back to municipalities for labeling Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 36 Label Counts Label the count of stores from the summary join Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 37 Label Counts Show counts as a Choropleth Map Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 38 Map with Points Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 39 Map without Points Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 40 ArcCatalog

GIS 41 ArcCatalog Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 42 Metadata Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 43 Metadata Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 44 Metadata Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 45 Metadata Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 46 Metadata Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 47 Geodatabases

GIS 48 Geodatabase ‘geographic database’ represents geographic features and attributes as objects and is hosted inside a relational database management system managing your coverages, grids, and shapefiles inside a database management system, or DBMS Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 49 Enterprise Geodatabases require a ‘host’ DBMS - SQL Server, Oracle, or IBM DB2 Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 50 Personal Geodatabases based on the Microsoft JET engine - appear as an.mdb file (Microsoft’s JET engine is also used by Microsoft Access). Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 51 Geodatabase Advantages Provide a uniform and IT compliant repository for geographic data. Many users can edit geographic data simultaneously. Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 52 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 53 Importing Shapefiles into Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 54 Importing Tables into Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 55 dBASE and Tables

GIS 56 dBASE Tables Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 57 Editing Tables Field definitions edited in ArcCatalog Layers cannot be in use elsewhere

GIS 58 Calculator Functions Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 59 Calculator Functions Copyright – Kristen S. Kurland, Carnegie Mellon University Not just for numeric fields

GIS 60 Excel Tips and Tricks

GIS 61 FIPS Code Reminder Country: US FIPS CODES County: 003 (Allegheny) State: 42 (Pennsylvania) Tract: 0501 Block: 12 (US ) Block Group: 3 CENSUS CODES Minor Civil Division: (Wilkinsburg) Parcel (Block & Lot#) Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 62 Formatting and Replace Delete any Excel formatting (e.g. borders, patterns, etc.) Delete unwanted text (e.g. word “tract”) - Find and replace

GIS 63 Transpose Data Transpose data - Some census data saves data as rows instead of columns - You need transpose the data so that tracts will be a column - Select your data in excel and go to Edit menu and select copy - Click on a cell outside of your selected data and go to edit menu to select paste special…

GIS 64 Now you see the data transposed in the right way. All you need to do is to delete the original rows and save your file.

GIS 65 Concatenate Strings Sometimes you need add certain string before or after a value, and sometimes you want to combine two values. The excel CONCATENATE function makes that happen for you.

GIS 66 If you have the below dataset, and want to combine the state ID and county ID together as another variable and you want to make sure the new StateCountyID has the length of 5 For example, you want to add a “0” to State IDs that are only 1 character long, and you want add “00” to county IDs that that is 1 character long and “0” to those that are 2 characters. Concatenate Strings

GIS 67 Start by adding a new column right to StateID, and enter: =IF(LEN(A2)=1,CONCATENATE(0,A2),A2) What you tell excel is: if the length of the cell A2 is 1, add 0 before the original value, otherwise, keep the original value Concatenate Strings

GIS 68 After that, you copy and paste the formula to the rest of the column, and you will see the following result Concatenate Strings

GIS 69 Now let’s solve the problem for county ID. In the cell next to C2, you enter: =IF(LEN(C2)=1,CONCATENATE("00",C2),IF(LEN(C2)=2,CONCAT ENATE("0",C2),C2)) What this tells excel is if the length of county ID is 1, add “00” before it, if the length is 2, add “0” before it, if the length is 3, keep the original Concatenate Strings

GIS 70 Now you copy and paste the formula to the rest of the column and you get the above result Concatenate Strings

GIS 71 Next, you create a new column called StateCountyID, and enter is the cell E2: =concatenate(B2,D2) By this, you are telling Excel to combine the two new columns that you created in the previous steps Concatenate Strings

GIS 72 Now you just need to copy and paste the formula to the rest of the column and you finally get what you want. Concatenate Strings

GIS 73 Mid Function Sometimes, a simple replace won’t do for you to substring a column. In this case, you can use Excel’s mid function to get a subset of a value. For example, if you have the following data want extract two letters in the middle, say 12 from the first row, and 13 from the second row, and so on, the Excel MID function is your choice.

GIS 74 Mid Function You enter: =mid(A1,4,2) in the cell next to A1. What you tell excel to do is: From cell A1, extract 2 characters starting from the 4th character from left.

GIS 75 Mid Function Then you copy and paste the formula from B1 to the rest of the column and you get what you need.

GIS 76 Excel Tips and Tricks Formatting Find and Replace Transpose MID Function Concatenate Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 77 Other Excel Functions You might want to learn some other excel functions that could help you clean the data, such as: Right() Left() Exact() Copyright – Kristen S. Kurland, Carnegie Mellon University

GIS 78 Conclusion Administrative Data Example Data Tables Data Joins Common Datasets Spatial Joins ArcCatalog Overview Geodatabases Editing Tables Excel Tips Copyright – Kristen S. Kurland, Carnegie Mellon University