Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1900 closed defect (invalid)

limiting display vector map using cats doesn't work

Reported by: pvanbosgeo Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Vector Version: svn-trunk
Keywords: Cc:
CPU: x86-64 Platform: Linux

Description

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.

Change History (3)

in reply to:  description ; comment:1 by mlennert, 12 years ago

Replying to 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 this thread where the issue was discussed.

Moritz

comment:2 by pvanbosgeo, 12 years ago

Resolution: invalid
Status: newclosed

Hi Moritz,

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.

Paulo

in reply to:  1 comment:3 by martinl, 12 years ago

Replying to 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 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).

Note: See TracTickets for help on using tickets.