[GRASS-dev] running grass from python
Michael Barton
Michael.Barton at asu.edu
Sat Oct 16 19:10:25 EDT 2010
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 at lists.osgeo.org> wrote:
> Message: 6
> Date: Fri, 15 Oct 2010 23:07:31 +0100
> From: Glynn Clements <glynn at gclements.plus.com>
> Subject: Re: [GRASS-dev] running grass from python
> To: Massimo Di Stefano <massimodisasha at gmail.com>
> Cc: GRASS developers grass-developers <grass-dev at lists.osgeo.org>
> Message-ID: <19640.53411.760210.566806 at cerise.gclements.plus.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> Massimo 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) ?
>
> http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly
>
> The most important environment variables are GISBASE, GISRC, PATH and
> LD_LIBRARY_PATH (or equivalent).
>
> --
> Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list