55
GIS Lecture 9 Spatial Analysis

GIS Lecture 9 Spatial Analysis

  • Upload
    fausto

  • View
    82

  • Download
    1

Embed Size (px)

DESCRIPTION

GIS Lecture 9 Spatial Analysis. Outline. Proximity Buffers Spatial Joins on Buffers Visual Basic Scripts Apportionment. Proximity Buffers. Proximity. Buffers Created Points Lines Polygons. Points. Buffer created by assigning a buffer distance around points. - PowerPoint PPT Presentation

Citation preview

Page 1: GIS Lecture 9 Spatial Analysis

GIS Lecture 9Spatial Analysis

Page 2: GIS Lecture 9 Spatial Analysis

Outline

•Proximity Buffers•Spatial Joins on Buffers•Visual Basic Scripts•Apportionment

Page 3: GIS Lecture 9 Spatial Analysis

Proximity Buffers

Page 4: GIS Lecture 9 Spatial Analysis

ProximityBuffers Created

- Points- Lines- Polygons

Page 5: GIS Lecture 9 Spatial Analysis

Points

Buffer created by assigning a buffer distance around points

Page 6: GIS Lecture 9 Spatial Analysis

Green Spaces Near Schools- Polygon buffer created ¼ and ½ mile around schools

Page 7: GIS Lecture 9 Spatial Analysis

Businesses near Convention Center

Businesses that are with ¼ mile of Convention Center

Page 8: GIS Lecture 9 Spatial Analysis

Polygon buffer 20’ around lights in a parking lot

Campus Safety

Page 9: GIS Lecture 9 Spatial Analysis

Lines

Buffer created by assigning a buffer distance around lines

Page 10: GIS Lecture 9 Spatial Analysis

Access-to-Work Study (Pittsburgh Foundation) - Polygon buffer created around PAT Bus Routes - Shows 15 minute ride times

Line Buffer Example

Page 11: GIS Lecture 9 Spatial Analysis

Another buffer shows 30 minute ride times

Line Buffer Example

Page 12: GIS Lecture 9 Spatial Analysis

…45 minutes

Line Buffer Example

Page 13: GIS Lecture 9 Spatial Analysis

…60 minutes

Line Buffer Example

Page 14: GIS Lecture 9 Spatial Analysis

Street Study - Polygon buffer created ¼ mile around selected streets

Line Buffer Example

Page 15: GIS Lecture 9 Spatial Analysis

Polygons

Buffer created by assigning a buffer distance around polygons

Page 16: GIS Lecture 9 Spatial Analysis

Parcels within 150’ of selected feature

Page 17: GIS Lecture 9 Spatial Analysis

Buffer is Created

Page 18: GIS Lecture 9 Spatial Analysis

Polluting Companies within ¼ mile buffer of a River

Page 19: GIS Lecture 9 Spatial Analysis

Spatial Joins on Buffers Spatially join Toxic Release sties to buffers Count appears in new buffer

Page 20: GIS Lecture 9 Spatial Analysis

Visual Basic Scripts

Page 21: GIS Lecture 9 Spatial Analysis

Visual Basic Scripts

Adding Area and Perimeter to PolygonsFinding Polygon Centroids

Page 22: GIS Lecture 9 Spatial Analysis

Area and Perimeter VB Script Advanced calculations for finding area, perimeter, and length of features

Page 23: GIS Lecture 9 Spatial Analysis

Area and Perimeter VB Script• Add field in shapefile (e.g. area)• Use calculator function and Visual Basic Script to calculate polygon areas

Page 24: GIS Lecture 9 Spatial Analysis

Area and Perimeter VB ScriptResult is the area of each polygon feature

Page 25: GIS Lecture 9 Spatial Analysis

Polygon Centroids•Advanced calculations for finding polygon centroids•Added as an XY Data Layer

Page 26: GIS Lecture 9 Spatial Analysis

Point Centroid VB Script• Adds XY Data to Attribute Table

Page 27: GIS Lecture 9 Spatial Analysis

Polygon CentroidsExport attributes as tableAdd as XY Data…

Page 28: GIS Lecture 9 Spatial Analysis

Polygon Centroids

Page 29: GIS Lecture 9 Spatial Analysis

Other Point Centroids?

Page 30: GIS Lecture 9 Spatial Analysis

Simple Apportionment

Page 31: GIS Lecture 9 Spatial Analysis

Apportionment Example

You want to know the population of a ZIP code but only have census tracts

Approximate the population of zip codes using Census Tracts

Page 32: GIS Lecture 9 Spatial Analysis

Population Apportionment Begin with census tract population

Page 33: GIS Lecture 9 Spatial Analysis

Population Apportionment Overlay zip codes which are non-coterminous

