[GRASS-dev] [GRASS GIS] #2798: v.centerline fails with real data

GRASS GIS trac at osgeo.org
Mon Nov 16 05:23:51 PST 2015


#2798: v.centerline fails with real data
--------------------------+--------------------------
  Reporter:  martinl      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.1
 Component:  Addons       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.centerline
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+--------------------------

Comment (by mlennert):

 Replying to [comment:5 martinl]:
 > Replying to [comment:4 mlennert]:
 > > v.centerline is meant for bundles of lines that have more of less the
 same trajectory and for which you want to define one "mean" line. As shown
 in the examples in the man page this could be two lines representing the
 riverbanks, or more lines representing the variance of trajectories along
 a more or less similar direction, such as lines of flight of airplanes
 above a specific area.
 >
 > it seems to me that this also that case, there are two traffic lines for
 each highway.
 >
 > > I don't really know what the "centerline" should be in your case ?
 >
 > A line between two traffic lines.


 After importing and zooming I can see what you mean. In order to get the
 centerlines of each of the highway pieces, you would have to iterate
 through them and apply v.centerline to each of them as v.centerline in its
 current state takes all lines in the map at once.

 Moritz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2798#comment:6>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list