New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TWL files are downloaded empty #689
Comments
As a rule, I wouldn't recommend trying to convert to twl. it's a very old format that doesn't support most of what exists today. I'm not sure this is a bug, but rather a limitation of the TWL format. |
Thanks Harel Either way, maybe it is worth considering telling it to the user when he is trying to download a twl, if there is a route and not only waypoints, or better, to convert (somehow) a route to waypoints? Today as a user, I have no way to understand what you've just told me from the map... |
I don't think it ever worked differently, but I agree the user experience is not ideal. |
@hagai-lvi, As far as I understand, the site generates gpx files containing tracks and waypoints while GPSBabel can only convert gpx routes to Naviguide (twl) files. Since the input gpx file does not contain any route, the output twl file is empty. Luckily, gpsbabel is able to transform the track into a route given the @HarelM, |
https://github.com/IsraelHikingMap/Site/blob/master/IsraelHiking.DataAccess/GpsBabelGateway.cs
|
It seems like the GpsBabel interface is accepting only input and output formats, which are determined by the file type. To solve this issue, if the output format is Naviguide (twl) then either the input to GPSBabel sould be a route gpx file, or the above conversion parameter should be added. Neither approach seems to comply with the existing GpsBabel interface. If indeed the interface needs to change, it seems like the ability to add conversion parameters is a more general approach. |
I agree the interface may need to change, but you can also use the flag just after the format. i.e in:
|
Following GPSBabel#81 and IsraelHikingMap/Site#689 Add option for specifying the input data type when writing a Naviguide file.
Part of implementing #689 Following IsraelHikingMap/gpsbabel@8eded11
Bug
What I expect to happen
When I download a TWL, I expect it to work
What really happened
I get a file with 0 bytes, that I can't open
What I did that caused the issue - step by step
My environment
Thing I think the developers should know, images, links etc.
Link to the route I couldn't download:
https://israelhiking.osm.org.il/#!/?s=oxIsxvfVVj
I've also tried with a simple route with 2 points
I have originally saw the bug in a discussion in jeepolog.com:
http://www.jeepolog.com/forums/showthread.php/107954-%D7%94%D7%9E%D7%A8%D7%AA-%D7%A7%D7%91%D7%A6%D7%99%D7%9D?p=789862#post789862
The text was updated successfully, but these errors were encountered: