[GRASS-user] command works inside GRASS but not with python script outside GRASS

alassane toure atourej at gmail.com
Sun Jul 3 15:22:49 PDT 2016


Thanks Martin. Your suggestion worked!
Alassane
On Jul 3, 2016 1:51 AM, "Martin Landa" <landa.martin at gmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20160703/8acc9c2c/attachment.html>


More information about the grass-user mailing list