[GRASS-dev] [GRASS GIS] #2857: d.rast.num fails in GUI because the constrain display resolution fails

GRASS GIS trac at osgeo.org
Mon Feb 1 03:54:14 PST 2016


#2857: d.rast.num fails in GUI because the constrain display resolution fails
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.1.0
 Component:  wxGUI       |    Version:  svn-trunk
Resolution:              |   Keywords:  display resolution, d.rast.num,
       CPU:              |  mapdisp
  Unspecified            |   Platform:  Linux
-------------------------+-------------------------------------------------

Comment (by mlennert):

 I'm pretty ignorant concernant the GUI display logic, but I see that in
 gui/wxpython/core/render.py, line 505, function Render(), is defined as


 {{{
 def Render(self, force = False, windres = False):
         """Render map composition

         :param bool force: force rendering all map layers in the
 composition
         :param windres: True for region resolution instead for map
 resolution
         """
 }}}



 then on line 520 within that function, there is a call to


 {{{
 self._renderLayers(env, force, windres)
 }}}

 However, _renderLayers as defined on lines 456ff:

 {{{
 _renderLayers(self, env, force = False, overlaysOnly = False)

         :param bool force: True to force rendering
         :param bool overlaysOnly: True to render only overlays
 }}}

 has force and overlaysOnly as parameters, but nothing concerning windres.
 The two mentioned parameters seem redundant and even contradictory as
 force = False should imply overlaysOnly = True, or ? In any case, AFAIU,
 _renderLayers seems to ignore the windres setting.

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



More information about the grass-dev mailing list