[GRASS-dev] [GRASS GIS] #2665: d.* modules not working from python or bash scripts (GRASS 7.0, Linux / Windows7)

GRASS GIS trac at osgeo.org
Thu Apr 30 00:57:06 PDT 2015


#2665: d.* modules not working from python or bash scripts (GRASS 7.0, Linux /
Windows7)
-------------------------+-------------------------------------------------
  Reporter:  santipardo  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.0.1
 Component:  Display     |    Version:  7.0.0
Resolution:              |   Keywords:  d.mon, d.vect, d.rast, python,
                         |  script, bash
       CPU:  x86-64      |   Platform:  All
-------------------------+-------------------------------------------------

Comment (by santipardo):

 '''PROVISIONAL WORKAROUND:''' I have found that if I open a second monitor
 after the first, the layers are shown:

 {{{
 grass.run_command('d.mon', start="wx3", resolution = '2')
 grass.run_command('d.rast', map="M01relief",  overwrite="true")
 grass.run_command('d.mon', start="wx0", resolution = '1')
 grass.run_command('d.rast', map="M01relief",  overwrite="true")
 grass.run_command('d.mon', select="wx3")
 grass.run_command('d.redraw', verbose="true")
 }}}

 With this code, I get an empty "wx0" monitor, and a "wx3" monitor showing
 my layers. But I need that second 'ghost' monitor, which is not very
 elegant... Any help with this is welcome.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2665#comment:2>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list