[GRASS5] [bug #4142] (grass) sql statemts in d.m

Hamish hamish_nospam at yahoo.com
Mon Mar 6 18:34:05 EST 2006


> this bug's URL: http://intevation.de/rt/webrt?serial_num=4142
> ---------------------------------------------------------------------
> 
> I may have found a bug in d.m. However, I may not be issuing the sql  
> statement properly in d.m. For example If issue the following command 
> 
> on the command line:
> 
> d.vect test fcolor=none where="type='JAPI'"
> 
> the expected polygons are displayed.
> 
> However, in d.m, if I type in the SQL where statement field:
> 
> "type = 'JAPI'"
> 
> which I believe is the same command minus the (where=) that worked on 
> 
> the command line, no vectors are displayed. Console output is as  
> follows:
> 
> d.vect map=test color=0:0:0 lcolor=0:0:0 fcolor=none display=shape  
> type=point,line,boundary,centroid,area icon=basic/x size=5 layer=1  
> lsize=8 xref=left yref=center llayer=1 {where="type = 'JAPI'"}
> 
> Am I misusing the sql field in d.m, or should this be working?


Don't double quote the statement when run from the GUI
just:

type = 'JAPI'


?

Hamish




More information about the grass-dev mailing list