Transform Your Skills: 3D Land Cover Maps in R!

preview_player
Показать описание
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:

Follow my work on Instagram:

Let's connect on X:

If you like my work, consider buying me a coffee:

ISO2 codes:

Music credits:
---------------------------------------------------------------------------------------------------
massobeats - waiting (lofi aesthetic music)
Рекомендации по теме
Комментарии
Автор

Thank you Milos for another amazing tutorial. It exceeded all my expectations.

lbarq
Автор

Thank you for this great tutorial and providing all your knowledge for free! ☺

janadju
Автор

This is very insightful and i will apply that to my own understanding of R and GIS data

jacksonkimani
Автор

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.

Md.NahinAlam-pu
Автор

hi, I'm doing a land cover map for Serbia and I'm stuck at 15:34 mark, where my min and max values are and respectively. I've been using chatgpt to troubleshoot my issue for 2 hours now but with no luck at all. what could be the issue?

KatarinaaBlaa
Автор

Thank you for the fantastic presentation!

I only have one issue when I get to #10 Render Object: whenever I run rayshader::render_highquality code, I get this error:
"Error in path_material_df$type : $ operator is invalid for atomic vectors"

I tried running it in RStudio and VS Code, but I get the same error. Any suggestions on how to fix it? Thanks in advance!

lkalanda
Автор

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

Appelouz
Автор

I know python, I have started learning R just to try these masterpieces.

Abhinav_jha
Автор

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

ingcohen
Автор

Thank you for this lovely video.. My requirement is same but I want to use the existing LULC file of my area of interest, not the living atlas or anything like that... Any help will be highly appreciated

GeoInfinityIndia
Автор

Hi Milo, how to get the URL for the tiles in the map? thank you for the tutorial!

sweven
Автор

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

czarinaapdon
Автор

Is it possible to remove the "black" line that borders each color in the raster? Thanks again.

lucas
Автор

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

lihao
Автор

Can i know which code editor has been used here? I am just initially going to start learn R. So it would be helpful if i get to know which code editor or studio will be good for a beginner.

teehee
Автор

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.

AHMEDNAJIH-yq
Автор

Hello,
Thank you for the video.
Got this error on step 4:
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'project': error in evaluating the argument 'x' in selecting a method for function 'aggregate': [crop] file exists. You can use 'overwrite=TRUE' to overwrite it

Used same code as you have.

jesenjin
Автор

Thank you for the video. Do you know if you can make a background a gradient colour with shadows mixed smoothly? In rayshader

IrakliKavtaradzepsyche
Автор

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?

lucas
Автор

i have tried 2 of your scripts to run on my computer, non of them works, i think you should also tell us under which version of Rstudio and packages you create this scripts

hamedhaidari