Open landam opened 5 years ago
Attachment from mlennert on 18 Apr 2009 12:54 UTC
https://trac.osgeo.org/grass/attachment/ticket/562/d.vect_attr.diff.gz
Attachment from mlennert on 18 Apr 2009 12:55 UTC
https://trac.osgeo.org/grass/attachment/ticket/562/without_patch.png
Attachment from mlennert on 18 Apr 2009 12:55 UTC
https://trac.osgeo.org/grass/attachment/ticket/562/with_patch.png
Comment by hamish on 18 Apr 2009 15:01 UTC what's the command line option to do that? I'm not sure I know what that does.
my gut feeling is that those empty delimiters actually do show information: positional. if you remove them and only one field has a value, which field did it come from, a, b, or c?
Hamish
Comment by dersh on 20 Apr 2009 05:23 UTC
I think that it really depends on the data.
For example, if you were doing samples at several locations once a month, but a few of the actual samples got lost in processing, then I would say that you are correct that missing data should be shown.
On the other hand if the data is "missing" because it is the result of a query, ("select where value > 10" or "select where date < 2007-01-01") then you intentionally don't want to show some data, and having those slashes doesn't show any useful information.
I would argue that if you actually are missing data, then it should be entered into the database as missing (-999, "M" whatever is appropriate for the type of data), rather then just leaving it blank.
Perhaps the best answer would be to a flag for which behavior is desired.
I would also propose that the user should be able to select what delimiter is used. "/" is not a bad choice for the default, but perhaps the user wants "\n" instead? That way the labels are not a cluttered in some cases. Another flag for d.vect?
Modified by @landam on 12 May 2016 06:42 UTC
Modified by @landam on 25 Aug 2016 15:51 UTC
Comment by @landam on 27 Aug 2016 13:42 UTC Milestone renamed
Comment by neteler on 26 Jan 2018 11:40 UTC Ticket retargeted after milestone closed
Modified by neteler on 12 Jun 2018 20:48 UTC
Comment by @landam on 25 Sep 2018 16:51 UTC All enhancement tickets should be assigned to 7.6 milestone.
Comment by @landam on 25 Jan 2019 21:07 UTC Ticket retargeted after milestone closed
Reported by mlennert on 18 Apr 2009 12:54 UTC The attached patch (against svn7) slightly modifies d.vect in that it only displays delimiters ("/") for those category values where label values actually exist. I attache two screenshots to make clearer what the patch does.
I would just submit the patch without posting, but I'm not sure if some people find it important to see the existance of null values for some categories. However, if no one objects, I'll commit.
Moritz
GRASS GIS version and provenance
svn-trunk
Migrated-From: https://trac.osgeo.org/grass/ticket/562