Massachusetts Institute of Technology - Department of Urban Studies and
Planning
11.520: A Workshop on Geographic Information
Systems
11.188: Urban Planning and Social Science
Laboratory
Lab Exercise 4: Database Aggregation and Chart Creation in
ArcMap
In-Lab Notes - 5 October 2009
Key Ideas in Lab #4:
Handling one-to-many relationships in ArcMap
Tricky to map population density when towns may have more than one part (polygon).
Common complication since geometry and data tables come from different sources
More common with detailed (large scale & small area) maps - Boston has more than one 'part'
Constructing meaningful indices:
Requires excluding cases and normalizing data
May require creation of new features and attributes in writeable directories.
Charts and business graphics in ArcMap
Another useful dimension: business graphics linked to selected sets in maps and tables
Key Techniques in Lab #4:
Joining attribute tables in ArcMap
Identify matching columns for each table
Direction matters! start with geographic table
Join operation will ignore >1 match to any mapable row!
Summarizing ArcMap attribute tables:
Aggregate/summarize all the other attributes for the rows that have the same value in the 'summarize' column
Highlight the 'group by' column (where each unique value results in one output row)
Select other columns that you wish to aggregate (via 'count,' 'sum,' 'max,' etc.)
Charting the correct table
May need to 'summarize' a table before charting
Be careful about which table to join to maps (i.e., the one-to-one table after summarization)
Selecting on map can impact chart as well as highlighting attribute table rows (if correct tab is checked)
Debriefing (about prior labs and homework):
Resetting ArcGIS configuration files (when your customzied ArcMap startup settings are screwed up):
user customizations are saved in H:\WinData\Application Data\ESRI
The ArcMap template file is:
H:\WinData\Application Data\ESRI\ArcMap\Templates\normal.mxt
Phil Thompson (at CRON) suggests using these commands to erase the ESRI subdirectory (and related registry setting) in order to start fresh when restarting ArcGIS
Exit from ArcGIS apps and run these two commands in a ' command prompt' window:
reg delete hkcu\software\esri
rmdir /s /q "%APPDATA%\esri"
Debugging skills: Verify success of each step of many-step procedure:
If buffering: did you buffer all features or only a selected subset of features?
If adding columns, summarizing, calculating: do you have write-access to the feature shapefile?
Customizing layers:
Shapefiles (and coverages) on disk (or in SDE):
One 'shapefile' includes many separate files on disk to store all retained information (including projections, indices)
Need write access to change any one of them
Layers in ArcMap
Can view in different projection by setting active 'data frame' projection
Can exclude features (rows) via the 'definition query' tab in layer properties (in which case the excluded features are retained on disk but not used within ArcMap processing of that data layer)
Can choose to manipulate only 'selected features' or 'all features' with most operations
Can 'export' shapefile and/or table of selected features and visible attribute columns to writeable space
Can retain symbology and other settings by saving as 'layer' in personal geodatabase
Can have more than one 'copy' of the same shapefile (or coverage) in a data frame