basic spatial analysis. this process involves systems and systems thinking

99
Basic Spatial Analysis

Upload: gilbert-byrd

Post on 12-Jan-2016

224 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Basic Spatial Analysis. This process involves systems and systems thinking

Basic Spatial Analysis

Page 2: Basic Spatial Analysis. This process involves systems and systems thinking

Basic Spatial Analysis

This process involves systemsand systems thinking

Page 3: Basic Spatial Analysis. This process involves systems and systems thinking
Page 4: Basic Spatial Analysis. This process involves systems and systems thinking

Many times a picture of a system process or steps is worth a thousand words

Page 5: Basic Spatial Analysis. This process involves systems and systems thinking

Take out a blank sheet of paper

Diagram/Draw the steps you took to get up today and come to school

Try and have at least 5 steps; Such as: turn off alarm, get out of bed,

get dressed……..

Page 6: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Input -> spatial operation -> output

Page 7: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis Input -> spatial operation -> output

Page 8: Basic Spatial Analysis. This process involves systems and systems thinking

Input Scope

Local – “point” to “point”

Neighborhood – adjacent regions have

input

Global – the entire input data layer may influence

output

Page 9: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Usually involves manipulations or calculation of coordinates or attribute variables with a various operators (tools), such as:

Selection Reclassification Dissolving Buffering OverlayCartographic Modeling (a combination of the above)

Page 10: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial SelectionIdentifying features based on spatial criteria Adjacency, connectivity, containment, arrangement

Page 11: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial SelectionIdentifying features based on spatial criteria Adjacency, connectivity, containment, arrangement

Page 12: Basic Spatial Analysis. This process involves systems and systems thinking

Selection based on spatial and non-spatial attributes

Page 13: Basic Spatial Analysis. This process involves systems and systems thinking

Adjacency depends on the algorithm used

(the same is true for all spatial operations)

Page 14: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Usually involves manipulations or calculation of coordinates or attribute variables with a various operators (tools), such as:

Selection Reclassification Dissolving Buffering OverlayCartographic Modeling (a combination of the above)

Page 15: Basic Spatial Analysis. This process involves systems and systems thinking

Reclassification

An assignment of a class or value based on the attributes or geography o an object

Example: Parcels Reclassified By size

Spatial data analysis:

f

Page 16: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis: Reclassification

Page 17: Basic Spatial Analysis. This process involves systems and systems thinking

Reclassification: defining categories

Page 18: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis: reclassification defining categories

Page 19: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Usually involves manipulations or calculation of coordinates or attribute variables with a various operators (tools), such as:

Selection Reclassification Dissolving Buffering OverlayCartographic Modeling (a combination of the above)

Page 20: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis :dissolve

A function whose primary purpose is to combine like features within a data layer.

Adjacent polygons may have identical values. Dissolve removes or “dissolves away” the common boundary.

Used prior to applying area-based selection in spatial analysis

Page 21: Basic Spatial Analysis. This process involves systems and systems thinking
Page 22: Basic Spatial Analysis. This process involves systems and systems thinking

Dissolve: often used after reclassification

Page 23: Basic Spatial Analysis. This process involves systems and systems thinking

Boundaries are removed when they separate states with the same value. The dissolve attribute is_west.

Dissolve: often used after reclassification

Page 24: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Usually involves manipulations or calculation of coordinates or attribute variables with a various operators (tools), such as:

Selection Reclassification Dissolving Buffering OverlayCartographic Modeling (a combination of the above)

Page 25: Basic Spatial Analysis. This process involves systems and systems thinking

Buffering and other Proximity Functions

Page 26: Basic Spatial Analysis. This process involves systems and systems thinking
Page 27: Basic Spatial Analysis. This process involves systems and systems thinking

Buffering and other Proximity Functions

Page 28: Basic Spatial Analysis. This process involves systems and systems thinking

Raster buffer is an array of distances

Page 29: Basic Spatial Analysis. This process involves systems and systems thinking
Page 30: Basic Spatial Analysis. This process involves systems and systems thinking

