library(leaflet) # web based mapslibrary(sf) # simple (spatial) featureslibrary(readr) # import csvlibrary(dplyr) # data wranglinglibrary(here) # where am I?library(pander) # nice tables# setwd(here()) # set the working directory
19.2 Get Simulated Client Data
Show the code
clients <-read_csv("./location-data/clients.csv")pander(head(clients)) # top of client data
parks <-read_sf("./shapefiles/AA_Parks/AA_Parks.shp")university <-read_sf("./shapefiles/AA_University/AA_University.shp")city_boundary <-read_sf("./shapefiles/AA_City_Boundary/AA_City_Boundary.shp")
20 Transform CRS
“Map projections try to portray the surface of the earth or a portion of the earth on a flat piece of paper or computer screen. A coordinate reference system (CRS) then defines, with the help of coordinates, how the two-dimensional, projected map in your GIS is related to real places on the earth. The decision as to which map projection and coordinate reference system to use, depends on the regional extent of the area you want to work in, on the analysis you want to do and often on the availability of data.” From qgis.org