Slides for Lecture 08 of the Saint Louis University Course Introduction to GIS. These slides introduce techniques for building geodatabases using ArcGIS Pro as well as additional cleaning and exporting data with RStudio.
along with Lab-05 and Lab-06. 1. FRONT MATTER ANNOUNCEMENTS Next Week: PS-03 (from last week), Lab-07 (from today), final project check-in, video lectures over spring break Midterm grades will be posted next week as well!
have data in two different files (or objects in R) that we want to store, map, or analyze together. Perhaps we have data on the number of bodies of water listed under the clean water act by county, but not the actual geometries for county boundaries themselves. id a 1 high 2 high 3 low 4 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 4 89 TRUE data frame x data frame y
both contain matching identification variables. Typically, there should be no missing data or duplicates for our IDs. They also need to be of the same type (character, numeric, etc). id a 1 high 2 high 3 low 4 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 4 89 TRUE data frame x data frame y
object (in this case x) will be an sf object. If that is the case, our righthand object must be a data frame or a tibble. id geometry 1 c(…) 2 c(…) 3 c(…) 4 c(…) id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 4 89 TRUE sf object x data frame y
if c is not needed for your application, get rid of it with dplyr::select() ahead of time to keep your output file organized and as small as possible. id geometry 1 c(…) 2 c(…) 3 c(…) 4 c(…) id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 4 89 TRUE sf object x data frame y
id, plus all other columns. id a 1 high 2 high 3 low 4 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 4 89 TRUE data frame x data frame y id a b c 1 high 24 TRUE 1 high 24 TRUE 2 low 67 FALSE 3 low 89 TRUE
only present in our righthand data, it will be omitted. id a 1 high 2 high 3 low 4 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE 5 89 TRUE data frame x data frame y id a b c 1 high 24 TRUE 2 high 24 TRUE 3 low 67 FALSE
only present in our lefthand data, it will be given NA values. id a 1 high 2 high 3 low 5 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE data frame x data frame y id a b c 1 high 24 TRUE 2 high 24 TRUE 3 low 67 FALSE 5 low NA NA
id a 1 high 2 high 3 low 5 low id b c 1 24 TRUE 2 24 TRUE 3 67 FALSE data frame x data frame y id a b c 1 high 24 TRUE 2 high 24 TRUE 3 low 67 FALSE 5 low 0 NA
singular, as if they were one file on our computer. That is how ArcGIS sees them. Our computer sees things differently, however: data.shp (geometry) data.shx (shape index) data.dbf (attributes) data.sbn (spatial index) data.sbx (spatial index) data.shp.xml (metadata) data.cpg (character encoding) data.prj (projection)
of shapefiles, and may contain a large number of feature classes. cityData.gdb Boundary_City Demographics_Tracts Hydro_MajorLakes Hydro_MajorRivers PublicSaftey_PoliceStations PublicSaftey_FireStations Trans_Interstates Trans_StreetCenterlines
5650 only Next Week: PS-03 (from last week), Lab-07 (from today), video lectures over spring break REMINDERS 5. BACK MATTER Midterm grades will be posted next week as well!