[GRASS-user] 'where' sql command in d.vect and others

Seb spluque at gmail.com
Sat Mar 24 13:05:05 EDT 2007


On Sat, 24 Mar 2007 08:46:32 -0500,
Seb <spluque at gmail.com> wrote:

[...]

> db.select communities
cat> str_1|str_2|str_3|dbl_1|dbl_2|int_1
1> "312"|"East Whitefish"|"W Arctic"|||58

> Does the double quote need to be escaped somehow?  Thanks.


After some fiddling, I found out the 'where' parameter needs to be set as:

where="str_3='\"W Arctic\"'"

However, the same doesn't work within the display manager with, for
instance, d.vect.  In that case, the 'where' parameter ends up within
braces in the actual call.

-- 
Seb




More information about the grass-user mailing list