Title: GIS Tutorial 1
1GIS Tutorial 1
- Lecture 8
- Spatial Data Processing
2Outline
- Attribute extraction
- Feature location extraction
- Location proximities
- Geoprocessing tools
- Model builder
3Attribute extraction
4Attribute query extraction
- You have tracts for an
- entire state, but want
- tracts for one county
- only
5Attribute query extraction
- Select tracts by County FIPS ID
- Cook County 031
6Attribute query extraction
- Cook County tractsselected
- Export to new featureclass or shapefile
7Export selected features
- Right-click to export selected features
8Add new layer
9Feature location extraction
10Select by location
- Powerful function unique to GIS
- Identify spatial relationships between layers
- Finds features that are within another layer
11Select by location
- Have Cook County census tracts but want City of
Chicago only - Cant use Select By Attributes
- No attribute for Chicago
- Use Municipality layer
- City Chicago is a municipality within Cook County
12Select by location
- Select Chicago from municipalities layer
13Select by location
- Selection, Select By location
14Export selected features
15location proximities
16Points near polygons
- Health officials want to know polluting companies
near water features
17Points near points
- School officials want to know what schools are
near polluting companies
18Polygons intersecting lines
- Transportation planner wants to know what
neighborhoods are affected by construction
project on major highway
19Lines intersecting polygons
- Public works official wants to know what streets
or sidewalks will be affected by potential floods
20Polygons completely within polygons
- City planners want to know what buildings are
completely within a zoning area.
21Geoprocessing tools
22Geoprocessing overview
- GIS operations to manipulate data
- Typically take input data sets, manipulate, and
produce output data sets - Often use multiple data sets
23Common geoprocessing tools
- Analysis
- Extract Clip
- Overlay intersect and union
- Data management
- Generalization - dissolve
- General
- Append
- Merge
24Accessing tools
25Accessing tools
26Accessing tools
27Clip
- Acts like a cookie cutter to create a subset of
features
Clip features (Central Business District)
Input features (streets)
Output features (CBD streets)
28Clip
29Clip vs select by location
- Clip
- Clean edges
- Looks good
- Select by location
- Dangling edges
- Better for geocoding
30Dissolve
- 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
31Dissolve
- Create regions using U.S. states
- Use SUB_REGION field to dissolve
- Sum population
32Dissolve
33Dissolve results
- States dissolved to form regions
- Population summed for each region
34Append
- Appends one or more data sets into an existing
data set - 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's schema
35Append
- DuPage and Cook County are combining public works
and need a new single street centerline file.
36Append
- Append will add DuPage streets to Cook County
streets
37Resultant layer
- One street layer (Cook County) with all records
and field items
38Merge
- 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
39Merge
40Resultant layer
- New voting district layer
41Union
- 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
42Union
- Neighborhoods and ZIP Codes
43Union
44Union
- Better describes characteristics of a
neighborhood. - Central business district 15222 vs 15219
45Union
- Attributes tables contain different fields and
data
46Union results
- New polygons with combined data
47Intersect
- Computes a geometric intersection of the Input
Features - Features (or portions of features which overlap
in all layers and/or feature classes) will be
written to the Output Feature Class - Inputs can have different geometry types
48Intersect
- City manager needs to know what buildings
intersect flood zones and wants the flood data
attached to each intersecting building
49Intersect
50Intersect result
- Only building polygons that intersect flood zones
with combined data fields
51Model builder
52Model builder overview
- Workflow processes can be complicated
- Models automate and string functions together
- Example
- You have census tracts for a county and want to
create neighborhoods for a city - Many steps are needed to create neighborhoods
(join, dissolve, etc)
53Starting map
- TIGER census tracts and municipalities
54Final map
- Tracts dissolved to create neighborhoods
55Crosswalk 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
56Set geoprocessing options
- Geoprocessing, geoprocessing options
57Create a new toolbox
58Create a new model
59Add tool to model
- Add Join Tool
- To join crosswalk table to tracts
60Set parameter for Join Tool
- Joins crosswalk table to census tracts
61Model steps
- Add Join
- Dissolve
- Remove join
62Finished model
63Summary
- Attribute extraction
- Feature location extraction
- Location proximities
- Geoprocessing tools
- Model builder