If you are getting this error: Error in rayvertex::validate_mesh(mesh) : !any(is.na(normals)) is not TRUE please downgrade your rayshader (pasting here the instructions from Michal Škop): How to downgrade rayshader? install devtools devtools::install_version("rayshader", version = "0.35.7", repos = "cran.r-project.org") Always restart R (R studio) Not all numbers/versions exist (it took me a while to realize this, I was getting errors for 0.35 or 0.35.0 or 0.35.1) Use a small example to find the problems quickly (🇦🇩 Andorra was my friend)
Hi! I’m glad you enjoyed the tutorial on LIDAR technology! It’s a fascinating topic that has many applications in various fields. Thank you for your kind words and for sharing your interest with me. 😊
@@milos-makes-maps I'm coming from the ArcGIS Pro/python geopandas world. very cool to see new tools! have you experimented with collecting your owned sensed data through a small sensor or drone?
Thank you for an excellent work! I noticed that in my case this part doesn't work: if( any(installed_libraries == F){ install.packages( libs[!installed_libraries] ) } ) I had to change to : if (any (installed_libraries == FALSE)) { install.packages(libs[!installed_libraries] ) }
Super amazing tutorial! However I am running into a problem that I am not sure why is happening. When I plot the lidar_mat and add the overlay of the img, it is computing a black square behind the circular plot. I haven't been able to figure out how to get rid of it and just have the clean circular plot yet. Did you experience this or know how I could get rid of it?
Thanks! I’m sorry to hear that you are having trouble with rayshader. Does the black square appear when you render the scene? I suspect you might be using an older rayshader version so updating it would be my first try. Let me know how it goes
Fanatastic! But I ran into an error: Error in h(simpleError(msg, call)) : error in evaluating the argument 'y' in selecting a method for function 'extract': unable to find an inherited method for function ‘extent’ for signature ‘"SpatRaster" After running: lidar_mat
Hey, thank you for your kind words ☺️! Are you trying to run my code? It seems that you are having trouble with the extract function for a SpatRaster object. According to the web search results, this error may occur when the object is not properly defined or the extent is not compatible with the function. You may want to check the following points: - Make sure that you have loaded the terra package and created a valid SpatRaster object from your file - Make sure that the extent of your SpatRaster object is within the range of the function you are using. I suspect that the error occurs before you call rayshader so it would be great if you could trace it back to the first line where it occurs
@@milos-makes-maps Thx for your response! Yes I have run the exact same code that you have provided in github, including using the same Lidar data etc. Terra and rayshader is also loaded, before i run the rest. I'm not sure what you mean with: "Make sure that the extent of your SpatRaster object is within the range of the function you are using."
@@NjBerber You might be using an older version of rayshader (please confirm your version) where raster_to_matrix function expects a RasterLayer object as input, not a SpatRaster object. You can try to convert your SpatRaster object to a RasterLayer object using the as function, like this: lidar_mat
If you are getting this error:
Error in rayvertex::validate_mesh(mesh) : !any(is.na(normals)) is not TRUE
please downgrade your rayshader (pasting here the instructions from Michal Škop):
How to downgrade rayshader?
install devtools
devtools::install_version("rayshader", version = "0.35.7", repos = "cran.r-project.org")
Always restart R (R studio)
Not all numbers/versions exist (it took me a while to realize this, I was getting errors for 0.35 or 0.35.0 or 0.35.1)
Use a small example to find the problems quickly (🇦🇩 Andorra was my friend)
Definitely going to try this, looking crispy and crunchy as always, thanks a lot sir
Awesome, let me know how it goes!
Fantastic tutorial! I've always been intrigued by LiDAR technology, Thanks for sharing this valuable knowledge!
Hi! I’m glad you enjoyed the tutorial on LIDAR technology! It’s a fascinating topic that has many applications in various fields. Thank you for your kind words and for sharing your interest with me. 😊
Excellent tutorial. Thanks for sharing.
Thank you! Looking forward to your application 😁
Very cool. Look forward to the next one!
Thanks!! I'm glad you find it cool and looking forward to publishing my next video, too
@@milos-makes-maps I'm coming from the ArcGIS Pro/python geopandas world. very cool to see new tools!
have you experimented with collecting your owned sensed data through a small sensor or drone?
u take courses of the shown subject...?
Thank you for putting time into creating this. Are geotiles available for other parts of the world?
My pleasure! I've included a few links in the description box but I think there should be more though mostly available for Western countries
Thank you for an excellent work! I noticed that in my case this part doesn't work:
if(
any(installed_libraries == F){
install.packages(
libs[!installed_libraries]
)
}
)
I had to change to :
if (any
(installed_libraries == FALSE)) {
install.packages(libs[!installed_libraries]
)
}
Thank you, that's really good to know! Thanks for flagging the issue!
Super amazing tutorial! However I am running into a problem that I am not sure why is happening. When I plot the lidar_mat and add the overlay of the img, it is computing a black square behind the circular plot. I haven't been able to figure out how to get rid of it and just have the clean circular plot yet. Did you experience this or know how I could get rid of it?
Thanks! I’m sorry to hear that you are having trouble with rayshader. Does the black square appear when you render the scene? I suspect you might be using an older rayshader version so updating it would be my first try. Let me know how it goes
Fanatastic! But I ran into an error: Error in h(simpleError(msg, call)) :
error in evaluating the argument 'y' in selecting a method for function 'extract': unable to find an inherited method for function ‘extent’ for signature ‘"SpatRaster"
After running:
lidar_mat
Hey, thank you for your kind words ☺️! Are you trying to run my code? It seems that you are having trouble with the extract function for a SpatRaster object. According to the web search results, this error may occur when the object is not properly defined or the extent is not compatible with the function. You may want to check the following points:
- Make sure that you have loaded the terra package and created a valid SpatRaster object from your file
- Make sure that the extent of your SpatRaster object is within the range of the function you are using.
I suspect that the error occurs before you call rayshader so it would be great if you could trace it back to the first line where it occurs
@@milos-makes-maps Thx for your response!
Yes I have run the exact same code that you have provided in github, including using the same Lidar data etc.
Terra and rayshader is also loaded, before i run the rest.
I'm not sure what you mean with: "Make sure that the extent of your SpatRaster object is within the range of the function you are using."
@@NjBerber You might be using an older version of rayshader (please confirm your version) where raster_to_matrix function expects a RasterLayer object as input, not a SpatRaster object. You can try to convert your SpatRaster object to a RasterLayer object using the as function, like this: lidar_mat
Can we do this for India?
Good question, I was wondering the same question if any Indian state has LiDAR data
@@milos-makes-maps yes u might get that online
@@amitrahangdale595 please share the link! I would like to make another video on mapping an Indian city with the point cloud data
www.nrsc.gov.in/aerial_dsm?language_content_entity=en
@@milos-makes-maps www.nrsc.gov.in/aerial_dsm?language_content_entity=en