Menu

#1 Cannot parse userdata.adm

1.0
open
2013-12-12
2013-12-09
No

Hi there, thanks for such a useful project however i don't seem to be able to get it to parse my file. It's got about 10 tracks in it which i want to extract but it doesn't seem to like my file much. I've attached zipped the .ADM file along with info about the file and the debug output.

Many thanks

Christopher

1 Attachments

Discussion

  • Andrew Daviel

    Andrew Daviel - 2013-12-10

    It works for me; see attached from
    "adm2gpx.pl USERDATA.ADM userdata2.gpx"

    I see you are using "perl -W" which throws some warnings I should fix, but the output should be OK.
    I guess from the CRs in your debug.txt you are using Windows while I am using Linux. I didn't think that should matter, but maybe it does.
    Try adding "binmode(IN);" following "open(..) at line 37.

    Andrew

     

    Last edit: Andrew Daviel 2013-12-10
  • Christopher Dawes

    Brilliant, thanks, i never thought to try the resulting GPX but you are right it's pretty much there. There are some very weird points that i need to investigate why they are there as they didn't show up on the device but i'm sure i can just remove those. Thanks again for such a great tool.

     
  • Andrew Daviel

    Andrew Daviel - 2013-12-12

    I've updated the tool to fix the Perl warnings, and added "binmode" which
    I thought might fix your checksum issue on Windows.
    However, I ran it under Strawberry Perl on Vista and got the same output
    as on Linux - no warnings about mismatched checksums which I saw in your debug
    output. So I'm not sure what the problem is, but binmode should do no harm.
    (I don't actually know how the checksum is defined; I just wrote some code
    that gets the same answer).

    What are the "weird points" ?
    Your data seems quite similar to what my GPSmap generates, and the GPX from that mostly matches what Garmin's "Basecamp" program exports.

     

Log in to post a comment.