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? <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 class="im"><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 class="im"><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 class="im">> 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 class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br>