[GRASS-user] Using GRASS 6 without starting it (Python)

Pedro Camargo veigacamargo at gmail.com
Sat Mar 14 22:26:36 PDT 2015


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/')

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 <sittichai.ocu at gmail.com> wrote:

> Hi Predo
>
>
>
> On BE2558/03/07, at 15:39, Micha Silver <micha at arava.co.il> 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 <+66%2055%20962753>
> Mobile: +66 95-635-8102 <+66%2095-635-8102>
> email: sittichaic at nu.ac.th
> ■□■□■□■□■□■□■□■□■
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150314/1e95ed80/attachment.html>


More information about the grass-user mailing list