[GRASS-user] [d.*] command not executing from standalone script

Martin Landa landa.martin at gmail.com
Tue Jan 3 03:05:07 PST 2017


Hi,

2017-01-03 7:19 GMT+01:00 Ang Sherpa <angsherpa232 at gmail.com>:
> I am trying to develop Grass GIS based app for hydrological analysis.
> Environment setting for GRASS GIS is working fine. Module import is working
> well. However, following line of code does not open display window.
>
> gscript.run_command('d.mon',start='wx1',resolution='1')

I tested simple script (attached) in running GRASS on GNU/Linux and it
worked. You just need to add time.sleep() after d.mon otherwise data
are not rendered properly. Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-d-mon.py
Type: text/x-python
Size: 179 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170103/596726c1/attachment.py>


More information about the grass-user mailing list