inbo / tutorials

A collection of technical tutorials for INBO (and anyone who's interested)
https://inbo.github.io/tutorials/
Creative Commons Attribution 4.0 International
22 stars 9 forks source link

Updates in a few spatial tutorials #298

Closed florisvdh closed 2 years ago

florisvdh commented 2 years ago

Description

This is a response to some (rather long standing) issues and requests (1 is from #281, 2 and 3 are from Roger Bivand).

  1. use sf::st_layers() instead of relying on gdalUtils::ogrinfo() for that matter
  2. provide a method to enlist (EPSG) CRSs in R. Not preferring rgdal though, since it will retire.
  3. don't teach proj4string<-, rather refer as slot(, "proj4string")<-

Also, added some updates regarding the use of googlesheets4.

Related Issue

Fixes #281.

Previewing the pull request

Thanks to GitHub Actions, an artifact (=zip file) of the rendered website is automatically created for each pull request.

Instructions

1) On the PR page, you can find a "details" link under "checks - On PR, build the site and ...". Go there, click on the top link in the left sidebar ("Summary"), and download the generated artifact at the bottom of the page. 2) Decompress it and make sure the target directory is called 'tutorials' (you may need to rename it) 3) From the parent directory (just above the tutorials folder you created/renamed), run python -m http.server 8887, or launch the Google Chrome Web Server app and point it at the parent directory. 4) Point your browser to http://localhost:8887/tutorials. 5) Review the updated website and accept/refuse/comment the PR

Note: for step 3, you can use any other simple HTTP server to serve the current directory if you don't have a Python 3 environment or Google Chrome available.