Mechanics of Point and Line Buffering

Page 31: Basic Spatial Analysis. This process involves systems and systems thinking

Buffering Variants: point buffer examples

Page 32: Basic Spatial Analysis. This process involves systems and systems thinking
Page 33: Basic Spatial Analysis. This process involves systems and systems thinking

Regions in Buffering – inside, outside, enclosed

Page 34: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial data analysis

Reclassification Dissolving Buffering OverlayCartographic Modeling

(a combination of the above)

Page 35: Basic Spatial Analysis. This process involves systems and systems thinking

Spatial Analysis: Overlay

Combination of different data layers Both spatial and attribute data is combined

Requires that data layers use a common coordinate system

A new data layer is created

Page 36: Basic Spatial Analysis. This process involves systems and systems thinking
Page 37: Basic Spatial Analysis. This process involves systems and systems thinking
Page 38: Basic Spatial Analysis. This process involves systems and systems thinking
Page 39: Basic Spatial Analysis. This process involves systems and systems thinking
Page 40: Basic Spatial Analysis. This process involves systems and systems thinking

Overlay

Raster Overlay

Typically applied to nominal or ordinal data

Cell by cell process which results in the combination of the two input layers

Pay attention to the the number of possible combinations that may be possible and understand the effect on the output layer

Page 41: Basic Spatial Analysis. This process involves systems and systems thinking
Page 42: Basic Spatial Analysis. This process involves systems and systems thinking

Feature numbers increase in overlay

Page 43: Basic Spatial Analysis. This process involves systems and systems thinking

Vector Overlay

•Topology is likely to be different•Vector overlays often identifies line intersection points automatically.

•Intersecting lines are split and a node placed at the intersection point

•Topology must be recreated for later processing

Any type of vector may be overlain with any other type Output typically takes the lowest dimension of the inputs

For example: Point on Polygon results in a point

Page 44: Basic Spatial Analysis. This process involves systems and systems thinking

Ambiguous result

Un- ambiguous result

Page 45: Basic Spatial Analysis. This process involves systems and systems thinking

note

note nullor flag values

nullor flag values

Page 46: Basic Spatial Analysis. This process involves systems and systems thinking

Vector Overlay(common ways applied)

•CLIP•INTERSECTION•UNION

Page 47: Basic Spatial Analysis. This process involves systems and systems thinking

CLIP

•Cookie cutter approach•Bounding polygon defines the clipped second layer•Neither the bounding polygon attributes nor geographic (spatial data) are included in the output layer

Page 48: Basic Spatial Analysis. This process involves systems and systems thinking
Page 49: Basic Spatial Analysis. This process involves systems and systems thinking

INTERSECTION

•Combines data from both layers but only for the bounding area

(Bounding polygon also defines the output layer Data from both layers are combined

Data outside the bounding layer (1st layer) is discarded)

•Order of intersection is important

(A to B or B to A)

Page 50: Basic Spatial Analysis. This process involves systems and systems thinking
Page 51: Basic Spatial Analysis. This process involves systems and systems thinking

UNION

•Includes all data from both the bounding and data layers

•New polygons are formed by the combinations of the coordinate data from each layer

Page 52: Basic Spatial Analysis. This process involves systems and systems thinking
Page 53: Basic Spatial Analysis. This process involves systems and systems thinking

Why do buffering and vector overlay often take so long?

Because a time consuming line intersection test must be performed for all lines in the data layers

Then, inside vs. outside regions must be identified for all new polygons

Page 54: Basic Spatial Analysis. This process involves systems and systems thinking

B

A

Does polygon A intersect/overlap/overlay polygon B?

Page 55: Basic Spatial Analysis. This process involves systems and systems thinking

We must check each line in one data layer against every other line in the second data layer to see if they intersect

(x2,y2)Remember each line is composedof a linked set of straight line segments defined by a vertex or a node at each end

(x1,y1)

We can use the equation for a line, plus the coordinates at the endpoints to define the line, and use algebra and logic to see if the lines intersect

