Hi Rodrigo, > > I've spoken with the developers of Brazilians maps and they told me that > probably the problem is not with the map boundaries. > > If on one hand the your official Garmin maps works with QLandkarte, on > the other hand the Brazilian free maps works with Mapsource :-) > > Does anyone have ever tested before QLandkarte with a map that contain > negative latitude and longitude? I'm asking because I've just tested > QLandkarte with Australian maps > (http://www.gpsoz.com.au/tracks4australia/) and it works perfectly. > After I've tested with Argentinian maps > (http://www.proyectomapear.com.ar/), also with negative latitude and > longitude, and I've got the same problem. In order to find the map I > need to first zoom out. > > What do you think?
yes, negative coordinates are always a good source of bugs. However before I can tell you if there is a bug in QLandkarte I need sensible values. You can check yourself: In CGarminDBMap.cpp line 267 ff. I read the north/east/south/west extends from the *tdb file. Those are 24 bit values stored in a 32 bit type shifted to the left boundary. The DEG macro will convert them to values in [°]. A debug message will print north east south west 8.4375 -2.14577e-05 -2.14577e-05 -2.14577e-05 In hex values: 0x06000000 0xFFFFFF00 0xFFFFFF00 0xFFFFFF00 If you take a hex editor and have a look at the tdb file you will find the start of section 0x42 at 0x00b9. Use the tdb_map_t structure to decode the section. The north value will start at 0x00C4. All values are coded little endian. That proves that QLandkarte reads the values from the tdb correctly. In other words: Fix that tdb file and then we have a look if I hit the famous negative coord. bug once again :) Oliver > > Thanks, Rodrigo. > > On Tue, Oct 7, 2008 at 3:02 AM, Oliver Eichler > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > Hi Rodrigo, > > > In my tests it didn't make any difference importing the maps with the > > file extension for .tdb and .mdx in lowercase or uppercase. What > > difference did you expect to happen? > > You are right, I fixed that already. In former days QLandkarte had > problem to see the capital letter ending of the *tdb file. It's still in > my brain as "not working" :) > > > > > > If I understand correctly the problem is with QLandkarte reading > the map > > boundaries, so we need to fix it in the software. Or there is > something > > to be changed in the map files? > > Well as my official Garmin maps work I would say it's the map. If I can > read my own code right (haven't looked at that for ages) the map > boundaries in the *tdb file are not defined correctly. In record type > 0x42 the north/south, west/east boundaries have to be coded as 32bit > values. > > > Oliver > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > <http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________ > QLandkarte-users mailing list > [email protected] > <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/qlandkarte-users > > -- -------------------------------------------------------------------- DSP Solutions GmbH & Co. KG, Schwandorfer Str. 3a, 93059 Regensburg Email: [EMAIL PROTECTED] http://www.dspsolutions.de Phone: +49(0) 941 / 830 551 Embedded Signal Processing Fax: +49(0) 941 / 830 5579 DIN EN ISO 9001:2000 Gesellschaftssitz: Regensburg, Registergericht: Regensburg HRA 7862 Komplementaer: DSP Solutions Beteiligungs-GmbH, Regensburg HRB 10932 -------------------------------------------------------------------- ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ QLandkarte-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkarte-users
