This lesson is still being designed and assembled (Pre-Alpha version)

Working with Geospatial Data

Lesson Authors: Jemma Stachelek

Lesson Maintainers: Jemma Stachelek

The episodes in this lesson cover how to open, work with, and plot vector and raster-format spatial data in R. Additional topics include working with spatial metadata (extent and coordinate reference systems), and reprojecting spatial data.

Prerequisites

These materials are hands-on, so participants are encouraged to use their own computers to ensure the proper setup of tools for an efficient workflow. To most effectively use these materials, please make sure to download the data and install everything before working through this lesson.

R Skill Level

This lesson assumes you have some knowledge of R. If you’ve never used R before, or need a refresher, start with our Introduction to R for Geospatial Data lesson.

Geospatial Skill Level

This lesson assumes you have some knowledge of geospatial data types and common file formats. If you have never worked with geospatial data before, or need a refresher, start with our Introduction to Geospatial Concepts lesson.

Install Software and Download Data

For installation instructions and to download the data used in this lesson, see the Geospatial Workshop Overview.

Setup RStudio Project

Make sure you have set up a RStudio project for this lesson, as described in the setup instructions and that your working directory is correctly set.

Schedule

Setup Download files required for the lesson
00:00 1. Open and Plot Shapefiles in R How can I distinguish between and visualize point, line and polygon vector data?
00:30 2. Explore and Plot by Shapefile Attributes How can I compute on the attributes of a spatial object?
01:30 3. Convert from .csv to a Shapefile in R How can I import CSV files as shapefiles in R?
02:30 4. Intro to Raster Data in R What is a raster dataset?
How do I work with and plot raster data in R?
How can I handle missing or bad data values for a raster?
03:30 5. Manipulate Raster Data in R How can I crop raster objects to vector objects, and extract the summary of raster pixels?
04:30 Finish

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.