[GRASS-dev] [GRASS GIS] #287: vdigit: don't force 'cat' as the key column name

#287: vdigit: don't force 'cat' as the key column name
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
r33285

When a new vector map is created in vdigit, it forces 'cat' as the key
column name. This is not really bad, and very common in other GRASS
modules, but I think it should be possible to specify a custom key column
name in any module that creates a vector map with a linked table.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: wxGUI | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

You can change default key column in GUI Preferences ("Attributes" tab).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by msieczka):

  * component: wxGUI => default

Comment:

Replying to [comment:1 martinl]:
> You can change default key column in GUI Preferences ("Attributes" tab).

Cool, but that's not the same thing. I mean, that, ideally, the key column
setting should be adjustable ad command run time, too (this issue is not
limited to vdigit actually).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:2 msieczka]:

> Cool, but that's not the same thing. I mean, that, ideally, the key
column setting should be adjustable ad command run time, too (this issue
is not limited to vdigit actually).

Not only vdigit, also creating vector map layer from main menu
('Vector->Develop vector map->Create new vector map').

Do you mean to use GIS/environment variable like GRASS_KEY_COLUMN ?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: assigned
  Priority: minor | Milestone: 6.4.0
Component: default | Version: svn-develbranch6
Resolution: | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by msieczka):

Replying to [comment:3 martinl]:
> Replying to [comment:2 msieczka]:
>
> > Cool, but that's not the same thing. I mean, that, ideally, the key
column setting should be adjustable ad command run time, too (this issue
is not limited to vdigit actually).

> Not only vdigit, also creating vector map layer from main menu
('Vector->Develop vector map->Create new vector map').

I know.

> Do you mean to use GIS/environment variable like GRASS_KEY_COLUMN ?

Oh, it would be usefull for sure, but that's not exactly what I meant. I
meant that each command that creates a vector map with a linked table
should allow for specifying the key column name at it's runtime. Having
such functionality *and* a global variable for a default, would be
optimal.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: martinl
     Type: defect | Status: assigned
Priority: minor | Milestone: 6.4.0
Component: Default | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------

Comment(by martinl):

Replying to [comment:4 msieczka]:

> Oh, it would be usefull for sure, but that's not exactly what I meant. I
meant that each command that creates a vector map with a linked table
should allow for specifying the key column name at it's runtime. Having
such functionality *and* a global variable for a default, would be
optimal.

Try r48512 (trunk) or r48513 (devbr6).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: martinl
     Type: defect | Status: assigned
Priority: minor | Milestone: 6.4.3
Component: Default | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------
Changes (by martinl):

  * milestone: 6.4.0 => 6.4.3

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
----------------------+-----------------------------------------------------
Reporter: msieczka | Owner: martinl
     Type: defect | Status: assigned
Priority: minor | Milestone: 6.4.3
Component: Default | Version: svn-develbranch6
Keywords: | Platform: All
      Cpu: All |
----------------------+-----------------------------------------------------

Comment(by martinl):

Replying to [comment:5 martinl]:
> Replying to [comment:4 msieczka]:
>
> > Oh, it would be usefull for sure, but that's not exactly what I meant.
I meant that each command that creates a vector map with a linked table
should allow for specifying the key column name at it's runtime. Having
such functionality *and* a global variable for a default, would be
optimal.
>
> Try r48512 (trunk) or r48513 (devbr6).

Note that it affects only creating new vector maps dialog.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>

#287: vdigit: don't force 'cat' as the key column name
-----------------------+----------------------------------------------------
  Reporter: msieczka | Owner: martinl
      Type: defect | Status: closed
  Priority: minor | Milestone: 6.4.3
Component: Default | Version: svn-develbranch6
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/287#comment:8&gt;
GRASS GIS <http://grass.osgeo.org>