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

2015-03-06 Thread Pedro Camargo
Hi, I have been trying to use GRASS without opening it explicitly following the instructions from here: http://grasswiki.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#Python:_GRASS_GIS_6 Since I am on Windows, I had to adapt it a bit (and I tried many, many variatio

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

2015-03-06 Thread sittichai choosumrong
He Pedro Please try to specific your GISDBASE location as the code showing below; import os import sys gisbase = os.environ['GISBASE'] = "C:/Program Files/QGIS Valmiera/apps/grass/grass-6.4.3" sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "python")) gisdbase = os.path.join(os.getenv

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

2015-03-06 Thread Pedro Camargo
Hi Sittichai, The location of the database is J:\MY_PROJECT\GRASS Is that what you wanted to know? Thanks, Pedro On Fri, Mar 6, 2015 at 5:51 PM, sittichai choosumrong < sittichai@gmail.com> wrote: > He Pedro > > Please try to specific your GISDBASE location as the code showing below

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

2015-03-07 Thread Micha Silver
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

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

2015-03-07 Thread Study
Hi Predo > On BE2558/03/07, at 15:39, Micha Silver 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

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

2015-03-14 Thread Pedro Camargo
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

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

2015-03-15 Thread Micha Silver
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.