Opened 14 years ago
Closed 14 years ago
#6540 closed enhancement (fixed)
Enhancement [patch] New gps-trace coloring method: direction
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | gps-trace color direction | Cc: |
Description
This patch adds a fourth gps-trace coloring mode which is very useful. Additional to "constant color", "velocity" and "dilution of precision" the option "direction" is created.
Coloring the traces according to the direction of each segment especially helps to assign traces to each side of a street separately.
Attachments (4)
Change History (9)
by , 14 years ago
Attachment: | gpx_color_direction.patch added |
---|
by , 14 years ago
Attachment: | highway_junction.png added |
---|
illustration what the new method looks like
comment:1 by , 14 years ago
Summary: | new gps-trace coloring method: direction → Enhancement [patch] New gps-trace coloring method: direction |
---|
by , 14 years ago
Attachment: | gpx_color_direction.2.patch added |
---|
updated version. leaves internal integers for existing modes unchanged.
by , 14 years ago
Attachment: | gpx_color_direction.2--color-mod.patch added |
---|
follow-up: 3 comment:2 by , 14 years ago
This is pretty cool, actually. I adjusted the colors a little, see attached patch.
follow-up: 4 comment:3 by , 14 years ago
Replying to bastiK:
This is pretty cool, actually. I adjusted the colors a little, see attached patch.
The adjusted colors look nice. Actually I thought about changing the hsv colors myself a bit, but then I rather kept it simple. However I think the x*x*x transition function is a bit strong, what about using x*x or x1.5 ?
Make sure to adjust line 47 in DrawingPreference.java !
comment:4 by , 14 years ago
Replying to anonymous:
Replying to bastiK:
This is pretty cool, actually. I adjusted the colors a little, see attached patch.
The adjusted colors look nice. Actually I thought about changing the hsv colors myself a bit, but then I rather kept it simple. However I think the x*x*x transition function is a bit strong, what about using x*x or x1.5 ?
The problem is that yellow is dominated by green and red. The strong transition is an easy way to ensure, that all 4 colors appear in a balanced way.
josm sourcecode patch created with "git dff"