瀏覽代碼

Fix RasterRowIO class with CELL and DCELL maps

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54089 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 年之前
父節點
當前提交
bbad2a4d0c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/python/pygrass/raster/rowio.py

+ 2 - 2
lib/python/pygrass/raster/rowio.py

@@ -19,7 +19,7 @@ CMPFUNC = ctypes.CFUNCTYPE(ctypes.c_int,
 
 
 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_FCELL(fd, buf, row, l):
 
 
 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