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"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></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>
> In fact I mean how can I run grass in a common windows xp command line.<br>
> 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>
> 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's documentation (e.g. pngdriver.html for the PNG driver).<br>
<div class="im"><br>
> Also I may need to change the location and mapset after import a<br>
> 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 <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br>