Opened 9 years ago
Closed 6 years ago
#2798 closed defect (wontfix)
v.centerline fails with real data
Reported by: | martinl | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.7 |
Component: | Addons | Version: | svn-trunk |
Keywords: | v.centerline | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description (last modified by )
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)
Change History (11)
by , 9 years ago
Attachment: | v-center-line.png added |
---|
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 7.0.1 |
comment:3 by , 9 years ago
Description: | modified (diff) |
---|
follow-up: 5 comment:4 by , 9 years ago
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.
follow-up: 6 comment:5 by , 9 years ago
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 by , 9 years ago
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 by , 9 years ago
Milestone: | 7.0.1 → 7.0.5 |
---|
comment:8 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:9 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
comment:10 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
result (red)