Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#7 Track separation time in command line mode

closed
nobody
None
5
2008-11-07
2008-11-06
gcey
No

Generated GMAP (HTML) files contain several tracks.
AFAIK the track separation time can be set in the GUI,
but it cannot in the command line mode.

Discussion

  • Mario De Weerd
    Mario De Weerd
    2008-11-07

    There is a lot of functionality available in the GUIs that is not yet in the command line interface. For example, the filter functionality is lacking too.

    Given your feedback on the code, I think you can help with this. For example by writing the code that will define the options on one hand. And implementing part of the interpretation code.

    I added an option to define the separation time and the file split type. Here is an example of use:
    CALL ./BT747cmd.bat -f n/tst -b c:/BT747/in.csv --outtype CSV,NMEA
    CALL ./BT747cmd.bat --splittype DAY -f n/tst2 -b n/tst.nmea --outtype CSV,NMEA
    CALL ./BT747cmd.bat --splittype TRACK --timesplit 1 -f n/tst2 -b n/tst.nmea --outtype CSV,NMEA

    You could help for example by writing:

    accepts("splittype", "The way to split the input data: NOSPLIT, DAY or TRACK")
    .withRequiredArg().describedAs("SPLITTYPE");

    and

    if (options.has("splittype")) {
    String option = ((String) options.valueOf("splittype")).toUpperCase();
    if (option.equals("DAY")) {
    // DAY SPLITTING
    } else if (option.equals("TRACK")) {
    // TRACK SPLITTING
    } else {
    // DEFAULT: ONE FILE
    }
    }

    and I would add:
    c.setOutputFileSplitType(0); // Initialisation

    c.setOutputFileSplitType(1);
    c.setOutputFileSplitType(2);
    c.setOutputFileSplitType(0);

    1.60.24 is available with that code in it.

     
  • Mario De Weerd
    Mario De Weerd
    2008-11-07

    • status: open --> closed