<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-3" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Paul Kelly wrote:
<blockquote
 cite="mid:Pine.LNX.4.62.0803132303180.3270@vortex.ukshells.co.uk"
 type="cite">On Thu, 13 Mar 2008, Luigi Ponti wrote:
  <br>
  <br>
[...]
  <br>
  <blockquote type="cite">This works fine in my Cygwin/grass6.2.2
installation, although the GRASS_PNG_READ variable does not seem to be
available in grass6.2
<a class="moz-txt-link-freetext" href="http://grass.ibiblio.org/gdp/html_grass62/pngdriver.html">http://grass.ibiblio.org/gdp/html_grass62/pngdriver.html</a> so the overlay
thing suggested by Paul wouldn't work.
    <br>
  </blockquote>
  <br>
In that case you might be able to use the g.pnmcomp module to compose
the different PNG files together into one image.
  <br>
</blockquote>
Yes, thanks for the tip -- I didn't think about that option.<br>
<blockquote
 cite="mid:Pine.LNX.4.62.0803132303180.3270@vortex.ukshells.co.uk"
 type="cite"><br>
  <blockquote type="cite">Trying the same with native winGRSSS 6.3.0
RC5 is less of a success: (1) no way to set environment variables via
the GUI Output - GIS.m window; (2) not able to start GRASS via cmd.exe
as suggested at
    <br>
<a class="moz-txt-link-freetext" href="http://grass.gdf-hannover.de/wiki/WinGRASS_Current_Status">http://grass.gdf-hannover.de/wiki/WinGRASS_Current_Status</a>
    <br>
    <br>
by typing the following at the cmd.exe prompt:
    <br>
    <br>
  C:\grass63RC5\bin\grass63.bat -text
    <br>
    <br>
I get the output below:
    <br>
    <br>
  Welcome to GRASS 6.3.0RC5 (2008)
    <br>
    <br>
  GRASS homepage:                          <a class="moz-txt-link-freetext" href="http://grass.itc.it/">http://grass.itc.it/</a>
    <br>
  This version running thru:               Windows Command Shell
(cmd.exe)
    <br>
  When ready to quit enter:                exit
    <br>
  Help is available with the command:      g.manual -i
    <br>
  See the licence terms with:              g.version -c
    <br>
    <br>
  "cmd.exe" non è riconosciuto come comando interno o esterno,
    <br>
   un programma eseguibile o un file batch.
    <br>
    <br>
(the Italian error message would sound more or less like: "cmd.exe" is
not recognized as an internal or external command, an executable
program or a batch file.)
    <br>
  </blockquote>
  <br>
That's very strange. Is it possible you have accidentally modified your
PATH environment variable so that it no longer contains the path to
cmd.exe? What does
  <br>
echo %PATH%
  <br>
say? (Run straight after you get the error message above).
  <br>
  <br>
Also, in case its useful information, did you compile yourself or which
binary version did you use (download location?)
  <br>
  <br>
Paul<br>
</blockquote>
Paul:<br>
echo %PATH% says:<br>
<blockquote>C:\msys\1.0\bin;C:\Perl\bin;<br>
</blockquote>
which I have set in the grass63.bat file. When I type cmd.exe at the
command prompt or just put only 'cmd.exe' inside a cmd.bat file, the
Windows Shell starts fine. Even adding '%windir%\system32\cmd.exe' to
PATH environmental variable leaves the error message unchanged.<br>
<br>
grass-6.3.0RC5 21-Feb-2008 downloaded from
<a class="moz-txt-link-freetext" href="http://geog-pc40.ulb.ac.be/grass/wingrass/">http://geog-pc40.ulb.ac.be/grass/wingrass/</a><br>
<br>
Glynn:<br>
I am using Windows XP [Version 5.1.2600]. Changing the only reference
to cmd.exe in init.bat to %COMSPEC% eliminates the error message.
However, when I try to render a raster via Paul's command sequence, the
PNG driver works fine but it complains about unknown png file type and
no output.png file is written:<br>
<blockquote>GRASS 6.3.0RC5 (UTM32):C:\cygwin\home\luigi &gt;d.rast
sample_raster<br>
PNG: GRASS_TRUECOLOR status: TRUE<br>
PNG: collecting to file: c:\output.png ,<br>
GRASS_WIDTH=640, GRASS_HEIGHT=480<br>
 100%<br>
ERROR: write_image: unknown file type: png<br>
</blockquote>
Thanks and regards,<br>
<br>
Luigi<br>
<br>
</body>
</html>