That works in principle fine, but unfortunately, the stored meta information is not really reusable, because r.info -e seems to remove all line breaks from the comments. Thus, all meta information is returned in one long string. Would it be possible to maintain line breaks that are in the comments?
In r.info without e-flags line breaks seem to be preserved. However new ones are introduced (I guess depending on the length of the line, but that actually varies quite a bit), so output looks a bit messy…
That works in principle fine, but unfortunately, the stored meta information is not really reusable, because r.info -e seems to remove all line breaks from the comments. Thus, all meta information is returned in one long string. Would it be possible to maintain line breaks that are in the comments?
In r.info without e-flags line breaks seem to be preserved. However new ones are introduced (I guess depending on the length of the line, but that actually varies quite a bit), so output looks a bit messy...
What if we changed/extended (for compatibility reasons) the metadata
storage to some JSON based approach?
We have that already for the band reference management of satellite data.