Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins.

Slides:



Advertisements
Similar presentations
Working with Tables Class 10 GISG 110. Objectives Working with Tables Table structure Table creation and manipulation Tabular formats Connecting tables.
Advertisements

Concepts of Maintaining Your Data Simple Ways to Edit Your Data By Lorne Woods.
Chapter 6 Spatial Joins. Which county has most earthquakes? 1.County data layer 2.Earthquake data layer 3.No common field between layers.
From portions of Chapter 8, 9, 10, &11. Real world is complex. GIS is used model reality. The GIS models then enable us to ask questions of the data by.
Return to Outline Copyright © 2009 by Maribeth H. Price 2-1 Chapter 2 Mapping GIS Data.
GIS Level 2 MIT GIS Services
Map Analysis with Feature Datasets Francisco Olivera, Ph.D., P.E. Department of Civil Engineering Texas A&M University.
Geodatabase basic. The geodatabase The geodatabase is a collection of geographic datasets of various types used in ArcGIS and managed in either a file.
Spatial Analysis using Vector Data # 2 Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Joining/Linking a Table ArcView_module_8 May 14, 10:40 AM.
Lecture 3 How does GIS work. How does GIS work? Maps are stored in computers Databases and Tables Geometry Attributes.
Spatial Analysis using Vector Data # 2 Francisco Olivera, Ph.D., P.E. Srikanth Koka Department of Civil Engineering Texas A&M University.
Lecture 16: Data input 1: Digitizing and Geocoding By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
Fundamentals of GIS Materials by Austin Troy © 2008 Lecture 18: Data Input: Geocoding and Digitizing By Austin Troy University of Vermont NR 143.
CS 128/ES Lecture 12a1 Intro to Spatial Analysis (mostly 2D)
GIS Brownbag Series Attributes. In the beginning… Earliest GIS systems did not have attributes Needed separate layers for labels (e.g. names) CAD software.
©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.
©2005 Austin Troy Lecture 9: Introduction to GIS 1.Vector Geoprocessing Lecture by Austin Troy, University of Vermont.
@ 2007 Austin Troy. Geoprocessing Introduction to GIS Geoprocessing is the processing of geographic information. – Creating new polygon features through.
Intro. To GIS Lecture 6 Spatial Analysis April 8th, 2013
@ 2007 Austin Troy. Geoprocessing Introduction to GIS Geoprocessing is the processing of geographic information. Perform spatial analysis and modeling.
GIS Data Models Components of a GIS Map Common Data Models.
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.
Multimodal Analysis Using Network Analyst. Outline Summarizing accessibility Summarizing accessibility Adding transportation modes to a network Adding.
Preparing Data for Analysis and Analyzing Spatial Data/ Geoprocessing Class 11 GISG 110.
GIS DATA SOURCES Getting maps into the Computer Adding Data from existing tables.
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.
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.
Fundamentals of GIS Materials by Austin Troy © 2008 Lecture 18: Data Input: Geocoding and Digitizing By Austin Troy University of Vermont.
Geodatabase Relationships & Relationship Classes GIS 458 Spring 2006 Larry Clamp.
GIS Tutorial 1 Lecture 4 Geodatabases. Outline  Data types  Geodatabases  Data table joins  Spatial joins  Field calculator  Calculate geometry.
Chapter 8. ATTRIBUTE DATA INPUT AND MANAGEMENT
Copyright © 2006 by Maribeth H. Price 2-1 Chapter 2 Working with ArcMap.
Copyright © 2006 by Maribeth H. Price 8-1 Chapter 8 Geoprocessing.
GIS Tutorial 1 Lecture 9 Spatial Analysis.
Copyright © 2006 by Maribeth H. Price 7-1 Lesson 7 Spatial Joins.
ArcGIS: ArcMap Tables. Agenda Opening tables The interface Working with columns Working with records Making selections Advanced table tools ▫Add fields.
Copyright © 2006 by Maribeth H. Price 5-1 Chapter 5 Working with Tables.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
Queries Select by Attribute Select by Location. What is a Query? A query extracts information from a data table for further use –Once extracted you can:
Map overlays & Geoprocessing Learn about spatial analysis functions overlays, clipping & buffering Use overlays to analyze multiple spatial criteria Understand.
Copyright © 2006 by Maribeth H. Price 6-1 Chapter 6 Queries.
NR 143 Study Overview: part 1 By Austin Troy University of Vermont Using GIS-- Introduction to GIS.
©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.
Multimodal Analysis Using Network Analyst. Outline Summarizing accessibility Summarizing accessibility Adding transportation modes to a network Adding.
Topology Relationships between features: Supposed to prevent:
Return to Outline Copyright © 2009 by Maribeth H. Price 4-1 Chapter 4 Attribute Data.
Lecture 7 Basic GIS Analysis Operations
Return to Outline Copyright © 2009 by Maribeth H. Price 5-1 Chapter 5 Queries.
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin.
Return to Outline Copyright © 2009 by Maribeth H. Price 3-1 Chapter 3. Presenting Data.
1 Where have we come so far? By now, you should be familiar with: –What GIS is –How GIS works –Some of what GIS can do –GIS data formats Spatial data Tabular.
CE 525. REGRESSION VIDEO Return Quiz Why regression? Re-watch video as it will be on the midterm! 1. This is the difference between actual observed values.
ArcGIS 9 ch 4 Edited 11/4/05 1 Creating and Editing Data in ArcGIS 9 Data can be created and edited manually in a GIS. Using the imagery provided for your.
Intro. To GIS Pre-Lab Spatial Analysis April 1 st, 2013.
CENTENNIAL COLLEGE SCHOOL OF ENGINEERING & APPLIED SCIENCE VS 361 Introduction to GIS SPATIAL OPERATIONS COURSE NOTES 1.
Chapter 10- Map Overlays and Geoprocessing Copyright © 2015 by Maribeth H. Price 10-1.
Chapter 6. Attribute Data & Tables. Table terminology Title Field Records Each field is specifically defined and established before any data can be entered.
Geocoding Chapter 16 GISV431 &GEN405 Dr W Britz. Georeferencing, Transformations and Geocoding Georeferencing is the aligning of geographic data to a.
NSF DUE ; Chérie Aukland. NSF DUE ; GeoTEd Partners.
Chapter 6 Spatial Joins.
Chapter 13 Editing and Topology.
Chapter 4 Attribute Data.
Mastering ArcGIS Attribute Data (Continued)
Preliminaries: -- vector, raster, shapefiles, feature classes.
Basic Spatial Analysis Tools
GIS Lecture: Geoprocessing
Vector Geoprocessing.
Presentation transcript:

