I am trying to find a least cost path script for Python.
I came across
r.drain from GRASS GIS.
Is it possible to use GRASS GIS in a Python standalone script?
If so where can I download the bindings?
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
yes, see for example:
Yes, and there are more resources available now (besides the one listed by gene):
GRASS_BATCH_JOBenvironment variable and GRASS executable
API for Python are part of GRASS itself, so you just have to install GRASS GIS but note that GRASS does not add its packages to the system Python nor messes with it in any way (to be on the safe side). Similarly the GRASS executable does not not have to be on PATH, although it typically is in Linux distributions.