#1961: wxNVIZ: error if no raster map selected --------------------+------------------------------------------------------- Reporter: hamish | Owner: grass-dev@… Type: defect | Status: new Priority: major | Milestone: 6.4.3 Component: wxGUI | Version: svn-develbranch6 Keywords: wxnviz | Platform: All Cpu: x86-64 | --------------------+-------------------------------------------------------
Comment(by hamish): Hi, here's a traceback if I load a raster then a vector-areas map in 2D mode, switch to 3D mode, then change the order of the two in the layer list in the Map Layers tab by dragging the vector map to the bottom of the list: {{{ Starting 3D view mode... Loading raster map <elevation.10m@PERMANENT>... Loading raster map <elevation.10m@PERMANENT>... Translating colors from raster map <elevation.10m@PERMANENT>... Vector map <fields7@grass7> loaded (261 features) Traceback (most recent call last): File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/lmgr/layertree.py", line 1303, in OnChangeSel if self.layer_selected.IsChecked(): AttributeError : 'NoneType' object has no attribute 'IsChecked' Raster map <elevation.10m@PERMANENT> unloaded successfully Vector map <fields7@grass7> (lines) unloaded successfully Traceback (most recent call last): File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/lmgr/layertree.py", line 1202, in OnLayerChecked npoints, nlines, nfeatures, mapIs3D = self.lmgr.nviz.VectorInfo(mapLayer) AttributeError : 'NvizToolWindow' object has no attribute 'VectorInfo' Traceback (most recent call last): File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/lmgr/layertree.py", line 1311, in OnChangeSel self.lmgr.nviz.UpdatePage('vector') File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/nviz/tools.py", line 4520, in UpdatePage self.UpdateVectorPage(layer, data['vector']) File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/nviz/tools.py", line 4710, in UpdateVectorPage vInfo = grass.vector_info_topo(layer.GetName()) AttributeError : 'NoneType' object has no attribute 'GetName' Vector map <fields7@grass7> loaded (261 features) Loading raster map <elevation.10m@PERMANENT>... Loading raster map <elevation.10m@PERMANENT>... Translating colors from raster map <elevation.10m@PERMANENT>... }}} thanks, Hamish -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1961#comment:10> GRASS GIS <http://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev