conveyal / gtfs-editor

A web-based GTFS editing framework. THIS PROJECT IS DEPRECATED. See https://github.com/ibi-group/datatools-ui for current version.
https://github.com/ibi-group/datatools-ui
MIT License
134 stars 63 forks source link

Feed validation fails on route_color #231

Open JWJoubert opened 9 years ago

JWJoubert commented 9 years ago

I capture a route's colour as #1864a3 (R:24 G:100 B:163). Note that for the colour to be recognised, the '#' symbol must be included as prefix. This, however, is also saved with the '#' in the database and when validating the feed, it fails with the following error:

Invalid value #1864a3 in field route_color route_color should be a valid color description which consists of 6 hexadecimal characters representing > the RGB values. Example: 44AA06

... it seems the '#' should be omitted. If I remove the '#' when capturing the colour, it defaults back to 'ff0000'. I believe this is quite crucial to sort out... but maybe I'm just missing something obvious. Any suggestions, please?

Thanks! Johan

JWJoubert commented 9 years ago

When manually removing the # for each route_color and route_text_color in the routes.txt file exported, it validates fine.