[GRASS-user] command works inside GRASS but not with python script outside GRASS
Martin Landa
landa.martin at gmail.com
Sun Jul 3 00:51:17 PDT 2016
Hi,
2016-07-03 3:02 GMT+02:00 alassane toure <atourej at gmail.com>:
> But does not work in grass/python script:
> grass.run_command('v.extract', input='const', output='const_clean',
> type='area',where='"(value=255) and (area_sqf>1000)"' )
why
'"(value=255) and (area_sqf>1000)"'
?
'(value=255) and (area_sqf>1000)'
or
"(value=255) and (area_sqf>1000)"
would be enough. Martin
--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
More information about the grass-user
mailing list