Re: [Gpsbabel-misc] Garmin .gpx to Mapfactor Navigator .xml help wanted
Brought to you by:
robertl
From: Robert L. <rob...@gm...> - 2014-04-07 00:42:25
|
Thank you, Peder. This has now been committed in https://code.google.com/p/gpsbabel/source/detail?r=4794 https://code.google.com/p/gpsbabel/source/detail?r=4795 I'm calling that out as an example of basically how easy it is to add an "easy" format, once it's understood; it's pretty boilerplate. Here, the hardest part was the discovery that they used milliarcseconds. I found and fixed the bogus character encoding, as you can see in the mapfactor~gpx.gpx reference file. Your wish for supporting "groups" was rejected as it's not a concept that maps well to other formats and we're more about getting your data in and out of other programs than about supporting every format-specific feature possible. This will be in the next build you see from us. RJL On Thu Mar 13 2014 at 12:27:16 PM, Peder Bredahl Hansen <pb...@in...> wrote: > > Ok, I was not sure if my English skills were not god enough to understand > your posting or you had forgotten the attachment. Please remember that I am > Danish and only read and write some English. > > Both Navigator for Windows and Android reads the test file without any > problems. It works, even with the header being different. > > Navigator: > <?xml version="1.0" encoding="UTF-8"?> > -<favourites version="1"> > > Test file: > <?xml version="1.0"?> > -<favourites encoding="UTF-8" version="1"> > > The waypoints show up in My Places and I can display them on the map and > calculate a route to them. Also the "wrong" conversion of "æøå" makes no > other problems than looking a little strange. Con Code page IBM 850 or IBM > 865 often can solve this kind of problem. Or maybe running the conversion > on my machine will solve it. > > But the Fur.gpx file was also not a god choice. Navigator cannot calculate > a route to this island using Open street maps. I had to use my licensed > TomTom map on my car Tablet to make it work. So I have attached a new test > file. > > > > Peder > > Robert Lipe <rob...@gm...> wrote on 12-03-2014 19:15:22: > > > Ah, I didn't actually attach the file I asked you to test. > > > > I'm not sure I have the encodings right. Those Danish letters might > > be a problem. Please let us know if this format works or if you have > > to tweak it in some way in order to make Mapfactor happy. If so, > > we'll add one file of your choosing and its GPS equivalent to our > > test case. After you provide a page of doc (see any of our existing > > pages...) explaining what a Mapfactor Navigator is, what versions or > > devices support this format, how to use it, etc. I'll check it in > > and it'll be in the next build.> > > > On Sun, Mar 9, 2014 at 7:41 PM, Peder Bredahl Hansen <pb...@in... > > > wrote: > > > > Thank you very much. Now knowing that the Favourites.xml is probably > > not a formalised xml document, I had newer hoped this would happen. > > > > I have got about 60 locations like the Fur.gpx each on the average > > containing 10 waypoints. Most of them are here in Denmark and all of > > them have already been exported from Basecamp to .gpx format during > > the last 4 years. So even backwards capability I can easily test. > > Basecamp is right now being version 4.2.5. The .gpx files are all > > containing the Danish letters "æøå", I hope this will not be a problem. > > > > Please inform me of any tasks you want me to do. > > > > Peder > > > > Robert Lipe <rob...@gm...> wrote on 10-03-2014 21:20:22: > > > > > > > Lucky for you, I am on hold for ridiculously long and sketched in a > > > reader and writer. > > > > > > We still need to to prepare sample files, test that this works, and > > > prepare a page for doc before I check it in. > > > > > > If my read of your spec is right, your fur.gpx will turn into the > > > attachment. I still need to pencil whip the encodings, but this > > > will at least give yo a file you can edit and throw at the program. > > > You may have to manually tweak it until we get your writer to > > > produce the perfect output. Please confirm. > > > > > On Mon Mar 10 2014 at 11:43:42 AM, Peder Bredahl Hansen < > pb...@in... > > > > wrote: > > > > > > God day > > > > > > I have now got answers from the Mapfactor Navigator forum. The > > > format is something called 'milliarcseconds'. I cannot find the > > > format in Garmin Basecamp's very large list of net and datum's for > > > displaying waypoints but it could easily be there under another name. > > > > > > I have the following example of converting waypoints from WGS-84 > > > Decimal degrees to 'milliarcseconds'. > > > > > > From the Navigator forum: > > > "A milliarcsecond is one thousandth of a second of which there are > > > 60 to the minute and 60 minutes to a degree. So the sum is Garmin > > > degrees x 3600000 (60X60x1000) and ignore any decimals." > > > > > > It works this way: > > > > > > Garmin.gpx: wpt lat="56.84310439042747" lon="9.067835630849004" > > > Favourites.xml : item lat="204635168" lon="32644224" name="Fur P, > Fur"/ > > > > > > 56,84310439042747 * 3600000 = 204635175,8055389 > > > 9,067835630849004 * 3600000 = 32644208,27105641 > > > > > > There is a little difference from my example, I do not know why. ( > > > 204635175 = 204635168 ) Maybe something inside Navigator. > > > > > > My question now, is this conversion implemented in GPSBabel? > > > > > > Peder > > > > > > > > > Robert Lipe <rob...@gm...> wrote on 02-03-2014 01:50:45: > > > > > > > > > > > > > > On Sat Mar 01 2014 at 11:45:31 AM, Peder Bredahl Hansen < > > pb...@in... > > > > > wrote: > > > > > > > > Hello again > > > > > > > > I am sorry the example files I send were a bad choice. > > > > > > > > So I Have made 2 new files. The favorits.xml I have created from > > > > whit in the Navigator program. The waypoints are exactly the same > > > inthe files. > > > > > > > > > > > > > > > > A waypoint looks like this in the favorits.xml file: > > > > <item lat="204635168" lon="32644224" name="Fur P, Fur"/> > > > > The same waypoint looks like this in Garmin .gps files: > > > > <wpt lat="56.837208643555641" lon="8.996131885796785"> > > > > > So the question to answer is "how do you get from common WGS-84 > > > > decimal degrees (which we understand very well) to whatever it is > > > > that this Mapfactor Navigator uses?" It's not UTM, it's not MGRS, > > > > it's not just some scaling thing. > > > > > > > > > > > > The waypoints have to be converted. I do not know the format for the > > > > favorits.xml files lat and lon but as Mapfactor Navigator has a > > > > forum I have posted the question there. > > > > > http://forum.mapfactor.com/discussion/4212/gpx-to-favorits-xml-conversion > > > > > > > > If the numbers were in degrees and we were discussing ways to > > > > represent those, that would be an appropriate answer. > > > > > > > > How long until dinner? It's 1:30 or 1.5 hours or 90 minutes. > > > > > > > > But the question here is "how do you get from "about 9" to > "32644224"" > > > > > > > > If this is something like some country-specific program where they > > > > pick an arbitrary position (like the developers home, sigh) and > > > > measure everything in meters from there (this happens. really) > > > > we're unlikely to guess. > > > > > > > > > > > > I will try to find information about the Navigator format. > > > > > > > > Please. That research is the key. With our current version, > > > > reading and writing this format would probably be ~80 lines of code > > > > if we knew what scheme those locations used. The result would be > > > > simpler than: > > > > > https://code.google.com/p/gpsbabel/source/browse/trunk/gpsbabel/geo.cc > > > > (simpler because you don't need all the geocaching stuff and you > > > > have only lat/lon/name) > > > > > > > > Better yet, file a request with Mapfactor to support the extremely > > > > common GPX format. If your samples are representative, it looks > > > > like their XML isn't really _that_ different and they're just > > > > tormenting their users for little good reason. (The grouping thing > > > > might be that reason, but there are better ways to do that in GPX, > > > > too...) Oh, and tell them that byte-order marks in UTF-8 XML aren't > > > > necessary. > > > > > > > > RJL > > > > > > > > > > > > > > > > Peder > > > > > > > > > > > > > > > > Robert Lipe <rob...@gm...> wrote on 28-02-2014 19:20:55: > > > > > > > > > It's not a format I recognize. See the first question at http: > > > > > //www.gpsbabel.org/FAQ.html > > > > > > > > > > The XML seems pretty straight-forward for someone to add, but > you'll > > > > > have to help decode what the numbers are. Exactly which Krank > Hotel > > > > > is it, because I can't come up with an interpretation of > > > > > lat="28523088" lon="357335715" that isn't in a desert or an ocean. > > > > > Better yet, if you can find a description/specification of the > > > > > format, that would be helpful.> On Fri Feb 28 2014 at 11:50:17 AM, > > > > Peder Bredahl Hansen <pb...@in... > > > > > > wrote: > > > > > > > > > > Hello > > > > > > > > > > I want to convert Garmin gpx files to Mapfactor xml files. As > Garmin > > > > > no longer have a pc windows based navigation program I use > > > > > Mapfactors Navigator with open streets maps but still want to use > > > > > Garmins basecamp program to store my huge amount of waypoints. > > > > > http://navigatorfree.mapfactor.com/en/ > > > > > > > > > > > > > > > The Garmin Basecamp gpx files have the following format and can be > > > > > read by the gpx xml format in GPSBabel > > > > > > > > > > > > > > > > > > > > The Mapfactor Navigator xml files have the following format > > > > > > > > > > > > > > > > > > > > I cannot find any format in GPSBabel for the Navigator format. > > > > > > > > > > Can GpsBabel make this conversion and how to? > > > > > > > > > > Best Regards > > > > > > > > > > Peder > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Flow-based real-time traffic analytics software. Cisco certified > tool. > > > > > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow > Analyzer > > > > > Customize your own dashboards, set traffic alerts and generate > reports. > > > > > Network behavioral analysis & security monitoring. All-in-one tool. > > > > > http://pubads.g.doubleclick.net/gampad/clk? > > > id=126839071&iu=/4140/ostg.clktrk > > > > > _______________________________________________ > > > > > Gpsbabel-misc mailing list http://www.gpsbabel.org > > > > > Gps...@li... > > > > > To unsubscribe, change list options, or see archives, visit: > > > > > https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc > > [attachment "fur.xml" deleted by Peder Bredahl Hansen/Integration] |