Title: GIS Lecture 8
1GIS Lecture 8 Spatial Data Processing
2Outline
- Extracting Features by Attributes
- Location Proximities
- Geoprocessing Tools
- Model Builder
3Extracting Features
4Attribute Query Extraction
- You have tracts for state but want one county only
5Attribute Query Extraction
- Select tracts by County ID
6Export Selected Features
- Right-click to export selected features
7Add Exported Layer
8Location Proximities
9Select by Location
- Identify spatial relationships between layers
- Finds features that are within another layer.
Input County Census TractsCant use Select By
Attributes
OutputCity tracts only
10Select by Location
- Select feature to extract tracts to (city outline)
11Select by Location
- Selection, Select By Location
12Export Selection and Add Layer
13Other Select by Location Queries
- Toxic release sites within 1 mile of a river
14Other Select by Location Queries
- Points near points
- Schools within ½ mile of polluting companies
15Other Select by Location Queries
- Polygons intersecting lines
- Municipalities that intersect Interstates
16Other Select by Location Queries
- Lines intersecting polygons
17Other Select by Location Queries
- Buildings whose centers are in emergency zones
18Geoprocessing Tools OverviewClipping Features
19Geoprocessing Tools
- GIS Operation to manipulate data
- Typically take input data sets, manipulate, and
produce output data sets - Often use multiple data sets
20Geoprocessing Tools
- Clip
- Dissolve
- Intersect
- Union
- Append
21Clipping Features
22Clip
- Cookie cutter to select features
23Clipping Features (Points, Lines, Polygons)
X Y Z
24Line (Arc) Clipping
- Input layer - Streets
- Clip layer Central Business District (selected)
- Output layer - Streets within Central Business
District
25Clip Geoprocessing Tool
26Difference Between Clipping and Select by Location
Clip Clean cut
Select by LocationDangle edges
27Dissolving Features
28Dissolve
- Aggregates items that have the same value
Item 1 C 2 R 3 C 4 I
29Dissolve Example
- You have states but need regions
30Dissolve Functions
- ArcToolBox or Command Line Window
31Dissolve Field
- Field with a common value for each feature (e.g.
Sub_Region)
32Statistics Field
- Aggregated field can be summarized using a
statistics type (i.e. state population can be
aggregated by population for each region)
33Resultant Dissolved Regions Layer
34Appending Features
35Append
- Appends features together
36Append Streets
- Separate street layers for neighborhoods
37Append Streets
- Choose both street layers to append
38Resultant Layer
- One street layer with all records and field items
39Union Features
40Union
- Use Union when you want to overlay two polygon
layers so that the resulting output layer - a) has the combined attribute data of the
polygons in the two inputs, and - b) contains all the polygons from the inputs,
whether or not they overlap.
41Union
- Start with Pittsburgh ZIP codes and Neighborhoods
42Union
- Attributes tables contain different data
43Union
- Union neighborhoods and ZIP Codes to include the
zip on each neighborhood polygon
44Union
- Result Polygons are unioned with same
information - Tips Same Projections, Order of Layers
45Intersecting Features
46Intersect
- Use Intersect when you want to overlay a layer
with the polygons in another layer so that the
resulting output layer - - has the combined attribute data of the features
in the two inputs, and - - only contains features that fall within the
spatial extent of the overlay polygons
47Intersect
- Flood zones that intersect buildings
48Intersect
- Result is only building polygons that intersect
floodzones with combined data fields
49Model Builder
50Model Builder
- Workflow processes can be complicated
- Automates and strings functions together
51Model Builder
- Problem
- You have census tracts from a state with
population data but only want population for
neighborhoods in a small region - Solution
- Use Model Builder functions to clip census tracts
and union to aggregate data to neighborhoods
52Model Builder Example
- Begin with census tracts for the state of
Pennsylvania
53Model Builder Example
- Clip only tracts whose centers are located within
Pittsburgh neighborhoods - Union the census tracts and neighborhoods
54Model Builder Example
55Model Builder Example
Display and query the results
56Summary
- Extracting Features
- Attribute Queries
- Select by Location
- Converting Shapefiles
- Geoprocessing Tools
- Clip
- Dissolve
- Union
- Intersect
- Append
- Model Builder