-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
TGIS: Make database v3 backward compatible with v2 #1454
Conversation
|
Current message: |
|
Attempt to modify strds still fails @marisn Do we want to support modification of strds created by GRASS v7 in v8? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing what I raised earlier, esp. the important message-related things. I like how it looks like now, but I can review again if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the wording in the new message.
I'm still somehow confused though. AFAIU, if there's a version mismatch (supported=3, current=2) the user needs to run t.upgrade, is that what we call backward compatibility? I'd have assumed compatibility meant some background update of versions transparent to the user.
Also, instead of number_of_bands shouldn't we use something with semantic_label for consistency?
By backward compatibility we mean that there is no need to run
Probably yes, but it's for separated PR. @marisn Any opinion? |
I'm not that familiar with TGIS internals to comment if it makes sense or not. We must keep in mind is that imagery group members are called bands. i.bands.library has band references as a subclass/a kind of semantic labels and thus having bands, band references is just fine when dealing with remote sensing data. |
Agreed, but time series of raster data (STRDS) can consist of any type of raster maps, be them satellite imagery or not... this was the whole point of changing band reference to something more general |
|
Quick test: create strds and register 1st Sentinel band
@metzm Should be this message modified (in separated PR) to promote
Ready for review and merge if approved. |
@marisn @veroandreo So what about changing to I can prepare separated PR if you agree. |
Fine for me. |
|
If no objection I will merge this PR in the next days. |
|
Some suggestions:
Since this would be a downgrade, I'd remove the "any more" part which indicates that you have something old not supported. Instead, in this case, users will have a new format and try to read it in an "old" grass.
Replace "safe" by save
Sorry to step in here, but, yes, I'd promote t.downgrade as the main and most straightforward solution. Indeed, I'd shrink the message above as the case for upgrade. |
Co-authored-by: Markus Neteler <neteler@gmail.com>
See #2002 |
Co-authored-by: Markus Neteler <neteler@gmail.com>
Co-authored-by: Markus Neteler <neteler@gmail.com>
Currently TGIS DB created in GRASS <7.9 (version 2) is not supported by GRASS 7.9 (version 3).
This PR introduces first step for backward compatibility:
Note that it's a draft which need to be tested.