Equation of a line: y = m * X + b

Page 56: Basic Spatial Analysis. This process involves systems and systems thinking

10, 12

7,4

2,19,2

Line Equation y = m1 x + b1

Line Equation y = m2 x + b 2

Line Intersection Calculations

m1 = slope = (12-1)/(10-2)

= 1.375

b1= y - m1x= 12 - 10 * 1.375= - 1.75

y = 1.375 * x - 1.75

m2 = slope = (4-2)/(7-9)

= -1

b2= y - m2x= 4 - (-1) * 7= 11

y = -1 * x + 11

1) Calculate Equation Parameters

Page 57: Basic Spatial Analysis. This process involves systems and systems thinking

2) Find Intersection Point

Y =1.375 * x -1.75 y = -1 * x +11

Set y values equal

y =1.375 * x -1.75 = -1 * x +11

(1.375 + 1) * x = 11 + 1.75x = 12.75/2.375

= 5.37

y = 1.375 * 5.37 –1.75 = 5.63

Potential Intersection Point at x = 5.37, y = 5.63

Page 58: Basic Spatial Analysis. This process involves systems and systems thinking

3) Verify Intersection: Is it Within the Boxes

10,12

2 , 1

9,2

7,4

Test X:is 5.37 > 2 and < 10is 5.37 > 7 and <

9

Test Y:is 5.63 > 7 and

< 9is 5.63 > 2 and

< 4

Answer: No the lines do not intersect

Yes No

No No

Page 59: Basic Spatial Analysis. This process involves systems and systems thinking

Find ing the Inte rio r: Is a p o int insid e a p o lyg on?

Po tentia l p o int

Alg orithm :c ount line c rossing s to outsid e o f c onvex hull,if they is a n od d num b erthe p o int is insid e, if even num b er, p o int outsid e

n= 2, outPotential point

n= 4, out

n= 1, in

n= 3, in

Algorithm:Pick a direction(East (right) in the example)

Count line crossings to theoutside of convex hull (shaded polygon)If odd number then the point isinsideIf even, the point is outside

Finding the interior: Is a point inside a polygon (shaded)?

Page 60: Basic Spatial Analysis. This process involves systems and systems thinking

Vector OverlayCommon features in Vector overlays create “Slivers” or “Sliver polygons”

A common feature in both layers. The problem is that each definition is very subtly different (different time, source, materials) so the polygons don’t line up.They can only be seen a very large display scale but can represent over half the output polygons. They take very little space but affect analytical results.

Page 61: Basic Spatial Analysis. This process involves systems and systems thinking
Page 62: Basic Spatial Analysis. This process involves systems and systems thinking

Methods to reduce/remove slivers:

•Redefine the common boundaries with highest coordinate accuracy and replace them in all layers before overlay

•Manually identify and remove

•Use snap distance during overlay

Page 63: Basic Spatial Analysis. This process involves systems and systems thinking

65

Page 64: Basic Spatial Analysis. This process involves systems and systems thinking

66

Page 65: Basic Spatial Analysis. This process involves systems and systems thinking

67

3 blobs - overlap

Page 66: Basic Spatial Analysis. This process involves systems and systems thinking

68

3 blobs - before a union

Page 67: Basic Spatial Analysis. This process involves systems and systems thinking

69

3 blobs - after a union

Page 68: Basic Spatial Analysis. This process involves systems and systems thinking

70

Flowcharts - workflow diagram

Page 69: Basic Spatial Analysis. This process involves systems and systems thinking

71

Flowcharts - workflow diagram

Problem - Identify major watersheds that include counties with high corn production ( > 10,000,000 bushels/year)

What do we need to solve this problem?

Page 70: Basic Spatial Analysis. This process involves systems and systems thinking

72

Page 71: Basic Spatial Analysis. This process involves systems and systems thinking

73

Page 72: Basic Spatial Analysis. This process involves systems and systems thinking

74

Page 73: Basic Spatial Analysis. This process involves systems and systems thinking

75

NASS Tables:Corn Production Data by County (note FIPS!)

