I uninstalled GRASS and then re-installed with spearfish data set with its spearfish60 location and user1 mapset. Still i cannot see .grassrc6 file created. Any idea? Please not i use Grass for Windows 7.<br><br><div class="gmail_quote">
On Fri, Dec 21, 2012 at 5:21 PM, Brian Sanjeewa Rupasinghe <span dir="ltr"><<a href="mailto:jinkabs@gmail.com" target="_blank">jinkabs@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you explain bit more. You mean without .grasssrc6, it will not work. I created a new location and mapset as you instructed. But where to find GRASS_DB_ENCODING: ascii in WinGRASS? <div class="HOEnZb"><div class="h5">
<br><br><div class="gmail_quote">On Fri, Dec 21, 2012 at 1:30 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
Brian Sanjeewa Rupasinghe wrote:<br>
<br>
> I just installed GRASS 6.4.3svn and Python 2.7.3 in Windows 7. I need to<br>
> call GRASS functions from outside GRASS. I set the environment variables<br>
> given<br>
> in the grasswiki except:<br>
> GISRC= C:\Documents and settings\user\.grassrc6<br>
><br>
> Because i cannot find this .grassrc6 in the given path or in any other<br>
> path.<br>
<br>
</div>A suitable should be created the first time you run GRASS.<br>
Alternatively, you can create the file yourself, e.g.:<br>
<br>
GISDBASE: /opt/grass-data<br>
LOCATION_NAME: spearfish57<br>
MAPSET: user1<br>
GRASS_DB_ENCODING: ascii<br>
<div><br>
> However with other variables, i tried to use from grass.lib<br>
</div>> importgrass in Python27 IDLE. Then it gives an error. I think the<br>
<div>> variables are<br>
> not set correctly. Could somebody help me to sort this out?<br>
<br>
</div>If GISRC doesn't refer to a valid settings file, nothing will work.<br>
<span><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br>
</div></div></blockquote></div><br>