Return to Outline Copyright © 2009 by Maribeth H. Price 6-1 Chapter 6 Spatial Joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-2 Outline GIS Concepts –What is a spatial join?What is a spatial join? –CardinalityCardinality –Types of spatial joinsTypes of spatial joins –Feature geometry and spatial joinsFeature geometry and spatial joins –Coordinate systems and distance joinsCoordinate systems and distance joins About ArcGIS –Choosing the join typeChoosing the join type –Setting up spatial joinsSetting up spatial joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-3 What is a spatial join?

Return to Outline Copyright © 2009 by Maribeth H. Price 6-4 Attribute joins Join tables on common field Joined table Destination tableSource table

Return to Outline Copyright © 2009 by Maribeth H. Price 6-5 Spatial joins citiesairportscities2 Destination feature class Source feature class Output feature class

Return to Outline Copyright © 2009 by Maribeth H. Price 6-6 Spatial Join Conditions Join two tables based on a common spatial relationship –One feature inside another –One feature closest to another

Return to Outline Copyright © 2009 by Maribeth H. Price 6-7 Unique values map by airport Graduated symbol map by distance A distance spatial join appends records based on which source feature (airport) is closest to the destination feature (city.)

Return to Outline Copyright © 2009 by Maribeth H. Price 6-8 An inside join appends the record of the source feature (geology) to the destination feature (septic) that falls inside.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-9 Cardinality

