furkot / export-gpx

Generate GPX files from Furkot trip data.
https://trips.furkot.com
0 stars 0 forks source link

Export track colors #10

Closed melitele closed 9 years ago

melitele commented 9 years ago

Include the "color code" in the GPX Track Export file as Garmin Extensions: i.e,

<trk>
    <name>Hard</name>
    <gpxtrx:TrackExtension>
        <gpxtrx: DisplayColor>Red</gpxtrx: DisplayColor>
    </gpxtrx:TrackExtension>
</trk>
allthingssatnav commented 9 years ago

For Garmin GPX... screen shot 2015-06-20 at 23 05 28

melitele commented 9 years ago

Two questions:

  1. Should the route color option selected for the display in Furkot affect the colors in the exported GPX file or should we only distinguish between locked and unlocked routes?
  2. Should we use colors as closely matching Furkot's (see below) as possible or use different colors in the exported GPX file?

The closest match of route colors in Furkot to Garmin colors as defined in the GxpExtensions schema http://www8.garmin.com/xmlschemas/GpxExtensionsv3.xsd is as follows:

normal (unlocked) - Blue preserved (locked) - Dark Magenta odd day - Blue even day - Magenta outbound leg - Blue inbound (return) leg - Cyan

allthingssatnav commented 9 years ago

Color is often a personal selection and based upon the reason for differentiation. In the XML example below the User is conveying that the Track is a difficult route to follow and the User set the color to Red.

`

Hard
<gpxtrx:TrackExtension>
    <gpxtrx: DisplayColor>Red</gpxtrx: DisplayColor>
</gpxtrx:TrackExtension>

`

  1. Typically, on GPS devices, high-contrast colors are chosen for differentiation. The current route color options in Furkot are very good options for differentiating Furkot route conditions within Furkot. But this coloration does not address User reasons for differentiation of a route; either within Furkot or on a GPS. The User should choose/set the Color for the Exported Track/Route.
  2. If (1) then it would be appropriate to offer most of the Garmin Color Options to the User: excluding Transparent and White.
melitele commented 9 years ago

Until we implement an option to select different color for each route in Furkot, the best we can do is to map colors Furkot uses to Garmin colors based on route type and display preferences (locked/unlocked, alternate days, inbound/outbound).

If that's not useful, we'll defer this issue until the selecting color per route is implemented.

allthingssatnav commented 9 years ago

I think the color in Furkot is of value to many, especially on the more complex Trips: I know I appreciate it. I don't think extending this coloration to the device is as valuable as being able to select color for User purposes. I would suggest deferring until such time as that feature can be implemented.

melitele commented 9 years ago

done