Unleash the Power of 3D: Crafting Stunning Land Cover Maps with R

Published 2023-12-10
My latest YouTube video is a game-changer for all map enthusiasts and data wizards! 🎥✨ Learn how to harness the power of ESRI Living Atlas of the World Sentinel-2 Global Land Cover data at an incredible 10m resolution to create ultra-crisp 3D elevation and land cover maps using rayshader in R. 🛰️🗺️

Chapters

0:00 Intro
00:24 Packages
03:18 Short notice
03:32 Country boundaries
04:24 Esri data
06:04 Download data
07:05 Enlist raster files
07:48 Reproject and crop
13:54 Virtual raster layer
15:28 Fetch colors
17:15 RGB to hex code
19:13 Assign colors to raster
22:53 Plot raster
23:10 Digital Elevation Model
24:04 Resample land cover
25:39 Plot resampled raster
25:51 Raster to image
27:29 Elevation matrix and dimensions
29:13 Render first scene
32:47 Render second scene
33:25 Render object
36:11 Make legend
42:43 Insert legend into map
46:37 Final thoughts

Check the full code in my GitHub repo:
github.com/milos-agathon/3d-land-cover-map

Follow my work on Instagram:
www.instagram.com/milos_makes_maps

Let's connect on X:
twitter.com/milos_agathon

If you like my work, consider buying me a coffee:
www.buymeacoffee.com/milospopovic

ISO2 codes:
www.iban.com/country-codes

Music credits:
---------------------------------------------------------------------------------------------------
massobeats - waiting (lofi aesthetic music)
Original upload HERE -    • massobeats - waiting (lofi aesthetic ...  

All Comments (21)
  • @lbarq
    Thank you Milos for another amazing tutorial. It exceeded all my expectations.
  • @janadju7968
    Thank you for this great tutorial and providing all your knowledge for free! ☺
  • This is very insightful and i will apply that to my own understanding of R and GIS data
  • @user-st8kq7qb9s
    This is great! Could you please share your PC's specifications? I have tried several times on my computer, but the final output is not satisfactory.
  • @Abhinav_jha523
    I know python, I have started learning R just to try these masterpieces.
  • @lihao5126
    Thanks for this nice resource. I wonder how long the rendering take in your case? for me, it was quite slow in the case of Bosnia
  • @alicaterojo
    Excellent contribution. One question, would it be possible to extract percentage data for each characteristic? That is, percentage values for Water, Trees, Built area, etc. Thks
  • @Appelouz
    I am truly in love with this map style! I'd love to use it to show sample locations for a project in Ecuador, though I wondered whether you have some aesthetic tips for showing which part of the map borders the ocean and which part borders a land mass? By cutting the country out entirely this differentiation is lost
  • @czarinaapdon1131
    Hi Milos! Thank you for your tutorial, it's wonderful. I would like to ask, is there a way to restrict the borders down to certain states or provinces only and not the entire country? Thanks so much
  • @DCATKaarthikN
    truly big fan of your works and amazed by the way you present them. I am an architecture student from India and have zero knowledge of coding and I can’t afford to take a course to learn it, neither will I be able to learn it quick. I need similar maps for my project presentation. Do I simply copy the codes you put and change the city name that I want to generate a 3D map for? How do I go about it
  • @lucas6419
    I finally managed to get the final result! Although my Bosnia borders are sharp and not detailed like yours. I realized it was the resolution. Only 20 works for me, 10, 03 and 01 says its corrupt. Is it because my pc can't handle such high resolution?
  • Wow, that was amazing! Thanks for the videos. I have gone through this tutorial, and some packages are unloading. can I learn this from the trash?
  • @lucas6419
    I want to use a shp with a custom projection (WGS84 UTM Zone 19S) I assume i have to change something in #4 load tiles because thats where i specify epsg:4326. What do I have to add or change to make it work? Because currently I get a land_cover_map full black. Thanks!
  • Thank you for the video. Do you know if you can make a background a gradient colour with shadows mixed smoothly? In rayshader
  • @user-wh8qk7lq2o
    i'm just finiching this masterpeace thank you so much , my question is why you dont use rstudio as an editor instead vcstudio what is the différence? keep going.