gis 1 gis lecture 4 geodatabases copyright – kristen s. kurland, carnegie mellon university
TRANSCRIPT
![Page 1: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/1.jpg)
GIS 1
GIS Lecture 4Geodatabases
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 2: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/2.jpg)
GIS 2
Outline
•Administrative Data Example•Data Tables•Data Joins•Common Datasets•Spatial Joins•ArcCatalog Overview•Geodatabases•Editing Tables•Excel Tips
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 3: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/3.jpg)
GIS 3
Administrative Data Example
![Page 4: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/4.jpg)
GIS 4
Administrative Data
Mission • What does the organization do?• Transaction event (who, what, where, when)-must have spatial component
What data is available? • Databases• Spreadsheets
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 5: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/5.jpg)
GIS 5
Example
County Property Assessments•Assesses the value of each land parcel and its structures
•Sets a property tax rate•Sends property tax bill = assessed value * tax rate
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 6: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/6.jpg)
GIS 6
Allegheny County Assessment WEB Site
http://www.county.allegheny.pa.us
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 7: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/7.jpg)
GIS 7
![Page 8: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/8.jpg)
GIS 8
![Page 9: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/9.jpg)
GIS 9
Westmoreland County Assessment WEB Site
http://207.140.67.68/westmoreland/viewer.htm
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 10: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/10.jpg)
GIS 10
Data Tables
![Page 11: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/11.jpg)
GIS 11
Property Table
Property Data• Owner• Address• Sale Date and Price• Map Lot Block Number
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 12: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/12.jpg)
GIS 12
Parcels GIS Layer
• Smallest geographic element is a deeded land parcel
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 13: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/13.jpg)
GIS 13
Data Joins
![Page 14: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/14.jpg)
GIS 14
Join Property Table to Parcels•Join on common attribute value•Values must be the same
Copyright – Kristen S. Kurland, Carnegie Mellon University
Must remove dashes!
![Page 15: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/15.jpg)
GIS 15
Import Property Table to ArcMap
•Save Excel file as a comma separated file .CSV File or DBF (DBASE IV) file
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 16: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/16.jpg)
GIS 16
Add Table as Data Layer
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 17: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/17.jpg)
GIS 17
Join Table to Map•A common field joins or links tables•Records with the same value are matched•Some cleaning necessary (dashes removed)
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 18: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/18.jpg)
GIS 18
Join Table to Parcels
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 19: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/19.jpg)
GIS 19
Resultant Parcels Table•Property fields are appended to parcels table•Source files remain separate•Joins can be removed•Maps can be created from values in the new fields
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 20: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/20.jpg)
GIS 20
Resulting Assessment Map
![Page 21: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/21.jpg)
GIS 21
Resulting Assessment Map
Copyright – Kristen S. Kurland, Carnegie Mellon University
Central Oakland Land Parcels
2003 Assessment
![Page 22: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/22.jpg)
GIS 22
Problems with Joins
•Saving .DBF and .CSV files in Excel•Avoid special formats•Keep it simple•Use Access as a “middle man”
![Page 23: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/23.jpg)
GIS 23
Common Datasets
![Page 24: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/24.jpg)
GIS 24
Common Datasets U.S. Census Maps and U.S. Census Tables
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 25: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/25.jpg)
GIS 25
Common Datasets•Zip Codes-Use with U.S. Census data or Geocoding
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 26: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/26.jpg)
GIS 26
Place Geocodes: FIPS Codes
Federal Information Processing Standards Codes
Developed by the National Institute of Standards and Technology
Codes for Place Names Throughout the World•countries•states/provinces•counties•metropolitan statistical areas (MSA’s)•cities•places - indian reservations, airports, and post offices in the US
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 27: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/27.jpg)
GIS 27
Place Geocodes: Hierarchy
Country: US
FIPS CODES
County: 003 (Allegheny)
State: 42 (Pennsylvania)
Tract: 0501
Block: 12 (US420030501312)
Block Group: 3CENSUS CODES
Minor Civil Division: 85188 (Wilkinsburg)
Parcel (Block & Lot#)
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 28: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/28.jpg)
GIS 28
Locating Data
•Contact agencies•Obtain data on-line
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 29: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/29.jpg)
GIS 29
Spatial Joins
![Page 30: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/30.jpg)
GIS 30
Spatial Joins•Spatially count points within polygons•Join tables using Shape field•Join points to polygons or polygons to points
![Page 31: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/31.jpg)
GIS 31
Spatial Joins•Join municipality name to points spatially
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 32: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/32.jpg)
GIS 32
Spatial Joins•Resultant point layer (food points) now contains municipality information
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 33: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/33.jpg)
GIS 33
Aggregate Data
• Summarize on spatial join- Counts the number of points (records) for each
municipality
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 34: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/34.jpg)
GIS 34
Aggregate Data
• Resultant Table- Count of points (food stores) in each polygon
(municipality)
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 35: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/35.jpg)
GIS 35
Join Summary Table• Join summary table of counts (based on municipality name from sum table) back to municipalities for labeling
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 36: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/36.jpg)
GIS 36
Label Counts•Label the count of stores from the summary join
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 37: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/37.jpg)
GIS 37
Label Counts•Show counts as a Choropleth Map
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 38: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/38.jpg)
GIS 38
Map with Points
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 39: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/39.jpg)
GIS 39
Map without Points
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 40: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/40.jpg)
GIS 40
ArcCatalog
![Page 41: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/41.jpg)
GIS 41
ArcCatalog
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 42: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/42.jpg)
GIS 42
Metadata
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 43: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/43.jpg)
GIS 43
Metadata
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 44: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/44.jpg)
GIS 44
Metadata
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 45: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/45.jpg)
GIS 45
Metadata
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 46: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/46.jpg)
GIS 46
Metadata
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 47: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/47.jpg)
GIS 47
Geodatabases
![Page 48: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/48.jpg)
GIS 48
Geodatabase
•‘geographic database’ •represents geographic features and attributes as objects and is hosted inside a relational database management system
•managing your coverages, grids, and shapefiles inside a database management system, or DBMS
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 49: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/49.jpg)
GIS 49
Enterprise Geodatabases
•require a ‘host’ DBMS -SQL Server, Oracle, or IBM DB2
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 50: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/50.jpg)
GIS 50
Personal Geodatabases
•based on the Microsoft JET engine -appear as an .mdb file (Microsoft’s JET engine is also used by Microsoft Access).
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 51: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/51.jpg)
GIS 51
Geodatabase Advantages
•Provide a uniform and IT compliant repository for geographic data.
•Many users can edit geographic data simultaneously.
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 52: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/52.jpg)
GIS 52
Geodatabases
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 53: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/53.jpg)
GIS 53
Importing Shapefiles into Geodatabases
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 54: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/54.jpg)
GIS 54
Importing Tables into Geodatabases
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 55: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/55.jpg)
GIS 55
dBASE and Tables
![Page 56: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/56.jpg)
GIS 56
dBASE Tables
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 57: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/57.jpg)
GIS 57
Editing Tables•Field definitions edited in ArcCatalog•Layers cannot be in use elsewhere
![Page 58: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/58.jpg)
GIS 58
Calculator Functions
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 59: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/59.jpg)
GIS 59
Calculator Functions
Copyright – Kristen S. Kurland, Carnegie Mellon University
• Not just for numeric fields
![Page 60: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/60.jpg)
GIS 60
Excel Tips and Tricks
![Page 61: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/61.jpg)
GIS 61
FIPS Code Reminder
Country: US
FIPS CODES
County: 003 (Allegheny)
State: 42 (Pennsylvania)
Tract: 0501
Block: 12 (US420030501312)
Block Group: 3CENSUS CODES
Minor Civil Division: 85188 (Wilkinsburg)
Parcel (Block & Lot#)
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 62: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/62.jpg)
GIS 62
Formatting and Replace
•Delete any Excel formatting (e.g. borders, patterns, etc.)
•Delete unwanted text (e.g. word “tract”)-Find and replace
![Page 63: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/63.jpg)
GIS 63
Transpose Data
•Transpose data-Some census data saves data as rows instead of columns
-You need transpose the data so that tracts will be a column-Select your data in excel and go to Edit menu and select copy-Click on a cell outside of your selected data and go to edit menu to select paste special…
![Page 64: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/64.jpg)
GIS 64
Now you see the data transposed in the right way. All you need to do is to delete the original rows and save your file.
![Page 65: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/65.jpg)
GIS 65
Concatenate Strings
Sometimes you need add certain string before or after a value, and sometimes you want to combine two values. The excel CONCATENATE function makes that happen for you.
![Page 66: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/66.jpg)
GIS 66
If you have the below dataset, and want to combine the state ID and county ID together as another variable and you want to make sure the new StateCountyID has the length of 5
For example, you want to add a “0” to State IDs that are only 1 character long, and you want add “00” to county IDs that that is 1 character long and “0” to those that are 2 characters.
Concatenate Strings
![Page 67: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/67.jpg)
GIS 67
Start by adding a new column right to StateID, and enter:
=IF(LEN(A2)=1,CONCATENATE(0,A2),A2)
What you tell excel is: if the length of the cell A2 is 1, add 0 before the original value, otherwise, keep the original value
Concatenate Strings
![Page 68: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/68.jpg)
GIS 68
After that, you copy and paste the formula to the rest of the column, and you will see the following result
Concatenate Strings
![Page 69: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/69.jpg)
GIS 69
Now let’s solve the problem for county ID. In the cell next to C2, you enter:
=IF(LEN(C2)=1,CONCATENATE("00",C2),IF(LEN(C2)=2,CONCATENATE("0",C2),C2))
What this tells excel is if the length of county ID is 1, add “00” before it, if the length is 2, add “0” before it, if the length is 3, keep the original
Concatenate Strings
![Page 70: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/70.jpg)
GIS 70
Now you copy and paste the formula to the rest of the column and you get the above result
Concatenate Strings
![Page 71: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/71.jpg)
GIS 71
Next, you create a new column called StateCountyID, and enter is the cell E2:
=concatenate(B2,D2)
By this, you are telling Excel to combine the two new columns that you created in the previous steps
Concatenate Strings
![Page 72: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/72.jpg)
GIS 72
Now you just need to copy and paste the formula to the rest of the column and you finally get what you want.
Concatenate Strings
![Page 73: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/73.jpg)
GIS 73
Mid Function
Sometimes, a simple replace won’t do for you to substring a column. In this case, you can use Excel’s mid function to get a subset of a value.For example, if you have the following data want extract two letters in the middle, say 12 from the first row, and 13 from the second row, and so on, the Excel MID function is your choice.
![Page 74: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/74.jpg)
GIS 74
Mid Function
You enter: =mid(A1,4,2) in the cell next to A1. What you tell excel to do is: From cell A1, extract 2 characters starting from the 4th character from left.
![Page 75: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/75.jpg)
GIS 75
Mid Function
Then you copy and paste the formula from B1 to the rest of the column and you get what you need.
![Page 76: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/76.jpg)
GIS 76
Excel Tips and Tricks
•Formatting•Find and Replace•Transpose•MID Function•Concatenate
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 77: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/77.jpg)
GIS 77
Other Excel Functions
You might want to learn some other excel functions that could help you clean the data, such as:• Right()• Left()• Exact()
Copyright – Kristen S. Kurland, Carnegie Mellon University
![Page 78: GIS 1 GIS Lecture 4 Geodatabases Copyright – Kristen S. Kurland, Carnegie Mellon University](https://reader035.vdocuments.site/reader035/viewer/2022062305/56649ef55503460f94c08ebe/html5/thumbnails/78.jpg)
GIS 78
Conclusion
•Administrative Data Example•Data Tables•Data Joins•Common Datasets•Spatial Joins•ArcCatalog Overview•Geodatabases•Editing Tables•Excel Tips
Copyright – Kristen S. Kurland, Carnegie Mellon University