8

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?

Taras
35.7k5 gold badges77 silver badges151 bronze badges
asked Oct 7, 2013 at 18:44

2 Answers 2

2

Yes, and there are more resources available now (besides the one listed by gene):

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.

answered Jun 2, 2015 at 2:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.