[QGIS-trac] Re: [Quantum GIS] #554: identify - some varchar column displayed instead of the key column

Quantum GIS qgis at qgis.org
Wed Aug 19 17:37:32 EDT 2009


#554: identify - some varchar column displayed instead of the key column
-------------------------------------+--------------------------------------
        Reporter:  tutey at o2.pl       |         Owner:  timlinux     
            Type:  enhancement       |        Status:  closed       
        Priority:  minor: annoyance  |     Milestone:  Version 1.2.0
       Component:  Vectors           |       Version:  HEAD         
      Resolution:  worksforme        |      Keywords:               
Platform_version:                    |      Platform:  All          
        Must_fix:  Yes               |   Status_info:  0            
-------------------------------------+--------------------------------------
Changes (by jef):

  * priority:  major: does not work as expected => minor: annoyance
  * status:  reopened => closed
  * resolution:  => worksforme
  * type:  bug => enhancement

Comment:

 Replying to [comment:7 msieczka]:
 > Replying to [comment:6 timlinux]:
 > > For me the issue is resolved now following this procedure:
 > >
 > > - load supplied 'wrong key' dataset
 > > - open vector properties
 > > - select general tab
 > > - select 'cat' for display field
 > > - close vector properties
 > > - use identify tool to select a feature
 >
 > You did not understand the issue. It is that QGIS fails to recognise the
 *real* key column of the GRASS vector's dbf table. In case of the example
 vector map the key column is *cat*, not *name*.

 I don't see the problem here.  In the identify dialog you don't see the
 key at the top, you see the display field.

 And QGIS selects the first field which field name contains {{{name}}},
 {{{descrip}}} or {{id}} (in that order).  If there is none it takes the
 first field.  See QgsVectorlayer::setDisplayField().

 So there's no relation between the key and the display field.

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/554#comment:11>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list