[GRASS-SVN] r62675 - grass-addons/grass7/vector/v.fixed.segmentpoints
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 8 13:24:21 PST 2014
Author: hellik
Date: 2014-11-08 13:24:21 -0800 (Sat, 08 Nov 2014)
New Revision: 62675
Modified:
grass-addons/grass7/vector/v.fixed.segmentpoints/v.fixed.segmentpoints.py
Log:
v.fixed.segmentpoints: add next to last point
Modified: grass-addons/grass7/vector/v.fixed.segmentpoints/v.fixed.segmentpoints.py
===================================================================
--- grass-addons/grass7/vector/v.fixed.segmentpoints/v.fixed.segmentpoints.py 2014-11-08 21:10:15 UTC (rev 62674)
+++ grass-addons/grass7/vector/v.fixed.segmentpoints/v.fixed.segmentpoints.py 2014-11-08 21:24:21 UTC (rev 62675)
@@ -108,7 +108,7 @@
number_segmentpoints_without_end = math.floor( vector_line_length / float(sdistance) )
- number_segmentpoints_with_end = int(number_segmentpoints_without_end + 1)
+ number_segmentpoints_with_end = int(number_segmentpoints_without_end + 2)
grass.message( "Number of segment points (start and end point included):" )
grass.message( number_segmentpoints_with_end )
More information about the grass-commit
mailing list