[GRASS-SVN] r61473 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jul 31 04:47:37 PDT 2014
Author: martinl
Date: 2014-07-31 04:47:37 -0700 (Thu, 31 Jul 2014)
New Revision: 61473
Modified:
grass/trunk/gui/wxpython/vdigit/wxdigit.py
Log:
wxGUI/vdigit: break lines before adding centroids (add new area)
Modified: grass/trunk/gui/wxpython/vdigit/wxdigit.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdigit.py 2014-07-31 11:39:37 UTC (rev 61472)
+++ grass/trunk/gui/wxpython/vdigit/wxdigit.py 2014-07-31 11:47:37 UTC (rev 61473)
@@ -18,7 +18,7 @@
(and NumPy would be an excellent candidate for acceleration via
e.g. OpenCL or CUDA; I'm surprised it hasn't happened already).
-(C) 2007-2011, 2013 by the GRASS Development Team
+(C) 2007-2014 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -1769,9 +1769,13 @@
else:
fids.append(newline)
- left = right = -1
+ # break at intersection
+ if self._settings['breakLines']:
+ self._breakLineAtIntersection(newline, self.poPoints)
+
+ # add centroids for left/right area
if ftype & GV_AREA:
- # add centroids for left/right area
+ left = right = -1
bpoints = Vect_new_line_struct()
cleft = c_int()
cright = c_int()
@@ -1823,10 +1827,6 @@
Vect_destroy_line_struct(bpoints)
- # break at intersection
- if self._settings['breakLines']:
- self._breakLineAtIntersection(newline, self.poPoints)
-
self._addChangeset()
if ftype & GV_AREA:
More information about the grass-commit
mailing list