- static boolean process_kml(File input) {
- AltosRecordSet set = record_set(input);
- if (set == null)
- return false;
-
- File output = Altos.replace_extension(input,".kml");
- System.out.printf("Processing \"%s\" to \"%s\"\n", input, output);
- if (input.equals(output)) {
- System.out.printf("Not processing '%s'\n", input);
- return false;
- } else {
- AltosWriter writer = open_kml(output);
- if (writer == null)
- return false;
- AltosFlightSeries series = make_series(set);
- series.finish();
- writer.write(series);
- writer.close();
- return true;
- }
- }
-