Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] R-GRASS interface: add used proj.db info e.g. to g.version for a better error handling in case of proj.db-version mismatch #2998

Open
hellik opened this issue Jun 3, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@hellik
Copy link
Member

hellik commented Jun 3, 2023

Is your feature request related to a problem? Please describe.

taken from initGrass Error : XML content does not seem to be XML

On Windows, the terra and GRASS binaries both install proj.db, and when terra is loaded, its version takes over PROJ_LIB.

This means in this case that g.proj in GRASS is wrongly using a proj.db shipped with an R package, rather than that shipped with WinGRASS or OSGEO4W GRASS.

Describe the solution you'd like

  1. Adding version of used proj.db in (win)GRASS for a better error handling in case of version mismatch, e.g. in g.version

see proj functions mentioned in

https://proj.org/en/9.2/development/reference/functions.html#c.proj_context_get_database_metadata and https://proj.org/en/9.2/development/reference/functions.html#c.proj_context_get_database_path should give you all what you need to know

or see

  1. I think all current R packages shipping proj.db do protect their reference to their version, so g.proj should only detect the one it itself shipped with.
@hellik hellik added the enhancement New feature or request label Jun 3, 2023
@hellik hellik added this to the 8.4.0 milestone Jun 3, 2023
@hellik
Copy link
Member Author

hellik commented Jun 3, 2023

see https://github.com/rsbivand/rgrass/issues/57 for further information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants