On 03/15/2015 07:26 AM, Pedro Camargo wrote:
Hi Sittichai and Micha,

 

I just came back from a conference, thus back to this issue.


I tried many configurations for the code, including the following

gisdbase = os.path.join(os.getenv('APPDATA', 'grassdata'))

and

gisdbase = os.path.join('J:/MY_PROJECT/GRASS/')


I'm not an expert in python, but I think you need something like:

gisdbase = os.path.join("J:/","MY_PROJECT","GRASS")

Then, of course, run the grass.init function

and

gisdbase='J:\MY_PROJECT\GRASS'

and

gisdbase = os.path.join(os.getenv('APPDATA')+ "/GRASS6/grassrc6")


For all these, the output was the same, and created a file in the temp folder as below.


c:\users\pedro\appdata\local\temp\tmprdjnow
-1073741515

Any other suggestions?

Thanks a lot,

Pedro



On Sat, Mar 7, 2015 at 4:29 AM, Study <[email protected]> wrote:
Hi Predo



On BE2558/03/07, at 15:39, Micha Silver <[email protected]> wrote:



On 03/07/2015 08:31 AM, Pedro Camargo wrote:
Hi Sittichai,

      The location of the database is J:\MY_PROJECT\GRASS

Is that what you wanted to know?


So you need to set the GISDBASE variable to the above. NOT as you set in your first mail:

Yes, as Micha said please set the GISDBASE to "J:\MY_PROJECT\GRASS"

Best, 
-- 
■□■□■□■□■□■□■□■□■
Dr. Sittichai Choosumrong (Ph.D)
Lecturer at Faculty of Agriculture, Natural Resources and Environment,
Department of Natural Resources and Environment, 
Geography
99 Moo 9 Tambon Tha Pho, 
Amphoe Muang
Phitsanulok Thailand 65000
Office: +66 55 962753
Mobile: +66 95-635-8102
■□■□■□■□■□■□■□■□■


This mail was received via Mail-SeCure System.

_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to