[QGIS-trac] Re: [Quantum GIS] #3124: Add 'Apply' button to the
layer's query function
Quantum GIS
qgis at qgis.org
Sun Oct 17 05:55:46 EDT 2010
#3124: Add 'Apply' button to the layer's query function
-------------------------------------+--------------------------------------
Reporter: jrm | Owner: nobody
Type: enhancement | Status: closed
Priority: minor: annoyance | Milestone: Version 1.6.0
Component: GUI | Version:
Resolution: fixed | Keywords:
Platform_version: | Platform: All
Must_fix: No | Status_info: 0
-------------------------------------+--------------------------------------
Changes (by jef):
* status: reopened => closed
* resolution: => fixed
Comment:
Replying to [comment:2 jrm]:
> sorry I've not been clear, the problem is that if you want to extend
your query beyond an existing queried subset, you have to
open/close/open/close the window.
Sorry, I wasn't able to reproduce that problem. The only problem there
was, was that the sample button used the original query, so to see values
that were excluded by the earlier query, you needed to clear, close and
reopen. Now it's works on the last successfully tested query, so you can
"test" and retrieve the values of the current query.
Other than that the query isn't incremental. The subset string is fully
replaced, with the one you enter.
> ex for a table with 3 names george/bill/bob :
> 1. query "name" = 'george'
> 2. query "name" = 'george' OR "name" = 'bill', it will return a message
saying that there no feature 'bill' because the subset created by the
first query left them out
Huh? that doesn't make any sense. The subset string either gets you
results or it doesn't. It most certainly wouldn't complain about false
operands of {{{OR}}}, even if the query was incremental.
If it was somehow related to the previous query, you still just wouldn't
see Bills, but that's not the case. If you query for Georges, you get
Georges. If you query for Bills, you get Bills. If you query for Bills
{{{or}}} Georges, you get Bills and Georges. If you query for Bills
{{{and}}} Georges, you get nothing. The order of queries doesn't matter
and you don't need to clear the query in between.
BTW just to be sure I created a point shapes with Bills and Georges and
verified the above.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/3124#comment:3>
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