Return to Outline Copyright © 2009 by Maribeth H. Price 6-10 Unique values map by airport What if you switch the destination to airports and the source to cities? Each airport is serving many cities and the cardinality is now one to many. The Rule of Joining is violated and no join is possible. If you could instead use Summarize to group the cities according to the airport they served, and summed the population, you would get a table like this. Now every airport has one record. You can do this with a summarized join.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-11 Airports to cities One to many Many city records become a single record containing some statistics, which can then be joined to the airport. And you could map the airports based on population served.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-12 Summarized joins Summarized joins are used to handle one-to- many relationships. They determine the spatial relationship, summarize the source features that match each destination feature, and then append the summarized statistics record to the destination feature. Airports and cities Counties and schools

Return to Outline Copyright © 2009 by Maribeth H. Price 6-13 Spatial Join Cardinality Simple joins –One-to-one or many-to-one cardinality Summarized joins –One-to-many or many-to-many The Rule of Joining applies to spatial joins also!

Return to Outline Copyright © 2009 by Maribeth H. Price 6-14 Simple spatial join One-to-one or many- to-one. No ambiguity in assigning fields.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-15 Summarized join Destination table is counties. Source table is schools. Output table gives total schools located in each county. Count field is always generated automatically. User can optionally choose a statistic to calculate, for example, to sum the total number of students in each county.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-16 Which attraction is closest to each hotel? How many attractions are closer to one hotel than another? Point to point joins Distance joins only Simple? or Summarized? Depends on the question being asked… Enforces a one to one cardinality… One to many cardinality…must use summarize

Return to Outline Copyright © 2009 by Maribeth H. Price 6-17 Types of spatial joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-18 SimpleSummarized Inside Distance Schools  Counties Which county is each school in? Hotels  Attractions Counties  Schools How many attractions are closest to each hotel? Which attraction is closest to each hotel? How far is it? How many schools in each of the counties? Hotels  Attractions

Return to Outline Copyright © 2009 by Maribeth H. Price 6-19 Feature geometry and spatial joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-20 Points to Polygons Join each county to the hospital that is nearest it. Each county features gets name of closest hospital and the distance.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-21 Note on polygon distances In measuring distances for polygons, the center of the polygon is used. For each of the counties, the centroid of the county is closest to the hospital. If the county contains a hospital, the distance is zero. Pennington County has three hospitals all with a distance of zero, so one is randomly chosen to match.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-22 Points to Lines In this example we wish to evaluate impact of septic systems on various streams based on distance. Streams is the destination. Each point represents one or more septic systems. We find the number of septic points closest to each stream segment, and summarize the totals.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-23 Feature types Every join involves two geometry types –Points to points –Polygons to lines –Lines to points, etc. Each combination offers two possible join types. –One is usually a simple join, the other is summarized.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-24 Note In the next examples, we break with our usual convention and put the destination layer on the right. This is done to match the convention used in the ArcGIS join menu. The destination table is shown in boldface.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-25 Geometry Type Join TypeExample Points to Points Simple distanceFind the hospital closest to each town. Summarized distance Find all the towns closer to one hospital than to any other hospital. Lines to Points Simple distance Find the water main closest to the proposed building site. Summarized inside Find the total voltage of all electric lines meeting at a substation. Polygons to Points Simple inside Find the soil type that underlies each gas station. Simple distance Find the lake that is closest to each campground. Several possible combinations

Return to Outline Copyright © 2009 by Maribeth H. Price 6-26 Points to Points Simple distance – Find the source feature that is the closest to the destination feature. –Find the hospital closest to each town. Summarized distance –Summarize the attributes of all the source features that are closer to the destination feature than to any other. –Find all the towns closer to one hospital than to any other hospital. Destination: hospitals

Return to Outline Copyright © 2009 by Maribeth H. Price 6-27 Polygons to Points Simple distance –Find the county that is closest to each hospital and give the hospital the county attributes. Simple inside –Find the county that each hospital is inside and give the hospital that county’s attributes. Destination: hospitals

Return to Outline Copyright © 2009 by Maribeth H. Price 6-28 Polygons to Lines Simple distance –Find the park that is closest to each road and give the road the park attributes. Summarized inside –Give the interstate the total population of all the counties that it crosses.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-29 Beware and think… Some choices don’t make sense for particular layers. Finding the closest county to each river has no meaning here. Finding the county a river is inside does have meaning…BUT …some rivers cross county lines. We’ll return to this issue in the next chapter. Destination layer: rivers