Page 74: Basic Spatial Analysis. This process involves systems and systems thinking

7

6

County Boundary Files from National Map

Page 75: Basic Spatial Analysis. This process involves systems and systems thinking

77

Condition Tables, Join

Page 76: Basic Spatial Analysis. This process involves systems and systems thinking

78

Reclass

Page 77: Basic Spatial Analysis. This process involves systems and systems thinking

79

Web Search for “Watersheds Download Data Shapefile Geodatabase,” then some sifting led to:

Page 78: Basic Spatial Analysis. This process involves systems and systems thinking

80

Page 79: Basic Spatial Analysis. This process involves systems and systems thinking

81

Page 80: Basic Spatial Analysis. This process involves systems and systems thinking

82

Finest Grain HUCs, Too Detailed

Page 81: Basic Spatial Analysis. This process involves systems and systems thinking

8

3

Dissolve to HUC4

Page 82: Basic Spatial Analysis. This process involves systems and systems thinking

84

Spatial Select with High Production Counties

Page 83: Basic Spatial Analysis. This process involves systems and systems thinking

85

Results Pane - Left Click on Geoprocessing, Select ResultsTip #1 - Your Processing Trail

Page 84: Basic Spatial Analysis. This process involves systems and systems thinking

8

6

Your happy (or sordid) past revealed

Page 85: Basic Spatial Analysis. This process involves systems and systems thinking

8

7

Tip #2 - Customized Toolboxes1: R-click on ArcToolbox, L-click Add Toolbox

2: Navigate to your project directory, and L-click on the new toolbox icon

3: type in the name you’d like, with a.tbx extension

Page 86: Basic Spatial Analysis. This process involves systems and systems thinking

88

4: In ArcToolbox, L-click, hold, and drag onto new toolbox

Page 87: Basic Spatial Analysis. This process involves systems and systems thinking

89

Tip #3: Batch Jobs

Open ArcCatalog,

then Toolboxes,

then System Toolboxes

Page 88: Basic Spatial Analysis. This process involves systems and systems thinking

90

Navigate to the tool you wish to use,

left click on it,

and select Batch in the dropdown menu

Page 89: Basic Spatial Analysis. This process involves systems and systems thinking

Network Models

•A set of connected features, often termed centers.

•Centers are connected to at least on and possibly many network links

•Links form a network that may have attributes that effect the flow (transit cost)

•Types of problems include route selection, resource and territory allocation and traffic modeling

Page 90: Basic Spatial Analysis. This process involves systems and systems thinking
Page 91: Basic Spatial Analysis. This process involves systems and systems thinking
Page 92: Basic Spatial Analysis. This process involves systems and systems thinking

Network Elements

•Links - “Conduits” for movement

•Intersections - Link joins

•Stops - Sources/sinks where resources can enter or exit the network

•Centers - node locations which may receive or provide resources. Attributes for total amount of resource supplied to or taken from

a center, e.g., total water capacity for a reservoir

•Barriers - nodes which prevent flow through links, or links with infinite impedance

Page 93: Basic Spatial Analysis. This process involves systems and systems thinking

Network Elements•Impedance - a resistance to flow through a link.

Impedance may be directionally dependent

•Impedance is assumed to be uniform over the link.

Impedance = 5 min/mile

Impedance = 10 min/mile

Page 94: Basic Spatial Analysis. This process involves systems and systems thinking

Network Elements

Turns - Allowable redirections at intersections/nodes.Often controlled by a turning impedance, energy or time

spent in performing a turn - set to infinity for “illegal” turns

allowed turns in a stream network

Page 95: Basic Spatial Analysis. This process involves systems and systems thinking
Page 96: Basic Spatial Analysis. This process involves systems and systems thinking

Route selection example

Page 97: Basic Spatial Analysis. This process involves systems and systems thinking

Find the least cost path?

Page 98: Basic Spatial Analysis. This process involves systems and systems thinking
Page 99: Basic Spatial Analysis. This process involves systems and systems thinking

Route selection example