#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 Anna, the two fixes (r56560 and r56551) seem good, thanks. more testing... adding a vector points map to the 'Map layers' list after there is already a vector area map open in 3D mode tries to load a points map as a lines map and fails: {{{ Starting 3D view mode... Vector map <fields7@grass7> loaded (261 features) Vector map <arch_pts@grass7> loaded (24 points) No features from vector map <arch_pts@grass7> fall within current region Error loading vector map <arch_pts@grass7> Loading vector map <arch_pts@grass7> (lines) failed }}} (but then the points render ok anyway and get added to the Data vector controls correctly) ----- I don't have much interest in displaying centroids, but for the sake of testing them, with the vector area and a points map already loaded, go back to the Map Layers tab and edit the d.vect preferences for the area map to show centroids too: {{{ Traceback (most recent call last): File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/gui_core/forms.py", line 654, in OnOK cmd = self.OnApply(event) File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/gui_core/forms.py", line 669, in OnApply self) File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/lmgr/layertree.py", line 1521, in GetOptData if mapWin.IsLoaded(layer): File "/home/hamish/src/grass/svn/trunk/dist.x86_64 -unknown-linux-gnu/etc/gui/wxpython/nviz/mapwindow.py", line 1267, in IsLoaded if 'object' not in data['vlines'] and \ KeyError : 'vlines' }}} ----- some other observations & 2c feedback: perhaps make the default line width 1; width=2 looks a bit "nibbled" (see screenshot), even after raising the height above surface by about $nsres distance. perhaps make the default line color a little more muted (aqua?) perhaps make the default raster fine/coarse resolution 20-30% finer and/or perhaps set the default coarse mode back to wire-frame. dragging layers around in the Map layers tab while in 3D view mode is a bit clunky. afterwards I got a weird mix in the vector roads map of some lines as the default blue,size=2 and others the modified aqua,size=1 I did before loading the raster layer. (see screenshot) you'll also notice in the screenshot a red-trail in the top right. that always follows my mouse around, it disappears as soon as I move the view-puck. shrug. (open source radeon driver on debian/squeeze) rotate 3D mode is highly sensitive to mouse movement. fly-through mode next door is very very slow to react. the normal Pan button seems to do nothing other than redraw the scene as-is. (maybe have it "Look: [here]" ?) hmm, after that fly-through mode no longer works.. for Animation, perhaps make the default file format PPM instead of TIF, as that is what the encoders will generally want as input. consider to add a help button to the animation page, with a link to the "Movies" grass wiki page for tips on encoding to .avi, .gif, etc. thanks, Hamish -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1961#comment:15> GRASS GIS <http://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev