In fact , I wonder if I can set the variables in the .grassrc to the path, then I can work without the .grassrc?<br><dl><dt>$HOME/.grassrc6</dt><dd>stores the GRASS variables (but not environment variables)</dd><dt>Note this, is there any differences between grass variables and envrionment viriables?<br>
</dt></dl><br><br><div class="gmail_quote">2010/1/31 Glynn Clements <span dir="ltr">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
maven apache wrote:<br>
<br>
&gt; In fact I mean how can I run grass in a common windows xp command line.<br>
&gt; I have read this page:<a href="http://grass.osgeo.org/wiki/GRASS_and_Shell,however" target="_blank">http://grass.osgeo.org/wiki/GRASS_and_Shell,however</a> it<br>
&gt; is about linux, and I am not sure which environment is requried.<br>
<br>
</div>The same principles can be applied to any language and any operating<br>
system.<br>
<br>
The main point is that the GRASS libraries expect certain environment<br>
variables to be set (mainly GISBASE and GISRC), and the file<br>
referenced by GISRC should contain settings for GISDBASE,<br>
LOCATION_NAME, and MAPSET.<br>
<br>
There is a list of environment variables in the file<br>
$GIBASE/docs/html/variables.html (lib/init/variables.html in the<br>
source tree).<br>
<br>
Variables relating to specific display drivers are listed in the<br>
driver&#39;s documentation (e.g. pngdriver.html for the PNG driver).<br>
<div class="im"><br>
&gt; Also I may need to change the location and mapset after import a<br>
&gt; data(for example a geotiff).<br>
<br>
</div>You can use g.mapset or g.gisenv to change these parameters.<br>
<font color="#888888"><br>
--<br>
Glynn Clements &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br>
</font></blockquote></div><br>