Lesson 4: OSM Data & GIS Operations in R

Authors

Clémentine Cottineau

Ignacio Urria Yáñez

Episode 15: Import & Visualise OSM Data

Videos Credits: Clémentine Cottineau, Ignacio Urria Yáñez

In this episode, you’re about to learn about the OpenStreetMap (OSM) server and how to collect and use its data in R.

A recap of what you’ve gone through so far

LO

What is OpenStreetMap?

Learn more about OSM.

How does OSM work?

Answers to the questions

What is OpenStreetMap Pt. 2

OSM in R

Tip: Install OSMData Pack

Installation and data extraction

Bounding Box

Using getbb() function

Tip: Location with the same name

There are locations with the same names. Be aware of it.

Extracting Features

Extract the Features

Searching Documentation

Check the Documentation Link

Overpass Query

Check the instructions for using the Overpass API.

Overpass Query Pt. 2

Structure of Objects

Learn about the objects

Mapping

Check the Projections via the link

Visualization

filter() function is used

What is the difference between AES and buil_date?

Answer to the question

Visualization Pt. 2

Tip: regarding visualization

Question about coloring

How to should we make it color friendly?

Answer to the question

Question about the syntax

British or American syntax for visualization?

Visualization Pt. 3

Why do we have a contrast in the map?

Visualization Pt. 4

Replicability

How can we replicate the same plot and map?

Replicability Pt. 2

Question about storing the CRS

Can I run the code but use the CRS instead of city names in a row?

Answer to the question

Replicability Pt. 3

Question about storing the function

Where can we store the function?

Question about curly brackets

When do we use curly brackets?

Replicability Pt. 4

Closure

Going Interactive

Challenge description

Going Interactive Pt. 2

Going Interactive Pt. 3

Discussing the challenge maps

Question regarding the challenge

Why do we have to reproject the buildings?

Question about replicability

Can we do the replicability example by changing the city name with the interactive mapping?

Tip: An additional solution

addfile as a solution

Going Interactive Pt. 4

Challenge solution and leaflets

Wrap UP