Opened 5 years ago

Closed 20 months ago

#2798 closed defect (wontfix)

v.centerline fails with real data

Reported by: martinl Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Addons Version: svn-trunk
Keywords: v.centerline Cc:
CPU: Unspecified Platform: Unspecified

Description (last modified by martinl)

I tried v.centerline to produce center line for highways in CZ imported from OSM, see (1), EPSG:5514 (you can use also 2065 if you have Proj.4 <4.9).

v.centerline input=highway out=highway_c

The result is one small line (red color) located somewhere in the space, see attachment:v-center-line.png.

(1) http://geo102.fsv.cvut.cz/~landa/trac_attachments/highway.pack

Attachments (1)

v-center-line.png (18.0 KB) - added by martinl 5 years ago.
result (red)

Download all attachments as: .zip

Change History (11)

Changed 5 years ago by martinl

Attachment: v-center-line.png added

result (red)

comment:1 Changed 5 years ago by martinl

Description: modified (diff)

comment:2 Changed 5 years ago by martinl

Description: modified (diff)
Milestone: 7.0.1

comment:3 Changed 5 years ago by martinl

Description: modified (diff)

comment:4 Changed 5 years ago by 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.

I don't really know what the "centerline" should be in your case ?

I added a few words to the man page to hopefully make this more explicit. If you think the module should do something else, than please go ahead and modify it. I'm leaving the ticket open for now, but at this stage, this is a "wontfix" or even a "worksforme" in my eyes.

comment:5 in reply to:  4 ; Changed 5 years ago by martinl

Replying to 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.

comment:6 in reply to:  5 Changed 5 years ago by mlennert

Replying to martinl:

Replying to 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

comment:7 Changed 5 years ago by martinl

Milestone: 7.0.17.0.5

comment:8 Changed 4 years ago by neteler

Milestone: 7.0.57.0.6

comment:9 Changed 3 years ago by neteler

Milestone: 7.0.67.0.7

comment:10 Changed 20 months ago by martinl

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.