0
votes
0answers
40 views

Use python to execute GRASS module v.distance

I have successfully use python script to import a line shapefile and a point shapefile into GRASS, and the following are their attribute table in QGIS, line shapefile point shapefile Now I want ...
0
votes
1answer
25 views

GRASS module g.mremove returns irrational outputs

I want to use g.mremove to remove multiple files in my mapset, import os import sys sys.path.append(os.path.join(os.environ['GISBASE'], 'etc', 'python')) import grass.script as g import ...
0
votes
1answer
69 views

GRASS module g.copy returns irrational outputs

I took this as reference, Moving raster to different mapset GRASS GIS, and I use pyscripter to use GRASS module g.copy from outside, import os import sys #set up GRASS environment variables ...
0
votes
0answers
101 views

GRASS module g.mapset can't create new mapsets from outside

I use pyscripter to control GRASS from outside. I want to create a new mapset named water. Here's my script to generate new mapset, import os import sys #set up GRASS environment variables ...
1
vote
2answers
237 views

Why my python script of r.watershed has no output´╝č

I type those code in pyscripter, import os import sys #set up GRASS environment variables sys.path.append(os.path.join(os.environ['GISBASE'], 'etc', 'python')) import grass.script as g import ...
0
votes
1answer
55 views

Better ways to check if GRASS r.water.outlet works out fine output

I use my python script to call GRASS module r.water.outlet from outside, and here's my script(I perform this script in pyscripter): import os import sys #set up GRASS environment variables ...
0
votes
1answer
57 views

Difference between python IDLE and eclipse on accessing GRASS

I have seen these posts:GRASS and Python, Using Eclipse to develop GRASS Python programs. I used to use python IDLE to control GRASS, but I can't make python and GRASS connected, as I described in ...
2
votes
1answer
304 views

OGR Python bindings

When I try to access one of the GRASS vector files through Python OGR bindings, it gives error: Here is the script code in Python 2.7.3 IDLE (GUI) in Windows 7. from osgeo import ogr ds = ...
6
votes
2answers
623 views

Calling GRASS functions from external Python

I have GRASS 6.4.3svn installed in my machine running Windows 7. Also in my machine i installed Python 2.7.3 for Windows.Now i need to call GRASS libraries from Python and not within the Python shell ...