Open wenzeslaus opened 3 months ago
Hey @wenzeslaus, do you want the JSON format and data to be structured like this?
{
"records": [
{
"command": "v.in.ogr ...",
"gisdbase": "/bigdata/grassdata05",
"location": "wakestpfeet",
"mapset": "PERMANENT",
"user": "helena",
"date": "Tue Nov 7 18:34:20 2006"
},
{
"command": "v.proj ...",
"gisdbase": "/bigdata/grassdata05",
"location": "ncfromfile",
"mapset": "PERMANENT",
"user": "helena",
"date": "Wed Nov 8 00:18:50 2006"
},
{
"command": "v.db.connect ...",
"gisdbase": "/home/neteler/grassdata/nc_spm_latest",
"location": "nc_spm_08",
"mapset": "PERMANENT",
"user": "neteler",
"date": "Mon Nov 26 16:55:38 2012"
},
{
"command": "v.db.connect ...",
"gisdbase": "/home/neteler/grassdata",
"location": "nc_spm_08_grass7",
"mapset": "PERMANENT",
"user": "neteler",
"date": "Fri Dec 7 23:25:12 2012"
}
]
}
Is this the format you had in mind?
Hey @wenzeslaus, could you explain a bit about mapset_path
, like what should be included here so I can start working on this?
Thanks!
Is your feature request related to a problem? Please describe.
Printing vector map history with v.info using the h flag should work with
format=json
and produce JSON. Current state is:Describe the solution you'd like
Produce something like:
Describe alternatives you've considered
Other schemas like list of commands separately for convenience (but context for reprojection might be missing). Database/project/mapset can be one mapset path (as above), as three keys database+project+mapset (path+project+mapset), or both.
Additional context
r.info -h
tries to give similar information but the history is not stored in the same way for rasters at this point, so there is not much consistency or compatibility to consider.