diff options
| author | Keith Packard <keithp@keithp.com> | 2010-09-28 17:56:49 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-09-28 17:56:49 -0700 |
| commit | f0d1468ceae065f0cdae6f6ae3323dec5636f073 (patch) | |
| tree | 58172a481cfae7d68c8b08c524e72440eed2145c /ao-tools/altosui/Altos.java | |
| parent | 5a119fd92532d53e552efe1f7c61e87181fcace0 (diff) | |
altosui: Add KML file export.
Command line has switches now, --kml and --csv
Export save dialog has combo box to select kml or csv result.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/Altos.java')
| -rw-r--r-- | ao-tools/altosui/Altos.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ao-tools/altosui/Altos.java b/ao-tools/altosui/Altos.java index 07bd01ae..997550e0 100644 --- a/ao-tools/altosui/Altos.java +++ b/ao-tools/altosui/Altos.java @@ -200,4 +200,11 @@ public class Altos { } return v * sign; } + + static String replace_extension(String input, String extension) { + int dot = input.lastIndexOf("."); + if (dot > 0) + input = input.substring(0,dot); + return input.concat(extension); + } } |