Return to Outline Copyright © 2009 by Maribeth H. Price 6-30 Polygons to Polygons Simple inside –Give each urban area the attributes of the county that it falls inside. Summarized inside –Give each county the summarized attributes of the urban areas that fall inside it. Notice that in this case we need to switch the destination layer for the join to make sense.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-31 Polygons to Polygons Simple inside –Find the park that each lake is inside and give the lake the attributes of the park. Summarized inside –Give the park the total area of all the lakes that fall inside it. Notice that in this case we need to switch the destination layer for the join to make sense. Also notice that some lakes do not fall cleanly inside one park or another. Not all joins are capable of giving valid results. Think!

Return to Outline Copyright © 2009 by Maribeth H. Price 6-32 More options These examples are only a few of the possible combinations—the rest are shown in your text. If this seems complicated, don’t worry. ArcGIS figures out the two possibilities for you and presents you with a choice…one usually makes sense after a little thought.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-33 Coordinate systems and distance joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-34 Source coordinate system Look again at the join of hospitals to counties. What happens if the source layers are in a GCS?

Return to Outline Copyright © 2009 by Maribeth H. Price 6-35 Distance join units Distances are given in stored map units Decimal degrees cannot be easily converted to miles or km because the conversion factor varies with latitude Better to use a projected coordinate system… The source data was in a GCS with units of decimal degrees.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-36 Distance joins and the CS Using a GCS or distorted projection may yield incorrect results. A B C A B C Use source data with a projection that conserves distance! Distance join with GCS sourceDistance join with UTM source

Return to Outline Copyright © 2009 by Maribeth H. Price 6-37 Beware GCS Projected on the fly The data frame coordinate system may be different from the source data coordinate system. Setting the data frame CS is not enough to fix the problem. You must project the source data using the Project tool (Chapter 11) and do the join again. SD State Plane

Return to Outline Copyright © 2009 by Maribeth H. Price 6-38 About ArcGIS Chapter 6. Spatial Joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-39 Choosing the join type

Return to Outline Copyright © 2009 by Maribeth H. Price 6-40 How to join Right-click destination table Set Join type to spatial Choose source table Choose join type Specify output file

Return to Outline Copyright © 2009 by Maribeth H. Price 6-41 Two choices Based on the two geometries and the destination, ArcMap picks the possible two join types. You just need to pick the right one. Usually one is simple and one is summarized.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-42 Choosing summary statistics Unlike the Summarize command that pairs stats with specific fields, in joins you only pick the type(s) of statistics. A new stats field will be generated for every numeric field in the table. Choose only what you need—or your output may have too many fields!

Return to Outline Copyright © 2009 by Maribeth H. Price 6-43 Setting up spatial joins

Return to Outline Copyright © 2009 by Maribeth H. Price 6-44 Setting up a join Sketch the layers How do I want the output layer/table to look? Which is the destination layer? Is this a distance join or an inside join? What is the cardinality? Do I need a simple join or a summarized join?

Return to Outline Copyright © 2009 by Maribeth H. Price 6-45 Example #1 Find all congressional districts that have had more than 10 earthquake deaths.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-46 How do I want the output to look? Which is the destination layer? Is this a distance join or an inside join? What is the cardinality? Do I need a simple join or a summarized join?

Return to Outline Copyright © 2009 by Maribeth H. Price 6-47 Example #2 Develop a pollution risk index for rivers based on the total number of people in the adjacent counties.

Return to Outline Copyright © 2009 by Maribeth H. Price 6-48 How do I want the output to look? Which is the destination layer? Is this a distance join or an inside join? What is the cardinality? Do I need a simple join or a summarized join?

Return to Outline Copyright © 2009 by Maribeth H. Price 6-49 Example #3 Create a table showing the volcano closest to each city in the US

Return to Outline Copyright © 2009 by Maribeth H. Price 6-50 Students can find volcano closest to their city. How do I want the output to look? Which is the destination layer? Is this a distance join or an inside join? What is the cardinality? Do I need a simple join or a summarized join? Or can they? Look at the distances…