florisvdh
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    _Below text is going to be posted as a GitHub discussion on the **rgrass** repo._ # Meeting minutes on interfacing GRASS from R 2023-06-04 15:00 CEST Conversation as part of the [GRASS Community Meeting in Prague 2023](https://grasswiki.osgeo.org/wiki/GRASS_Community_Meeting_Prague_2023) Participated: _Roger Bivand (online), Vero Andreo (online), Vaclav Petras, Anna Petrasova, Helmut Kudrnovsky, Micha Silver, Floris Vanderhaeghe_ ## Package management ### GitHub repo ownership - Since Roger is retired and will stop maintaining the **rgrass** package, this repo needs to move to a GitHub organization. Decision has not been taken about which one, but some obvious possibilities are: - [`rspatial`](https://github.com/rspatial) (administered by @rhijmans): - because **terra**, the current preferred **rgrass** workhorse for R object transfer to/from GRASS database, is hosted there. - but has only one member - [`r-spatial`](https://github.com/r-spatial) (administered by @edzer): - 19 members - also hosts the QGIS-R interface package **qgisprocess** - but does not include **terra** ### Retiring rgrass7 - Vero will promote the retirement of **rgrass7** and user uptake of **rgrass**; Roger prepares a short text for that. Follow-up at https://github.com/rsbivand/rgrass/issues/77. News item was created and merged already: https://github.com/OSGeo/grass-website/pull/370. - At least the [**openSTARS**](https://github.com/MiKatt/openSTARS) package has not yet taken steps to migrate to **rgrass**. Contact with @MiKatt was tried by email and [in GitHub](https://github.com/MiKatt/openSTARS/issues/35); no response so far. Anyone who can get in touch: please do so. ## Needs & desires with relation to internals ### Using the GDAL-GRASS GIS drivers to read GRASS data - With help of Markus and Vaclav, Floris [has explored](https://github.com/rsbivand/rgrass/issues/75) the possibility to directly read from the GRASS database with GDAL, using **terra** (rasters & vector), **sf** (vector), **stars** (spatiotemporal arrays, including rasters). This requires the [standalone GDAL-GRASS GIS drivers](https://github.com/OSGeo/gdal-grass) for vector and raster to be installed next to GDAL and GRASS. This approach saves the export write operation to a file before reading into R. - Currently **rgrass** does not provide this approach. But it is not new: Roger mentions that in *earlier* states of the R package, code was included to follow this approach if the extra drivers were available. Roger advises to look at the latest state of https://r-forge.r-project.org/projects/spgrass/ to consider re-uptake (checkout with `svn checkout svn://r-forge.r-project.org/svnroot/spgrass/`; see also https://r-forge.r-project.org/R/?group_id=2020 and https://github.com/r-forge/spgrass). The GDAL-GRASS approach was dropped before moving development to GitHub. - The reason for dropping support for the GDAL-GRASS driver was the belief of it not being maintained that much, and because it would be difficult on Windows. _@neteler countered both after the discussion; he's eager to continue support and it's also being used in Geoserver. It would be great if rgrass would adopt it. Windows is no problem if OSGeo4W is used._ **Conclusion:** work is needed to re-integrate the GDAL-GRASS GIS drivers. Also the CRS representation needs attention, either on the driver or on the **terra** side (see observations in https://github.com/rsbivand/rgrass/issues/75). An idea could be to propose a Google Summer of code project for this topic. ### R packages used for data transfer to/from GRASS database - It is agreed that it is not needed to provide ways for **terra** *and* **sf** *and* **stars** to do the data transfer with GRASS in **rgrass** (as explored above). The minutes in https://github.com/rsbivand/rgrass/issues/34 (Dec 2021) are outdated on that; since then development has been done to: - prefer **terra** for data transfer since it aligns the data model of GRASS GIS most closely: - consider rasters as 2D objects - provide support for both rasters and vectors - add a [vignette](https://rsbivand.github.io/rgrass/articles/coerce.html) of how to coerce to and from **terra** objects – hence supporting **sf** and **stars** as well. - It can still be considered at some later stage to support: - spatiotemporal data from GRASS with **stars** - remote GRASS data with **gdalcubes**. _(unsure whether that is an accurate description of the discussion!)_ _- Vero: I believe the latter 2 where framed like open questions rather than statements_ ### Dependency management The [**XML**](https://cran.r-project.org/web/packages/XML/index.html) package is currently used to parse the XML string returned from GRASS modules called with the `--interface-description` flag (see [vignette](https://rsbivand.github.io/rgrass/articles/use.html) about launching R in GRASS / GRASS in R). But the package is currently less popular and maintained than the [**xml2**](https://xml2.r-lib.org/) package. Maybe **XML** is going to get unsupported at some future time, so better to step over and migrate the **XML** functions to **xml2** functions. This especially applies to `parseGRASS().` ### Continuous integration Latest state of this can be found in https://github.com/rsbivand/rgrass/issues/61. @VLucet was in the process of getting GRASS installed in different GHA workers (operating systems). When would this be ready @VLucet? ## Needs & desires with relation to the user interface ### Names of functions & arguments; many arguments - Function names: - the namespace can be improved to make function names more consistent, and perhaps more appealing. - maybe some functions don't need to be exported. - the function names with 'GRASS' are quite atypical. - **Conclusion**: it is preferred to drop the `GRASS` suffixes, use lowercase function names with snake_case, and consistently use a prefix common to all exported functions, e.g. `rg_` (referring to **rgrass**) so that (similarly to **sf** and **qgisprocess**). So `execGRASS()` would be turned into `rg_exec()`. A proposal of function names and which to keep exported is needed. - Arguments: - the function documentation is not so attractive to users, since it is overwhelmed by rather complex or non-self-explanatory argument names *and* their sometimes complex explanations, e.g. many control arguments in `execGRASS()`, with perhaps some potentially superfluous ones like `legacyexec`. - still, most are probably needed in specific situations. In most cases however, the defaults are OK so these arguments are not needed by most users, but they flood the function documentation and may scare novices. - **Conclusion**: - it is agreed to wrap the control arguments into a single `control` argument that takes a list of (original) elements. Or put more generally, to collapse certain sets of arguments. - this would happen in the *new*, renamed functions, which can then call the original functions in order to avoid rewriting the existing functions, and in order not to break existing R scripts of users, or reverse dependent packages. - the original functions will first be *deprecated*, and after a while they'll become *internal*. - also, argument names are to be improved (made more comprehensible) where possible. **TO DO:** make an issue with proposed new function names, usage (new arguments with defaults), and an indication of 'becoming internal'. So also including old function names that are kept (internally). ### Documentation - See above for function documentation. - Besides the vignette https://github.com/rsbivand/rgrass/blob/2c90736/vignettes/use.Rmd about launching R in GRASS / GRASS in R, there's also need for a vignette describing the data input/output and the `execGRASS()` functions. - The package Description could be improved a bit. _Also pinging @neteler, @wenzeslaus, @petrasovaa, @micha-silver_

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully