Introduction to Geographic Information Systems Fall 2013 (INF 385T- 28620) Dr. David Arctur...

62
Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin Lecture 6 October 3, 2013 Spatial Data and Geoprocessing

description

Introduction to Geographic Information Systems Fall 2013 (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin Lecture 6 October 3, 2013 Spatial Data and Geoprocessing. Outline. Attribute extraction Feature location extraction - PowerPoint PPT Presentation

Transcript of Introduction to Geographic Information Systems Fall 2013 (INF 385T- 28620) Dr. David Arctur...

Page 1: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Introduction to Geographic Information Systems Fall 2013 (INF 385T-28620)

Dr. David ArcturResearch Fellow, Adjunct Faculty

University of Texas at Austin

Lecture 6October 3, 2013

Spatial Data andGeoprocessing

Page 2: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Outline Attribute extraction Feature location extraction Location proximities Geoprocessing tools ModelBuilder

2INF385T(28620) – Fall 2013 – Lecture 6

Page 3: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

ATTRIBUTE EXTRACTIONLecture 6

3INF385T(28620) – Fall 2013 – Lecture 6

Page 4: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Attribute query extractionYou have tracts for

an entire state, but

wanttracts for one

county only

INF385T(28620) – Fall 2013 – Lecture 6 4

Page 5: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

5

Attribute query extraction Select tracts by County FIPS ID

Cook County = 031

INF385T(28620) – Fall 2013 – Lecture 6

Page 6: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

6

Attribute query extraction Cook County tracts

selected Export to new feature

class or shapefile

INF385T(28620) – Fall 2013 – Lecture 6

Page 7: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Export selected features Right-click to export selected features

7INF385T(28620) – Fall 2013 – Lecture 6

Page 8: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

8

Add new layer Cook County tracts

INF385T(28620) – Fall 2013 – Lecture 6

Page 9: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

FEATURE LOCATION EXTRACTION

Lecture 6

9INF385T(28620) – Fall 2013 – Lecture 6

Page 10: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Select by location Powerful function unique to GIS Identify spatial relationships between

layers Finds features that are within another

layer

10INF385T(28620) – Fall 2013 – Lecture 6

Page 11: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

11

Select by location Have Cook County census tracts

but want City of Chicago only Can’t use Select By Attributes No attribute for Chicago

Use “Municipality” layer City of Chicago is a municipality within

Cook County

INF385T(28620) – Fall 2013 – Lecture 6

Page 12: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

12

Select by location Select “Chicago” from municipalities

layer

INF385T(28620) – Fall 2013 – Lecture 6

Page 13: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Select by location Selection, select by location

13INF385T(28620) – Fall 2013 – Lecture 6

Page 14: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Export selected features

14INF385T(28620) – Fall 2013 – Lecture 6

Page 15: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

LOCATION PROXIMITIESLecture 6

15INF385T(28620) – Fall 2013 – Lecture 6

Page 16: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Points near polygons Health officials want to know polluting

companies near water features

16INF385T(28620) – Fall 2013 – Lecture 6

Page 17: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Points near points School officials want to know what

schools are near polluting companies

INF385T(28620) – Fall 2013 – Lecture 6 17

Page 18: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Polygons intersecting lines Transportation planner wants to know

what neighborhoods are affected by construction project on major highway

INF385T(28620) – Fall 2013 – Lecture 6 18

Page 19: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

19

Lines intersecting polygons Public works official wants to know

what streets or sidewalks will be affected by potential floods

INF385T(28620) – Fall 2013 – Lecture 6

Page 20: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Polygons completely within polygons City planners want to know what

buildings are completely within a zoning area.

INF385T(28620) – Fall 2013 – Lecture 6 20

Page 21: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

GEOPROCESSING TOOLSLecture 6

21INF385T(28620) – Fall 2013 – Lecture 6

Page 22: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Geoprocessing overview GIS operations to manipulate data Typically take input datasets,

manipulate, and produce output datasets

Often use multiple datasets

22INF385T(28620) – Fall 2013 – Lecture 6

Page 23: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

23

Common geoprocessing tools Analysis

Extract – clip Overlay – intersect and union

Data management Generalization – dissolve

General append merge

INF385T(28620) – Fall 2013 – Lecture 6

Page 24: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

24

Accessing tools Geoprocessing menu

INF385T(28620) – Fall 2013 – Lecture 6

Page 25: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

25

Accessing tools ArcToolbox

INF385T(28620) – Fall 2013 – Lecture 6

Page 26: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

26

Accessing tools Search window

INF385T(28620) – Fall 2013 – Lecture 6

Page 27: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

27

Clip vs. Select By Location Clip

Clean edges Looks good

Select By Location Dangling edges Better for geocoding

(chapter 8)

INF385T(28620) – Fall 2013 – Lecture 6

Page 28: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

28

Dissolve Combines adjacent polygons to create

new, larger polygons Uses common field value to remove

interior lines within each polygon, forming the new polygons

Aggregate (sums) data while dissolving

INF385T(28620) – Fall 2013 – Lecture 6

Page 29: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

29

Dissolve Create regions using US states

Use SUB_REGION field to dissolve Sum population

INF385T(28620) – Fall 2013 – Lecture 6

Page 30: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Dissolve

INF385T(28620) – Fall 2013 – Lecture 6 30

Page 31: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

31

Dissolve results States dissolved to form regions Population summed for each region

INF385T(28620) – Fall 2013 – Lecture 6

Page 32: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Append Appends one or more datasets into an existing dataset Features must be of the same type Input datasets may overlap one another and/or the

target dataset TEST option: field definitions of the feature classes

must be the same and in the same order for all appended features

NO TEST option: Input features schemasdo not have to match the target feature classes’ schema

INF385T(28620) – Fall 2013 – Lecture 6 32

Page 33: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Append DuPage and Cook County are

combining public works and need a new single street centerline file.

33INF385T(28620) – Fall 2013 – Lecture 6

Page 34: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Append Append will add DuPage streets to

Cook County streets

INF385T(28620) – Fall 2013 – Lecture 6 34

Page 35: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Resultant layer One street layer (Cook County) with all

records and field items

35INF385T(28620) – Fall 2013 – Lecture 6

Page 36: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Merge Combines multiple input datasets of

the same data type into a single, new output dataset Illinois campaign manager needs a single

voting district map but wants to preserve the original layers

INF385T(28620) – Fall 2013 – Lecture 6 36

Page 37: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Merge

INF385T(28620) – Fall 2013 – Lecture 6 37

Page 38: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Resultant layer New voting district layer

38INF385T(28620) – Fall 2013 – Lecture 6

Page 39: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union Overlays two polygon layers

Resulting output layer has combined attribute data of the two inputs

Contains all the polygons from the inputs, whether or not they overlap

INF385T(28620) – Fall 2013 – Lecture 6 39

Page 40: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union Neighborhoods and ZIP Codes

INF385T(28620) – Fall 2013 – Lecture 6 40

Page 41: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union

INF385T(28620) – Fall 2013 – Lecture 6 41

Page 42: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union Better describes characteristics of a

neighborhood Central business district 15222 vs. 15219

INF385T(28620) – Fall 2013 – Lecture 6 42

Page 43: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union Attributes tables contain different fields

and data

43INF385T(28620) – Fall 2013 – Lecture 6

Page 44: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Union results

INF385T(28620) – Fall 2013 – Lecture 6

New polygons with combined data

44

Page 45: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

45

Union vs. Merge vs. Dissolve

INF385T(28620) – Fall 2013 – Lecture 6

Operation # Input Feature Classes

Change in Geometry

Schema Restrictions

Union Multiple Combines all input geometries

Includes all fields from all input feature classes; input tables do not have to be identical

Merge Multiple Combines all input geometries

Input tables must be identical; retains one set of attributes

Dissolve Single Combines feature geometries based on shared attribute values

N/A – single feature class schema

Page 46: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Intersect Computes a geometric intersection of

the input features Features (or portions of features that

overlap in all layers and/or feature classes) will be written to the output feature class

Inputs can have different geometry types

INF385T(28620) – Fall 2013 – Lecture 6 46

Page 47: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Intersect City manager needs to know what

buildings intersect flood zones and wants the flood data attached to each intersecting building

INF385T(28620) – Fall 2013 – Lecture 6 47

Page 48: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Intersect

INF385T(28620) – Fall 2013 – Lecture 6 48

Page 49: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Intersect result Only building polygons that intersect

flood zones with combined data fields

INF385T(28620) – Fall 2013 – Lecture 6 49

Page 50: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

MODELBUILDERLecture 6

50INF385T(28620) – Fall 2013 – Lecture 6

Page 51: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

ModelBuilder overview Models automate and string tools together Example: You have census tracts for a county

and want to create neighborhoods for a city Some steps are needed to create

neighborhoods Join a crosswalk table to the tracts map layer Dissolve tracts to create neighborhoods using

the dissolve column in the crosswalk Remove the join so that the model can be

rerun if necessary You run the model for this workflow with one

click of a button

51INF385T(28620) – Fall 2013 – Lecture 6

Page 52: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Starting map TIGER census tracts and municipalities

INF385T(28620) – Fall 2013 – Lecture 6 52

Page 53: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Final map Tracts dissolved to create

neighborhoods

INF385T(28620) – Fall 2013 – Lecture 6 53

Page 54: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Crosswalk table Neighborhood names

are not included with the census tracts, so a crosswalk table was created with the name of neighborhood for each census tract

Some neighborhoods are made of multiple tracts

INF385T(28620) – Fall 2013 – Lecture 6 54

Page 55: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Set geoprocessing options Geoprocessing > Geoprocessing

Options

INF385T(28620) – Fall 2013 – Lecture 6 55

Page 56: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Create a new toolbox Catalog

INF385T(28620) – Fall 2013 – Lecture 6 56

Page 57: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Create a new model Right-click Toolbox > New > Model

INF385T(28620) – Fall 2013 – Lecture 6 57

Page 58: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Add tool to model Add Join tool

To join crosswalk table to tracts…

INF385T(28620) – Fall 2013 – Lecture 6 58

Page 59: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Set parameter for Join tool Joins crosswalk table to census tracts

INF385T(28620) – Fall 2013 – Lecture 6 59

Page 60: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Model steps

INF385T(28620) – Fall 2013 – Lecture 6

Add join

Dissolve Remove join

60

Page 61: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Finished model

INF385T(28620) – Fall 2013 – Lecture 6 61

Page 62: Introduction to Geographic Information Systems  Fall 2013  (INF 385T- 28620) Dr. David Arctur Research Fellow, Adjunct Faculty University of Texas at Austin

Summary Attribute extraction Feature location extraction Location proximities Geoprocessing tools ModelBuilder

62INF385T(28620) – Fall 2013 – Lecture 6