#1900: limiting display vector map using cats doesn't work
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: | Platform: Linux
Cpu: x86-64 |
------------------------+---------------------------------------------------
In the d.vector window, under the tab 'selection' there is the option to
select category values. Presumably entering one or more cats values, only
those should be displayed. However, entering values does not do anything,
the whole map is still displayed.
Also using a SQL statement to limit what is displayed does not work.
#1900: limiting display vector map using cats doesn't work
------------------------+---------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: | Platform: Linux
Cpu: x86-64 |
------------------------+---------------------------------------------------
Comment(by mlennert):
Replying to [ticket:1900 pvanbosgeo]:
> In the d.vector window, under the tab 'selection' there is the option to
select category values. Presumably entering one or more cats values, only
those should be displayed. However, entering values does not do anything,
the whole map is still displayed.
>
> Also using a SQL statement to limit what is displayed does not work.
If you want to use the cat or select option, you have to select the
specific layer you want to select features in. In grass6 this is layer 1
by default, but this is no longer true in grass7 where -1 (i.e. all
layers) is the default (since r45095 two years ago) and so you have to
explicitely select the layer. See also [http://lists.osgeo.org/pipermail
/grass-dev/2011-September/055675.html this thread] where the issue was
discussed.
Thanks! I was going to write that I had done that, but I just tried it
again and now it works. Strange, I am really pretty sure I did select the
layer yesterday too. I also didn't see an error message yesterday, while
now I get one if I fail to select the layer (which in fact is pretty
clear). In short, I am not sure what went wrong yesterday, but sorry for
the fuss.
#1900: limiting display vector map using cats doesn't work
-------------------------+--------------------------------------------------
Reporter: pvanbosgeo | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: invalid | Keywords:
Platform: Linux | Cpu: x86-64
-------------------------+--------------------------------------------------
Comment(by martinl):
Replying to [comment:1 mlennert]:
> If you want to use the cat or select option, you have to select the
specific layer you want to select features in. In grass6 this is layer 1
by default, but this is no longer true in grass7 where -1 (i.e. all
layers) is the default (since r45095 two years ago) and so you have to
explicitely select the layer. See also [http://lists.osgeo.org/pipermail
/grass-dev/2011-September/055675.html this thread] where the issue was
discussed.
seems like a "tricky feature" even for powerusers. When selecting features
(by cats, etc), should be probably selected features from all layers
(`layer=-1`) which pass the condition, not all features (silently ignoring
given condition or constraint).