![]() |
It would also be handy if maemo-mapper registered with Opera as the application handler for GPX files.
That way, people could click on the railroad route they wanted to follow, picking from the list of New York State Railroads: http://rutlandtrail.org/list.cgi Hmmm.... I tried loading up one of those files, and it seems that maemo-mapper throws an error because of the <metadata> section. If I remove it, then it loads just fine. |
Quote:
|
patch for gpx parsing problems
1 Attachment(s)
I spent a good part of this evening looking into the gpx parsing problem. It seems that the XML Parser doesn't detect that the file is not in UTF-8 and fails with an error when it encounters non-ASCII characters. After recoding the gpx file from latin1 to UTF-8 (recode latin1..utf8 file.gpx) maemo-mapper parses the route correctly. So I tried to help the parser, by adding encoding="iso-8859-1" -- no luck.
After recompiling maemo-mapper with a static version of a newer libxml2 (2.6.24), the parser worked and I could open route files. Unfortunately, libxml2 is part of the OS and heavily modified by Nokia, so I decided to patch maemo-mapper to convert the gpx file from latin1 to utf8 before parsing it. Quick and dirty, but it works at least for me. |
Quote:
Thank you!!! I don't know why I've been so lucky but maemo-mapper has been basically useless with a gps for me - I couldn't use it for more than 30 minutes before it locked up (And often lockups were occuring after less than 5). With your patch I did a 36 mile trip without problems - the best so far. Beers are on me. Brad. |
Maemo-Mapper Crashes
This weekend I have been using meamo-mapper more extensively and it has crashed on me several times under these scenarios (They are both reproducible):
1- Going to Maps-Download Area, enter coordinates, select Zoom levels to download, click ok. I get a window that shows me the number of images that will be downloaded, click cancel, and select/deselect zoom levels. Go through changing the zoom levels couple of times and Maemo-Mapper crashes and quits. Hit the "clear" button and it crashes. 2- Try to save a Route to a folder on MMC. In the Save window, Scroll up/down few times and Maemo-Mapper crashes and quits. Gnuite, if you need more info please let me know. Edit: I thought adding this info would be useful. I reflashed my 770 and Maemo-Mapper is the only app installed. The crash occurs with or withour GPS connection, Bluetooth Phone connection, or WiFi connection. |
Gps
Hello,
works Royaltek BT GPS X-Minium - RBT-2010 with nokia 770 and maemo mapper? thanks |
Hi,
I've juste found your forum, and it's excellent. If you want, I can translate to French. I will receive my 770 at the end of the week, and I'm very excited ! |
generated gpx files decimal separator localization problem
write_gpx() observes LC_NUMERIC when writing out lat and lon, thus if you are using (e.g.) german localization, a comma instead of a dot is used as decimal separator, and 50,123456 instead of 50.123456, is written to the gpx file.
When these files are later read in by parse_gpx(), which does not observe LC_NUMERIC, only the digits up to the comma are accepted, e.g. 50 instead of 50,123456. As a workaround I have to treat maemo-mapper generated gpx-files with sed 's/,/\./g' to be able to open them again with maemo-mapper. A fix would be to embrace the code in write_gpx() with setlocale(): Code:
locale = setlocale(LC_NUMERIC, NULL); /* save current locale */ |
changed settings lost when device crashes
config_save() is only called in maemo_mapper_destroy(), thus if the device crashes, all changed settings are lost.
I recommend to add another call of config_save() to the end of settings_dialog(). |
switching between two different map sources
http://armin-warda.de/Screenshot-Mae...l-Map-Sets.png
What do you think about this? I use (1) for street maps and (2) for satellite images. (I moved the 'Zoom Steps' settings to the 'Misc.' tab.) If you want to test this: Code:
cd /var/lib/install/usr/bin http://armin-warda.de/maemo-mapper-0.2.3-aw-0.1.patch http://armin-warda.de/maemo-mapper-0...-0.1-0.2.patch http://armin-warda.de/maemo-mapper-0...-0.2-0.3.patch Sorry, the executable http://armin-warda.de/maemo-mapper available from 04:14pm to 06:45pm today (06/06/06) was broken (did not connect to the GPS receiver). Reason: I had forgotten to remove the '-DDEBUG' before make. |
All times are GMT. The time now is 12:06. |
vBulletin® Version 3.8.8