Page 34: GIS Lecture 9 Spatial Analysis

Population Apportionment Use census tracts to estimate the population in each

zipcode Or use census blocks for better estimates

Page 35: GIS Lecture 9 Spatial Analysis

Other examples of apportionmentPopulation by voting district

Page 36: GIS Lecture 9 Spatial Analysis

Other census data to apportion…

SF1 Census Data•Population (tract, block group, and block)•Age (tract, block group, and block)•Race (tract, block group, and block)•Housing Units (tract, block group, and block)

SF3 Census Data•Educational Attainment (tract and block group only)•Income (tract and block group only)•Poverty Status (tract and block group only)•Others?

Page 37: GIS Lecture 9 Spatial Analysis

Advanced Apportionment:Tutorial Example

•Police want to know the number of under-educated persons (over Age22) in their car beats•Under-educated data is located in Census tracts (not car beat polygons)

Page 38: GIS Lecture 9 Spatial Analysis

Apportion Data for Non-CoterminousPolygons

Apportioning (makes approximate splits) of each tract’s data to two or more car beats.

Page 39: GIS Lecture 9 Spatial Analysis

Approach to Apportionment Better to use census block centroid data- Areas are smaller than

Census Tracts (better population estimates)- Each centroid has census data attached to it

- Problem:Centroids DO NOThave the under-educateddata, census tracts do

Page 40: GIS Lecture 9 Spatial Analysis

The Math of ApportionmentZoomed view of 2 car beats and one tract-Beat 261 and 251-Tract 360550002100

Page 41: GIS Lecture 9 Spatial Analysis

The Math of ApportionmentTract 360550002100-has 205 persons aged 25 or older with less than a HS education

-26 block centroids span 2 beats

13 block centroids Lie in beat 261 Pop. >22=1,177

13 block centroids Lie in beat 251 Pop. >22=1,089

Total Population=2,266

Page 42: GIS Lecture 9 Spatial Analysis

The Math of Apportionment Apportionment assumes that the fraction of under educated persons 25 or older is the same as that for the general population aged 25 or older:

- Beat 261: 1,177/2,266 = 0.519- Beat 251: 1,089/2,266 = 0.481

Page 43: GIS Lecture 9 Spatial Analysis

The Math of Apportionment• 205 is the number of under-educated people

in tract 36055002100• Thus we estimate the contribution of tract

36055002100 to car beat 261’s under-educated population to be (1,177/2,266)x205 = 106. For car beat 251 it is (1,089/2,266)x205 = 99

• To calculate this in GIS, we need to performintersects and joins…

Page 44: GIS Lecture 9 Spatial Analysis

Apportionment Steps

Block Centroids -Add two fields: TRACTID and SumAge22

– TRACTID is a the census tract ID numbers (for later joins to census tracts and summaries)

– SumAge22 is the summary of population Age22+ (calculating multiple age columns)

Page 45: GIS Lecture 9 Spatial Analysis

Apportionment Steps From the block centroids, create a new summary table counting the number of persons Age22+ for each census tract

Page 46: GIS Lecture 9 Spatial Analysis

Apportionment Steps•Create a new layer intersecting car beats and census tracts•Fields will include values from both tables

Page 47: GIS Lecture 9 Spatial Analysis

Apportionment Steps•Spatially join the new intersecting layer of car beats and census tracts (polygons) to block centroids (points)

•New points will have beat and census tract data

Page 48: GIS Lecture 9 Spatial Analysis

Apportionment StepsCheck Apportionment Weights•Create apportionment weight denominator-Join the summary table of Age22 or greater to the newly created points-The result is the summary of Age22 or greater population is now on block centroid points

Page 49: GIS Lecture 9 Spatial Analysis

Apportionment Steps Compute Apportionment Weights•Create new block centroid field called Weight

Page 50: GIS Lecture 9 Spatial Analysis

Apportionment Steps• Create new block centroid field called

UnderEducated

Page 51: GIS Lecture 9 Spatial Analysis

Apportionment Steps

Values should all be 1.00

Sum Weights by Tract

Page 52: GIS Lecture 9 Spatial Analysis

Apportionment Steps Sum Under Educated by Car Beat

Page 53: GIS Lecture 9 Spatial Analysis

Join Summary Table to Beats

Page 54: GIS Lecture 9 Spatial Analysis

Map Under-Educated by Car Beat

550 and greater

451-550

0 - 450

Number of Under-Educated Persons by Car Beat

Page 55: GIS Lecture 9 Spatial Analysis

Summary

•Proximity BuffersPointsLinesPolygons

•Spatial Joins on Buffers•Visual Basic Scripts

AreaPoint Centroids

•Apportionment