We're doing it from Java in my lab. So it should be possible from Python. I can ask the RA who is doing the Java programming about it if you're interested.
Michael
____________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
On Oct 16, 2010, at 9:00 AM, <grass-dev-request@lists.osgeo.org> wrote:
Message: 6
Date: Fri, 15 Oct 2010 23:07:31 +0100
From: Glynn Clements <glynn@gclements.plus.com>
Subject: Re: [GRASS-dev] running grass from python
To: Massimo Di Stefano <massimodisasha@gmail.com>
Cc: GRASS developers grass-developers <grass-dev@lists.osgeo.org>
Message-ID: <19640.53411.760210.566806@cerise.gclements.plus.com>
Content-Type: text/plain; charset=us-asciiMassimo Di Stefano wrote:
i'm intersted to know if it is possible to use the grass functionalities directly from python
without the needs to run a grass session from bash.i think the first thisk i have to do is to set my PYTHONPATH to where i have grass-python libs
then i have to set the grass environment vars (gisenv?)have you any hints on how to do it (if possible) ?
Working with GRASS without starting it explicitly - GRASS-Wiki
The most important environment variables are GISBASE, GISRC, PATH and
LD_LIBRARY_PATH (or equivalent).--
Glynn Clements <glynn@gclements.plus.com>