[GRASS-dev] [GRASS GIS] #2694: rendering command layer and adding 3d raster layer broken

GRASS GIS trac at osgeo.org
Thu Jun 11 18:59:09 PDT 2015


#2694: rendering command layer and adding 3d raster layer broken
-----------------------+-------------------------
 Reporter:  annakrat   |      Owner:  grass-dev@…
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  7.1.0
Component:  wxGUI      |    Version:  svn-trunk
 Keywords:  rendering  |        CPU:  Unspecified
 Platform:  Linux      |
-----------------------+-------------------------
 Two issues I found with the new rendering with the less often used cases:

 1. adding 3D raster layer breaks rendering, although there is no error,
 rendering just stops working after that and busy cursors stays there. I
 was trying to fix this one, but was not able to get rid of the progress
 bar which was still showing up:


 {{{
 Index: core/render.py
 ===================================================================
 --- core/render.py      (revision 65443)
 +++ core/render.py      (working copy)
 @@ -472,6 +472,8 @@
          # render map layers if forced
          nlayers = 0
          for layer in self.layers:
 +            if layer.GetType() == '3d-raster':
 +                continue
              if force or layer.forceRender:
                  nlayers += 1
                  layer.Render(env)
 @@ -532,6 +534,8 @@
          for layer in self.layers:
              if layer.GetType() == 'overlay':
                  continue
 +            if layer.GetType() == '3d-raster':
 +                continue

              if os.path.isfile(layer.mapfile):
                  maps.append(layer.mapfile)

 }}}


 2. Rendering command layers is weird, (un)checking has no effect.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2694>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list