Back to Browse

Create railway map from OpenStreetMap data with R

5.5K views
Premiered Apr 9, 2023
30:40

Eager to use OpenStreetMap country-level data from GeoFabrik to create pretty maps but didn't know how? This tutorial shows you 2 ways to download, process and map OSM data with R 0:00 Intro 1:14 Data source 5:32 Load packages 5:59 Working directories 7:18 Method I: Czechia file 8:31 Czechia OSM files 9:07 Unzip Czechia files 10:10 Load Czechia shapefile 10:54 OSM wiki 11:43 Plot Czech railways 12:43 Czech railways map 13:12 Method II: Spain files 13:56 Links scraped 15:19 Rename links 15:53 Download Spain files 16:18 Check files 16:30 Unzip issue 17:21 Unzipping explained 17:55 Unzip Spain files 19:42 Unzipped files 20:37 Load Spanish railways 21:21 Inspect Spanish railways 21:52 Plot Spanish railways 23:06 Spanish railways map 23:23 ggplot2 27:58 Final map 28:48 Closing Check the full code in my GitHub repo: https://github.com/milos-agathon/create-railway-map-from-osm Follow my work on Instagram: https://www.instagram.com/milos_makes_maps Let's connect on Twitter: https://twitter.com/milos_agathon If you like my work, consider buying me a coffee: https://www.buymeacoffee.com/milospopovic Music credits go to: "Artificial.Music - Faithful Mission" is under a Creative Commons (CC BY 3.0) license. @smarttoaster 🎵 Music provided by BreakingCopyright: https://bit.ly/faithful-mission-song

Download

0 formats

No download links available.

Create railway map from OpenStreetMap data with R | NatokHD