Bläddra i källkod

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 år sedan
förälder
incheckning
bbad2a4d0c
1 ändrade filer med 2 tillägg och 2 borttagningar
  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