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

Quantum GIS qgis at qgis.org
Sat Aug 2 04:55:32 EDT 2008


#554: identify - some varchar column displayed instead of the key column
-----------------------------------------------------+----------------------
        Reporter:  tutey at o2.pl                       |         Owner:  timlinux     
            Type:  bug                               |        Status:  assigned     
        Priority:  major: does not work as expected  |     Milestone:  Version 1.0.0
       Component:  Vectors                           |       Version:  0.8          
      Resolution:                                    |      Keywords:               
Platform_version:  Ubuntu Dapper                     |      Platform:  Debian       
        Must_fix:  Yes                               |   Status_info:  0            
-----------------------------------------------------+----------------------
Changes (by timlinux):

  * status:  new => assigned
  * owner:  nobody => timlinux

Comment:

 Hi

 I believe this is in fact intended behaviour as the QgsVectorLayer author
 implemented it :

 {{{
  207   // If fldName is provided, use it as the display field, otherwise
  208   // determine the field index for the feature column of the identify
  209   // dialog. We look for fields containing "name" first and second
 for
  210   // fields containing "id". If neither are found, the first field
  211   // is used as the node.
 }}}

 Unless I am completely misunderstanding the issue...

 One thing I did notice is that when I tried to change the display field to
 'cat' using the test dataset provided above, the display field only showed
 'name' as an option. Perhaps we need to allow display field to be set to
 non string fields. I will investigate futher.

 In the meantime please clarify any misunderstanding I have - I would like
 to move this ticket from bug to enhancement and from status major to
 enhancement and remove must fix annotation. I await your feedback.

 Regards

 Tim

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/554#comment:5>
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