[GRASS-SVN] r62312 - grass-addons/grass7/vector/v.centerline
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 21 05:27:15 PDT 2014
Author: mlennert
Date: 2014-10-21 05:27:15 -0700 (Tue, 21 Oct 2014)
New Revision: 62312
Added:
grass-addons/grass7/vector/v.centerline/v_centerline_flightpaths.png
grass-addons/grass7/vector/v.centerline/v_centerline_river.png
Removed:
grass-addons/grass7/vector/v.centerline/centerline_flightpaths.png
grass-addons/grass7/vector/v.centerline/centerline_river.png
Modified:
grass-addons/grass7/vector/v.centerline/v.centerline.html
Log:
Complying to submitting rules (no </p> and image file names reflecting module name)
Deleted: grass-addons/grass7/vector/v.centerline/centerline_flightpaths.png
===================================================================
(Binary files differ)
Deleted: grass-addons/grass7/vector/v.centerline/centerline_river.png
===================================================================
(Binary files differ)
Modified: grass-addons/grass7/vector/v.centerline/v.centerline.html
===================================================================
--- grass-addons/grass7/vector/v.centerline/v.centerline.html 2014-10-21 08:02:50 UTC (rev 62311)
+++ grass-addons/grass7/vector/v.centerline/v.centerline.html 2014-10-21 12:27:15 UTC (rev 62312)
@@ -1,10 +1,10 @@
<h2>DESCRIPTION</h2>
-<p><em>v.centerline</em> creates a new map with a line representing an approximation of the central tendency of a series of input lines. This can for example, be the central line of a river represented by its two sides, or a line representing the general direction of a series of flight paths, etc.</p>
+<p><em>v.centerline</em> creates a new map with a line representing an approximation of the central tendency of a series of input lines. This can for example, be the central line of a river represented by its two sides, or a line representing the general direction of a series of flight paths, etc.
-<p>Two algorithms are proposed in the module, both based on the idea of using a reference line, creating a series of reference points along this line and then finding the coordinates of corresponding points on all the input lines. The default algorithm uses closest distance to identify corresponding points, while the second algorithm (<b>t</b> flag) draws perpendicular transversals at the reference points and uses the intersections of these transversals with the other lines as corresponding points.</p>
+<p>Two algorithms are proposed in the module, both based on the idea of using a reference line, creating a series of reference points along this line and then finding the coordinates of corresponding points on all the input lines. The default algorithm uses closest distance to identify corresponding points, while the second algorithm (<b>t</b> flag) draws perpendicular transversals at the reference points and uses the intersections of these transversals with the other lines as corresponding points.
-<p>In detail, the default algorithm goes as follows:</p>
+<p>In detail, the default algorithm goes as follows:
<ul>
<li>choose one of the input lines as reference line</li>
<li>create a series of points at regular intervals on this line</li>
@@ -18,7 +18,7 @@
<li>use the calculated means (or medians) as vertices of the new line</li>
</ul>
-<p>The transversals algorithm goes as follows:</p>
+<p>The transversals algorithm goes as follows:
<ul>
<li>choose one of the input lines as reference line</li>
<li>create a series of perpendicular (transversal) lines at regular intervals on this line</li>
@@ -32,21 +32,21 @@
<li>use the calculated means (or medians) as vertices of the new line</li>
</ul>
-<p>The user can change three parameters in the algorithms: the choice of the reference line (<b>refline</b>), the number of vertices to calculate (<b>vertices</b>) and the search range (<b>range</b>), i.e. for the default algorithm the maximum distance of corresponding points from the reference line and for the second algorithm the length of the transversals on each side of the reference line.</p>
+<p>The user can change three parameters in the algorithms: the choice of the reference line (<b>refline</b>), the number of vertices to calculate (<b>vertices</b>) and the search range (<b>range</b>), i.e. for the default algorithm the maximum distance of corresponding points from the reference line and for the second algorithm the length of the transversals on each side of the reference line.
-<p>If no reference line is given the module choses the reference line by determining the mean distance of the midpoint of each line to the midpoints of all other lines. The line with the lowest mean distance is then chosen as the reference line. If no range is given, the module uses the mean of the above mean distances as the range for the transversals algorithm, and an unlimited search range for the default algorithm.</p>
+<p>If no reference line is given the module choses the reference line by determining the mean distance of the midpoint of each line to the midpoints of all other lines. The line with the lowest mean distance is then chosen as the reference line. If no range is given, the module uses the mean of the above mean distances as the range for the transversals algorithm, and an unlimited search range for the default algorithm.
-<p>If the <b>m</b> flag is set and there are more than 2 lines in the input file, the module calculates the mathematical median of the x and of the y coordinates.</p>
+<p>If the <b>m</b> flag is set and there are more than 2 lines in the input file, the module calculates the mathematical median of the x and of the y coordinates.
<h2>NOTES</h2>
-<p>This module is more of a proof of concept showing that an approximate solution to the problem is possible with existing GRASS modules. A C-based solution would probably be much more efficient.</p>
+<p>This module is more of a proof of concept showing that an approximate solution to the problem is possible with existing GRASS modules. A C-based solution would probably be much more efficient.
-<p>The median in this module is <b>not</b> the geometric median, but the simple mathematical median respectively of the x and the y coordinates.</p>
+<p>The median in this module is <b>not</b> the geometric median, but the simple mathematical median respectively of the x and the y coordinates.
-<p>The transversals algorithm is very sensitive to the range parameter. The user might want to play around with this parameter to find the best value.</p>
+<p>The transversals algorithm is very sensitive to the range parameter. The user might want to play around with this parameter to find the best value.
-<p>Increasing the number of vertices should have a smoothing effect on the resulting line, but in the case of the transversals algorithm it can possibly lead to more instability.</p>
+<p>Increasing the number of vertices should have a smoothing effect on the resulting line, but in the case of the transversals algorithm it can possibly lead to more instability.
<h2>EXAMPLE</h2>
@@ -59,7 +59,7 @@
</pre></div>
<center>
- <img src="centerline_flightpaths.png" border="1"><br>
+ <img src="v_centerline_flightpaths.png" border="1"><br>
Different centerlines resulting from variations in the parameters and flags
</center>
@@ -69,7 +69,7 @@
</pre></div>
<center>
- <img src="centerline_river.png" border="1"><br>
+ <img src="v_centerline_river.png" border="1"><br>
Mean central line (median only makes sense if number of lines > 2) for distance (red) and transversals (blue) algorithms, the latter with automatically determined range
</center>
Copied: grass-addons/grass7/vector/v.centerline/v_centerline_flightpaths.png (from rev 62311, grass-addons/grass7/vector/v.centerline/centerline_flightpaths.png)
===================================================================
(Binary files differ)
Copied: grass-addons/grass7/vector/v.centerline/v_centerline_river.png (from rev 62311, grass-addons/grass7/vector/v.centerline/centerline_river.png)
===================================================================
(Binary files differ)
More information about the grass-commit
mailing list