Markus Neteler wrote:

> I found that d.vect fails on commandline
> 
> d.vect mylakes where="FTYPE IS NULL" type=area col=red
> ERROR: Option <layer> must be > 0
> 
> d.vect mylakes where="FTYPE IS NULL" type=area col=red layer=1
> d.vect complete.
> 
> The reason is
> layer   Layer number or name ('-1' for all layers)
> 
> I suppose that the logic in the WHERE part needs to be updated.

The error message should be more straightforward, e.g.

        "Option <where> requires a layer"

Making it support where= with all layers would require a substantial
re-write (and requires that you can come up with a single query which
works for all layers).

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to