Hi,
2017-01-03 7:19 GMT+01:00 Ang Sherpa <[email protected]>:
> 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
#!/usr/bin/env python
import time
import grass.script as gscript
gscript.run_command('d.mon', start='wx0')
time.sleep(1)
gscript.run_command('d.vect', flags='c', map='geology')
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user