[GRASS-SVN] r73448 - grass-addons/grass7/vector/v.gsflow.grid

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 28 07:08:39 PDT 2018


Author: awickert
Date: 2018-09-28 07:08:38 -0700 (Fri, 28 Sep 2018)
New Revision: 73448

Modified:
   grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
Log:
v.gsflow.grid: float(dx) for bcvect


Modified: grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py
===================================================================
--- grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py	2018-09-28 14:00:31 UTC (rev 73447)
+++ grass-addons/grass7/vector/v.gsflow.grid/v.gsflow.grid.py	2018-09-28 14:08:38 UTC (rev 73448)
@@ -297,8 +297,8 @@
                 _cat_i = 2
                 if not _ismask_1:
                     # _x should always be bc_x, but writing generalized code
-                    _x = bc_x + dx * (int(_col1) - bc_col) # col 1 at w edge
-                    _y = bc_y - dy * (int(_row1) - bc_row) # row 1 at n edge
+                    _x = bc_x + float(dx) * (int(_col1) - bc_col) # col 1 at w edge
+                    _y = bc_y - float(dy) * (int(_row1) - bc_row) # row 1 at n edge
                     point0 = Point(_x,_y)
                     bcvect.write(point0, cat=_cat_i, attrs=(None, _row1, _col1, _x, _y), )
                     bcvect.table.conn.commit()
@@ -305,8 +305,8 @@
                     _cat_i += 1
                 if not _ismask_2:
                     # _y should always be bc_y, but writing generalized code
-                    _x = bc_x + dx * (int(_col2) - bc_col) # col 1 at w edge
-                    _y = bc_y - dy * (int(_row2) - bc_row) # row 1 at n edge
+                    _x = bc_x + float(dx) * (int(_col2) - bc_col) # col 1 at w edge
+                    _y = bc_y - float(dy) * (int(_row2) - bc_row) # row 1 at n edge
                     point0 = Point(_x,_y)
                     bcvect.write(point0, cat=_cat_i, attrs=(None, _row2, _col2, _x, _y), )            
                     bcvect.table.conn.commit()



More information about the grass-commit mailing list