[QGIS-trac] Re: [Quantum GIS] #3001: minvalue() doesn't reflect
change in data (Shapefile)
Quantum GIS
qgis at qgis.org
Tue Sep 14 16:06:52 EDT 2010
#3001: minvalue() doesn't reflect change in data (Shapefile)
-----------------------------------------------------+----------------------
Reporter: volter | Owner: jef
Type: bug | Status: closed
Priority: major: does not work as expected | Milestone:
Component: Vectors | Version: Trunk
Resolution: fixed | Keywords:
Platform_version: | Platform: Fedora
Must_fix: No | Status_info: 0
-----------------------------------------------------+----------------------
Changes (by jef):
* status: new => closed
* resolution: => fixed
Old description:
> This is more or less related to https://trac.osgeo.org/qgis/ticket/3000
>
> Calling
>
> {{{
> qgis.utils.iface.activeLayer().dataProvider().maximumValue(2).toString()
> }}}
>
> from QGIS' Python console does not reflect change in data. The shapefile
> must be loaded again, to get correct min or max.
>
> minimumValue() is also affected, but featureCount() works! I would expect
> them all to work without the need to reload the layer. I don't know,
> whether other formats are affected.
New description:
This is more or less related to #3000
Calling
{{{
qgis.utils.iface.activeLayer().dataProvider().maximumValue(2).toString()
}}}
from QGIS' Python console does not reflect change in data. The shapefile
must be loaded again, to get correct min or max.
minimumValue() is also affected, but featureCount() works! I would expect
them all to work without the need to reload the layer. I don't know,
whether other formats are affected.
--
Comment:
fixed in r14228.
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3001#comment:1>
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