Opened 9 years ago
Last modified 6 years ago
#2766 new defect
GUI not able to create dropdown lists of columns for more than one map or table
Reported by: | lfurtkevicova | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.2.4 |
Component: | wxGUI | Version: | 7.0.1 |
Keywords: | column lists | Cc: | |
CPU: | x86-64 | Platform: | Linux |
Description
Problem with joinig database table to a vector map table using v.db.join from gui:
parameters map
, column
and other_table
are OK, but it isn't possible to set other_column
Change History (9)
comment:1 by , 9 years ago
Milestone: | 7.1.0 → 7.2.0 |
---|
follow-up: 3 comment:2 by , 9 years ago
Component: | Database → wxGUI |
---|---|
Keywords: | column lists added |
Priority: | blocker → normal |
Summary: | it is not possible to set other column when working with v.db.join from gui → GUI not able to create dropdown lists of columns for more than one map or table |
Replying to lfurtkevicova:
Problem with joinig database table to a vector map table using v.db.join from gui: parameters
map
,column
andother_table
are OK, but it isn't possible to setother_column
This is a more general problem than only in v.db.join (see column and to_column in v.distance or points_column option in v.vect.stats for example): whenever you need to specify columns in two different maps, the GUI cannot handle this. Only the columns of one map are in the list. I'm no expert in the GUI, but I imagine the G_OPT_DB_COLUMN standard parser option looks for columns in the map defined by G_OPT_V_MAP or G_OPT_V_INPUT, but it can only handle one defined in this way.
This needs some fundamental solution in the wxgui, not a specific module.
In any case, the does not render the module unusable, even in the GUI, as one can always type the column name.
So, I'm downgrading this to normal and changing the title of the bug.
Moritz
comment:3 by , 9 years ago
Replying to mlennert:
Replying to lfurtkevicova:
Problem with joinig database table to a vector map table using v.db.join from gui: parameters
map
,column
andother_table
are OK, but it isn't possible to setother_column
This is a more general problem than only in v.db.join (see column and to_column in v.distance or points_column option in v.vect.stats for example): whenever you need to specify columns in two different maps, the GUI cannot handle this. Only the columns of one map are in the list. I'm no expert in the GUI, but I imagine the G_OPT_DB_COLUMN standard parser option looks for columns in the map defined by G_OPT_V_MAP or G_OPT_V_INPUT, but it can only handle one defined in this way.
This needs some fundamental solution in the wxgui, not a specific module.
IIUC the code, the issue is in the UpdateThread class in gui/wxpython/gui_core/forms.py, where only one map is handled. But I don't have enough expertise of that code to go much further.
comment:5 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:8 by , 7 years ago
Milestone: | → 7.2.4 |
---|
comment:9 by , 6 years ago
Just was bitten by this issue. Just as a further specification, this is not only a problem if one wants to specify columns in two different maps, but also when one wants to select two columns (as two separate variables) from the same map.
Milestone renamed