Notices


Reply
Thread Tools
Posts: 23 | Thanked: 0 times | Joined on May 2006
#91
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.

Last edited by RussNelson; 2006-06-04 at 00:19.
 
gnuite's Avatar
Posts: 1,245 | Thanked: 421 times | Joined on Dec 2005
#92
Originally Posted by RussNelson
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.
It is not possible to automate the mime-type registration process in the 2005 OS - hopefully this is to be fixed in the 2006 OS, at which point I will try to set up Maemo Mapper as the default handler for GPX files.
 
Posts: 1 | Thanked: 0 times | Joined on May 2006
#93
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.
Attached Files
File Type: txt maemo-mapper-gpx.patch.txt (1.1 KB, 216 views)
 
Posts: 190 | Thanked: 5 times | Joined on Nov 2005 @ Bee-u-tee-ful Garden Home, Oregon
#94
Originally Posted by RussNelson
No more mysterious bluetooth silence.
Russ-

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.
 
Posts: 14 | Thanked: 0 times | Joined on Nov 2005 @ USA
#95
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.

Last edited by TiganSan; 2006-06-06 at 21:26.
 
Posts: 17 | Thanked: 0 times | Joined on May 2006
#96
Hello,
works Royaltek BT GPS X-Minium - RBT-2010 with nokia 770 and maemo mapper?

thanks
 
Posts: 1 | Thanked: 0 times | Joined on Jun 2006 @ St-Etienne, France
#97
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 !
 
Posts: 39 | Thanked: 13 times | Joined on May 2006 @ Bonn, Germany
#98
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 */
setlocale(LC_NUMERIC, "C"); /* set C locale */
... write gpx data to file ...
setlocale(LC_NUMERIC, locale) /* restore current locale */
 
Posts: 39 | Thanked: 13 times | Joined on May 2006 @ Bonn, Germany
#99
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().
 
Posts: 39 | Thanked: 13 times | Joined on May 2006 @ Bonn, Germany
#100


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
mv maemo-mapper maemo-mapper.bak
wget http://armin-warda.de/maemo-mapper
chmod a+x maemo-mapper
Source-Patches:
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.

Last edited by armin; 2006-06-06 at 16:59. Reason: executable http://armin-warda.de/maemo-mapper was broken
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:28.