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

Add "tgis" support in actinia for persistent processing and export #192

Open
neteler opened this issue May 21, 2021 · 6 comments
Open

Add "tgis" support in actinia for persistent processing and export #192

neteler opened this issue May 21, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed WIP Work in Progress

Comments

@neteler
Copy link
Member

neteler commented May 21, 2021

At time the directory tgis is not yet copied:

https://github.com/mundialis/actinia_core/blob/e1510fce08f8d40d5fc048dc7fd81e920ed5ffc3/src/actinia_core/resources/persistent_processing.py#L477

In addition, the support needs to be added also in some other places:

For inspiration, see
https://redocly.github.io/redoc/?url=https://actinia.mundialis.de/latest/swagger.json#tag/STRDS-Management

@neteler neteler added enhancement New feature or request actinia roadmap Large Feature, coming soon labels May 21, 2021
@metzm
Copy link
Contributor

metzm commented May 26, 2021

Updating the mapset names in the tgis db is not easy: you have to check the current tgis db connection as defined in the <mapset>/VAR file, then use custom SQL commands to update the correct table and most probably some views need to be recreated.

@neteler
Copy link
Member Author

neteler commented Jun 1, 2021

Here a dirty hack to change mapset names in tgis/sqlite.db:

  1. dump SQLite DB, change mapset names on the fly and save to new dump file
  2. restore new dump file as a new tgis/sqlite.db:
/actinia_core/grassdb/geoharmonizer_aq/PERMANENT/tgis # sqlite3 sqlite.db .dump | sed 's+PERMANENT+mymapset+g' > dumpfile
/actinia_core/grassdb/geoharmonizer_aq/PERMANENT/tgis # cat dumpfile | sqlite3 my_database.sqlite

@anikaweinmann
Copy link
Member

Parts are done in #233, but t.rast.extract does not work yet or creating a STRDS from rasters from a previous PC (t.create + t.register) does not work either. For this I have created a new bug ticket in GRASS GIS: OSGeo/grass#1791

@mmacata mmacata added WIP Work in Progress help wanted Extra attention is needed and removed actinia roadmap Large Feature, coming soon labels Sep 22, 2021
@metzm
Copy link
Contributor

metzm commented Oct 5, 2021

A first step for TGIS support has been done in GRASS with OSGeo/grass#1924 to register maps from a different mapset in a stds in the current mapset.

@metzm metzm moved this to In Progress in actinia endurance run Mar 21, 2022
@metzm metzm moved this from In Progress to Waiting / Blocked in actinia endurance run Mar 21, 2022
@metzm
Copy link
Contributor

metzm commented Mar 21, 2022

TGIS has been enhanced in GRASS 8.0 to work with maps that are not in the current mapset.

Waiting for a new deployment of actinia for testing.

@anikaweinmann
Copy link
Member

@metzm please test if it is done or waiting for OSGeo/grass#2448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed WIP Work in Progress
Projects
None yet
Development

No branches or pull requests

4 participants