Create Stunning 3D Land Cover Maps in R Programming!

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 20

  • @milos-makes-maps
    @milos-makes-maps  Місяць тому +1

    Wow, rgeoboundaries was removed from CRAN after I published this tutorial. You can still download it from the GitHub repo using this code:
    install.packages("remotes")
    remotes::install_github("wmgeolab/rgeoboundaries")

    • @jimmejino6446
      @jimmejino6446 Місяць тому

      tried this and I'm having a hard time getting rgeoboundaries installed :(
      ERROR: lazy loading failed for package ‘rgeoboundaries’
      * removing ‘/cloud/lib/x86_64-pc-linux-gnu-library/4.4/rgeoboundaries’
      Warning message:
      In i.p(...) :
      installation of package ‘/tmp/RtmpDl66nI/file1445498896f/rgeoboundaries_1.3.1.tar.gz’ had non-zero exit status

  • @gadisageremew7991
    @gadisageremew7991 Місяць тому +1

    Please share the way how to install rgeoboundaries

    • @milos-makes-maps
      @milos-makes-maps  Місяць тому

      Wow, that's a bummer that it coincided with the release of my tutorial. You can still download it from the GitHub repo using this code:
      install.packages("remotes")
      remotes::install_github("wmgeolab/rgeoboundaries")

  • @Azdkhki
    @Azdkhki 13 днів тому +1

    Hello, thank you for your super-tutorials! I have two problems here. when I try mask=True it throws an Error if I remove the mask, it works but the map will have an additional blue buffer around the country. I should mention that given that rgeoboundaries is not supported in CRAN anymore I have used other functions to obtain the countries boundaries.
    Second problem is when I process the terra::rast(), I think that is in what you mentioned here about coordinate systems of x and y but how can I correct it?

    • @Azdkhki
      @Azdkhki 13 днів тому

      Error in methods::as(x, "SpatRaster") :
      no method or default for coercing “NULL” to “SpatRaster”

    • @milos-makes-maps
      @milos-makes-maps  3 дні тому

      I faced issues with mask=TRUE when working with terra in the past. Installing the latest version helped me resolve this error

  • @PassingTheDog
    @PassingTheDog 2 місяці тому +1

    Thanks! :)

  • @Kate_benard
    @Kate_benard 2 місяці тому +1

    Can this do a Lake basin area that covers several countries?

    • @milos-makes-maps
      @milos-makes-maps  2 місяці тому

      Yes, absolutely!

    • @Therealfolkblues-1
      @Therealfolkblues-1 Місяць тому

      To chip in... Lake Chad in Central Africa would actually be a great choice ​@@milos-makes-maps

  • @JulianaaMota
    @JulianaaMota Місяць тому

    Thank you for sharing your knowledge Milos, do you think it would be possible to do this analysis for land use and land cover data in Brazil? like TerraClass data.

    • @milos-makes-maps
      @milos-makes-maps  Місяць тому +1

      Hi Juliana, to be honest, I haven't used the TerraClass data. I imagine that you would have to modify the code to fetch the data from its origin. Also, you would need to define the land cover colors and assign them to each land cover value

  • @osehmoses6242
    @osehmoses6242 Місяць тому

    how did you add your libraries as mine is not coming up. thanks

    • @milos-makes-maps
      @milos-makes-maps  Місяць тому

      Wow, rgeoboundariee was removed from CRAN after I published this tutorial. You can still download it from the GitHub repo using this code:
      install.packages("remotes")
      remotes::install_github("wmgeolab/rgeoboundaries")

  • @benamollo1105
    @benamollo1105 2 місяці тому +1

    > country_land_cover

    • @milos-makes-maps
      @milos-makes-maps  2 місяці тому

      The terra::crop function requires a valid raster and an extent or spatial object so that's why you see this error. If the input raster is not provided crop can fail since there's no raster to crop. Please check if you downloaded the files and if you loaded them as virtual raster tiles (VRT) into R in the previous steps

  • @adaiprosperbrou9568
    @adaiprosperbrou9568 Місяць тому

    Add the coordinates