[GRASS-SVN] r54089 - grass/trunk/lib/python/pygrass/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 28 08:24:22 PST 2012


Author: zarch
Date: 2012-11-28 08:24:22 -0800 (Wed, 28 Nov 2012)
New Revision: 54089

Modified:
   grass/trunk/lib/python/pygrass/raster/rowio.py
Log:
Fix RasterRowIO class with CELL and DCELL maps

Modified: grass/trunk/lib/python/pygrass/raster/rowio.py
===================================================================
--- grass/trunk/lib/python/pygrass/raster/rowio.py	2012-11-28 15:05:51 UTC (rev 54088)
+++ grass/trunk/lib/python/pygrass/raster/rowio.py	2012-11-28 16:24:22 UTC (rev 54089)
@@ -19,7 +19,7 @@
 
 
 def getmaprow_CELL(fd, buf, row, l):
-    librast.Rast_get_f_row(fd, ctypes.cast(buf, ctypes.POINTER(librast.CELL)),
+    librast.Rast_get_c_row(fd, ctypes.cast(buf, ctypes.POINTER(librast.CELL)),
                            row)
     return 1
 
@@ -31,7 +31,7 @@
 
 
 def getmaprow_DCELL(fd, buf, row, l):
-    librast.Rast_get_f_row(fd, ctypes.cast(buf, ctypes.POINTER(librast.DCELL)),
+    librast.Rast_get_d_row(fd, ctypes.cast(buf, ctypes.POINTER(librast.DCELL)),
                            row)
     return 1
 



More information about the grass-commit mailing list