[GRASS-dev] GRASS 7: d.vect: layer=-1 default conflicts with where
option
Glynn Clements
glynn at gclements.plus.com
Sun Sep 4 22:04:28 EDT 2011
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 <glynn at gclements.plus.com>
More information about the grass-dev
mailing list