<HTML>
<HEAD>
<TITLE>Re: [GRASS-dev] GRASS 6.3.0 release preparation</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Massimo,<BR>
<BR>
Thanks for reporting this. I've been following up on your report and found very puzzling behavior, and finally identified the cause. I'll explain it and offer a couple ideas for a solution.<BR>
<BR>
The d.nviz button is a legacy of d.m because it allows you to interactively create a fly-though path by drawing with a mouse in an xterm display monitor. d.nviz then uses the result to create the path for NVIZ.<BR>
<BR>
In order to make it work with the new display system in the current GUI, the button first attempts to launch an xterm display monitor, using a TclTk procedure &quot;guarantee_xmon&quot;. This procedure runs d.mon -L to see what display monitors are available and launches the first available one. It uses an xmon that is not currently running to avoid overwriting anything that you may be using an active xterm display monitor for. &nbsp;Although something of a kludge, the procedure works OK for the few commands that need it (e.g. r.digit) EXCEPT the d.nviz button.<BR>
<BR>
When the d.nviz button is pressed, a bit of debug code showed that ALL monitors were running and none were available to use for drawing a flight path. This is what is causing the error. The puzzling part is why ALL monitors should be running for the d.nviz button when NO xterm display monitors are running for any other command that needs an xterm. <BR>
<BR>
It turns out that an environmental variable &quot;GRASS_RENDER_IMMEDIATE&quot;, which needs to be set to TRUE at the beginning of a TclTk GUI session for the display environment to work most efficiently, sets all xmons to running. This makes it impossible to open an unused xterm monitor for any command launched from the toolbar. <BR>
<BR>
So what to do...<BR>
<BR>
1. Remove the nviz button and d.nviz buttons from the toolbar and put them back into the menu somewhere. There is no obvious place to put them (since nviz will display both rasters and vectors), but I guess the file menu would be OK. This should probably be done anyway to make sure a generic version of each command is available somewhere. It would be up to the user to launch an xmon and display a map in it for interactive fly-through creation. But the command would work.<BR>
<BR>
2. Probably the best solution would be to put the d.nviz button into the mapdisplay toolbar and write a TclTk wrapper for d.nviz. This would let you draw the path on the map display canvas, grab the xy coordinates of each node, and send them to d.nviz for path creation. I don't know how difficult this would be to do. I'll look into it and report back. I also don't have a feel for how widely used this function is to justify the efforts for custom interface design. I'd appreciate any feedback on this.<BR>
<BR>
Michael<BR>
<BR>
<BR>
On 8/11/07 4:58 PM, &quot;massimo di stefano&quot; &lt;massimodisasha@yahoo.it&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi,<BR>
<BR>
i'm using 6.3-cvs on osx <BR>
i compile it every 2-3 day on osx<BR>
i found a problem running d.nviz from the gis.m button (fly trhough path for NVIZ)<BR>
when press the related button i've this log :<BR>
<BR>
can't read &quot;xmonlist&quot;: no such variable<BR>
can't read &quot;xmonlist&quot;: no such variable<BR>
    while executing<BR>
&quot;lindex $xmonlist 0&quot;<BR>
    (procedure &quot;guarantee_xmon&quot; line 16)<BR>
    invoked from within<BR>
&quot;guarantee_xmon&quot;<BR>
    (procedure &quot;Gm::fly&quot; line 3)<BR>
    invoked from within<BR>
&quot;Gm::fly&quot;<BR>
    (&quot;uplevel&quot; body line 1)<BR>
    invoked from within<BR>
&quot;uplevel \#0 $cmd&quot;<BR>
    (procedure &quot;Button::_release&quot; line 18)<BR>
    invoked from within<BR>
&quot;Button::_release .mainframe.topf.tb1.bbox4.b1&quot;<BR>
    (command bound to event)<BR>
<BR>
runnig d.nviz directly from command line everyting works fine.<BR>
<BR>
to check if it is related to my ststem configuration <BR>
i've compiled grass 6.2 using the same dependancie that i use for 6.3 release<BR>
and i've that in grass-6.2<BR>
d.nviz works fine using the gis.m button<BR>
<BR>
<BR>
<BR>
nice to see that a7.0 is coming :-)<BR>
<BR>
really thanks to all developpers!!!<BR>
<BR>
Massimo Di Stefano<BR>
<BR>
<BR>
Il giorno 11/ago/07, alle ore 23:05, Helena Mitasova ha scritto:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>On Aug 11, 2007, at 4:14 AM, Markus Neteler wrote:<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>Hi,<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>I think that it is time to get out a GRASS 6.3.0 release<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>(as sort of technology preview). It would be great to<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>have it ready for FOSS4G2007, say, September.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>IMHO, GRASS 6.3-CVS is in a good shape. Thoughts?<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>Before the release, can somebody please double check that the following works<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>(most of this I believe was already discussed and should be fixed):<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>- nviz: you can add additional surfaces using the Raster surfaces panel without crashing nviz<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>  </SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:12.0px'>(please try different resolutions, spatial extent, mapsets)<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT></SPAN><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>- nviz: mask the displayed surface using a selected raster map from within nviz (in my version the<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>mask only masked the displayed vector data)<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>- nviz: save state - you can save the state and then load it and you can start working where you<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>  </SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:12.0px'>stoped when you saved your state<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT></SPAN><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>- nviz: when saving the image, that the actual displayed image is saved rather than redrawn image<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>(for example if you have loaded 4 surfaces and you display only one of them the automatic redraw<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>  </SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:12.0px'>during the saving procedure would display all four)<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT></SPAN><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>- nviz: file sequencing tool saves the entire path rather than just the name of raster maps which<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>  </SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:12.0px'>nviz then cannot interpret when you try to play the script<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</FONT></SPAN><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>I hope that most of this has been already fixed but generally I have a 4 months old nviz on Mac<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>having more capabilities fully functional than my few weeks old version on RedHat Linux,<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>so it would be good to test before releasing.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>Otherwise GRASS63 is probably in better shape and more systematically tested than any<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>previous release as both Markus and I ran almost all GRASS commands (not with all options though)<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>and although there has been some level of frustration, most things work very well.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>If you ask me what was the most annoying (but not critica) thing that I have found when using<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>GRASS under a deadline - then it was the large default size of the centroid symbol in d.vect.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'> </SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:12.0px'>I had to go through large number of vector data when preparing the new data set<BR>
</SPAN></FONT><SPAN STYLE='font-size:12.0px'><FONT FACE="Verdana, Helvetica, Arial"> <BR>
<BR>
</FONT></SPAN><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>and each time I forgot to set the size smaller I got the unreadable mess of overlapping crosses.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>So if we could change the default to something smaller - perhaps size 2 rather than 5,<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>that would be great, because most of the time you really want to see your polygons<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>not the centroids and they are quite visible at size 2 even with my old eyes<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>(maybe make the default red as the default fill is grey). This was already<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>discussed some time ago too.<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>Helena<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
<BR>
&nbsp;<BR>
<BR>
<BR>
&nbsp;<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
&nbsp;<BR>
<BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:14.0px'>Markus<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'> <BR>
</SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
Director of Graduate Studies<BR>
School of Human Evolution &amp; Social Change &nbsp;&nbsp;&nbsp;<BR>
Center for Social Dynamics &amp; Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>