[GRASS-SVN] r30448 - grass/trunk/swig/python/examples
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 3 12:09:43 EST 2008
Author: hamish
Date: 2008-03-03 12:09:43 -0500 (Mon, 03 Mar 2008)
New Revision: 30448
Modified:
grass/trunk/swig/python/examples/m.distance
Log:
comments
Modified: grass/trunk/swig/python/examples/m.distance
===================================================================
--- grass/trunk/swig/python/examples/m.distance 2008-03-03 16:59:15 UTC (rev 30447)
+++ grass/trunk/swig/python/examples/m.distance 2008-03-03 17:09:43 UTC (rev 30448)
@@ -17,6 +17,9 @@
# for details.
#
############################################################################
+#
+# Requires NumPrt module from http://geosci.uchicago.edu/csc/numptr/
+#
#%Module
#% label: Finds the distance between two or more points.
@@ -43,7 +46,8 @@
# export PYTHONPATH=/usr/src/grass63/swig/python
# check with "import sys; sys.path"
# or:
- sys.path.append("/usr/src/grass/svn/grass63/swig/python")
+ sys.path.append("/usr/src/grass63/swig/python")
+ # FIXME: install the g6lib.py bindings in $GISBASE/lib/ ?
import python_grass6 as g6lib
# for passing pointers
@@ -81,7 +85,7 @@
coords += line.split(',')
if len(coords) < 4:
- print "A minimum of four input coordinates are needed"
+ print "A minimum of two input coordinate pairs are needed"
return
More information about the grass-commit
mailing list