Hi:<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 16, 148); font-weight: bold; white-space: nowrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Markus Neteler</span><div>
<div>Thanks for your reply.</div><div>I have upload the error information as a annex.</div><div>---------------------</div><div>The following is my working,I wonder if you can give me some advises:</div><div><br></div><div>
We provide a web server for other clients to do some geoprocessing.Here suppose I have two process A and B. Both of them are designed to handle raster data(tiff). So in each of them I have to do the following steps:</div>
<div>1) import tiff to grass format</div><div>2) handle the tiff and get the grass result</div><div>3) export the grass result to tiff</div><div>I am now confusing with the data import and export.</div><div>As what you have side,I should do the same work in each process (A and B) -- g.region...... r.buffer....export.</div>
<div>So the problem occurs,the default location and mapset,should I define the respective location and mapset in different process(A and B)? If so I should write a grassrc file for each process?</div><div> I have used a xml confignation file to get the grass info :</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">        </font></span><font class="Apple-style-span" color="#3366FF">&lt;grass-database&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;!--Directory where GRASS lives--&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;grass-database-path&gt;d:\My Documents\GIS DataBase&lt;/grass-database-path&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;!-- path of .grassrc6 file --&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;grass-grassrc-path&gt;C:\Documents and Settings\Administrator\.grassrc6&lt;/grass-grassrc-path&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;!-- mapset and location directory --&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;grass-mapset&gt;PERMANENT&lt;/grass-mapset&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">                </font></span><font class="Apple-style-span" color="#3366FF">&lt;grass-location&gt;spearfish60&lt;/grass-location&gt;</font></div>
<div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" color="#3366FF">        </font></span><font class="Apple-style-span" color="#3366FF">&lt;/grass-database&gt;</font></div><div>And now it seems I have made a very stupid mistake.</div>
<div>So I want to know how to make new location and mapset and the grassrc file in my program for each process?</div><div><br></div><div>Maven</div><div>2009/6/10</div></div><div><div class="gmail_quote">2009/6/10 Markus Neteler <span dir="ltr">&lt;<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Tue, Jun 9, 2009 at 9:36 AM, maven apache&lt;<a href="mailto:apachemaven0@gmail.com">apachemaven0@gmail.com</a>&gt; wrote:<br>

&gt; In fact I have create two folder nlocation and nmapset in the hiberarchy of<br>
&gt; (nlocation/nmapset),then I start the grass with the gui ,I got the error<br>
&gt; messgae that I am mot clear?....<br>
<br>
</div>Please (re)post the error.<br>
<div class="im"><br>
&gt; 1) I want to know the relation of the grassrc file and the  contere location<br>
&gt; or mapset ? Which should be created frist?<br>
<br>
</div>The grassrc is created by GRASS.<br>
<div class="im"><br>
&gt; 2) If I do my process in the gui ,then should I do the g.region process?<br>
<br>
</div>You can control g.region either from command line of through the GUI.<br>
<div class="im"><br>
&gt; 3) Some data which can be displayed in the grass gui can not exported<br>
&gt; perfectly,most of them contains only black blank after exproted.....<br>
&gt; Thanks!<br>
<br>
</div>If you speak about raster maps then first run<br>
<br>
g.region rast=yourmap<br>
<br>
then export. Otherwise the current region part is exported which<br>
does not necessarily match the map.<br>
<font color="#888888"><br>
Markus<br>
</font></blockquote></div><br></div></div>