Jarek Jasiewicz wrote: > >> I need quick answer how can I show map in the text mode in grass7 (no > >> d.mon)
Nikos Alexandris pisze: > > Copy-pasting Glynn's answer (in the past) in a thread titled "grass70 and > > display monitor": > > > > --%<--- > > You can approximate the pre-7.0 workflow using an image viewer which > > automatically refreshes the display whenever the file changes. For X, > > > > you can use the ximgview program, e.g.: > > export GRASS_PNGFILE=map.bmp > > d.erase > > ximgview & > > export GRASS_PNG_MAPPED=TRUE > > export GRASS_PNG_READ=TRUE > > # more d.* commands > > > > -->%--- Jarek Jasiewicz wrote: > thanks for answer, but unfortunately no : ( > ximgview still need wxpython it is solution only for old style display > commands but not for corrupted wx Hmmm? I recently compiled grass_trunk (as described in the wiki at <http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu>) and the GUI launches fine (under Kubuntu 64-bit). I have to note however that I rarely "work" with the GUI, so I only assume it works fine. I have the following in ~/.bash_profile: --%<--- # grass export GISBASE=/usr/local/grass-6.4.0svn export GRASS_GNUPLOT='gnuplot -persist' export GRASS_WIDTH=640 export GRASS_HEIGHT=480 export GRASS_HTML_BROWSER=firefox export GRASS_PAGER=cat export GRASS_WISH=wish export GRASS_PYTHON=python export GRASS_MESSAGE_FORMAT=silent export GRASS_TRUECOLOR=TRUE export GRASS_TRANSPARENT=TRUE export GRASS_PNG_AUTO_WRITE=TRUE --->%-- (Actually I have configured my system as described in the following wiki-page <http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly>) So, within from a grass7 session, any "d.rast" command (or other drawing) creates a file map.png (under the current working directory each time). And I can view it with any image viewer. > GRASS 7.0.svn (spearfish60):~ > export GRASS_PNGFILE=map.bmp here you have to draw something, i.e. "d.rast SomeRasterMap" > GRASS 7.0.svn (spearfish60):~ > d.erase > GRASS 7.0.svn (spearfish60):~ > ximgview & > [1] 29591 I think "ximgview &" was suggested as a lightweight and quick viewer, that stays open like the (old-)x.mons (...good-bye Xmons :-( ). But this is I think irrelevant with this corruption, I think. Do you launch grass in text-mode? i.e. "grass70 -text GRASSDB/LOCATION/Mapset" ? Nikos --- > GRASS 7.0.svn (spearfish60):~ > Traceback (most recent call last): > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/menuform.py", > line 86, in <module> > import gdialogs > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gdialogs.py", > line 44, in <module> > import gselect > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/gselect.py", line > 46, in <module> > from preferences import globalSettings as UserSettings > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", > line 902, in <module> > globalSettings = Settings() > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", > line 590, in __init__ > self.ReadSettingsFile() > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", > line 661, in ReadSettingsFile > self.__ReadFile(filePath, settings) > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", > line 703, in __ReadFile > self.Append(settings, group, key, subkey, value) > File > "/usr/local/grass-7.0.svn/etc/gui/wxpython/gui_modules/preferences.py", > line 894, in Append > dict[group][key][subkey[0]][subkey[1]] = value > TypeError: 'tuple' object does not support item assignment > ^C > [1]+ Exit 1 ximgview > > So we back in the same 894 line error > > :( > > Jarek [...] _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
