[QGIS-trac] [Quantum GIS] #1746: ogr provider functions uniqueValues(), minimum(), maximum() only work for file based datasources

Quantum GIS qgis at qgis.org
Wed Jun 24 04:00:19 EDT 2009


#1746: ogr provider functions uniqueValues(), minimum(), maximum() only work for
file based datasources
---------------------------------------------------------+------------------
   Reporter:  mhugent                                    |              Owner:  nobody
       Type:  bug                                        |             Status:  new   
   Priority:  critical: causes crash or data corruption  |          Milestone:        
  Component:  Data Provider                              |            Version:  HEAD  
   Keywords:                                             |   Platform_version:        
   Platform:  All                                        |           Must_fix:  No    
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 The ogr provider functions uniqueValues(), minimum(), maximum() only work
 for file based datasources. Also, if a sublayer of the datasouce is
 requested, the function only returns an empty variant:

 QFileInfo fi( dataSourceUri() );
   if ( !fi.exists() )
     return QVariant();

 Better approach would be to find out the layername and change the SQL
 accordingly

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1746>
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