[GRASS-SVN] r30473 - in grass/trunk/swig/python: . examples
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 5 02:19:48 EST 2008
Author: hamish
Date: 2008-03-05 02:19:47 -0500 (Wed, 05 Mar 2008)
New Revision: 30473
Modified:
grass/trunk/swig/python/README
grass/trunk/swig/python/examples/m.distance
Log:
add some notes, TODO
Modified: grass/trunk/swig/python/README
===================================================================
--- grass/trunk/swig/python/README 2008-03-05 07:13:14 UTC (rev 30472)
+++ grass/trunk/swig/python/README 2008-03-05 07:19:47 UTC (rev 30473)
@@ -17,6 +17,8 @@
It will create two files, python_grass6.py and _python_grass6.so.
+4. It is useful to build the NumPtr module as well.
+ - see README.GRASS in that directory for instructions
How to use it?
--------------
Modified: grass/trunk/swig/python/examples/m.distance
===================================================================
--- grass/trunk/swig/python/examples/m.distance 2008-03-05 07:13:14 UTC (rev 30472)
+++ grass/trunk/swig/python/examples/m.distance 2008-03-05 07:19:47 UTC (rev 30473)
@@ -101,6 +101,8 @@
northing = Numeric.array(0., Numeric.Float64)
northPtr = NumPtr.getpointer(northing)
+ # TODO: for clarity, figure out how to replace "3" with
+ # the defined LOCATION_LL constant from gis.i
g6lib.G_scan_easting(coords[0], eastPtr, 3)
g6lib.G_scan_northing(coords[1], northPtr, 3)
x1 = float(easting)
More information about the grass-commit
mailing list