Cave Converter is written in Java and is available as a JAR file. You will need a Java runtime (v6 or later) installed on your computer to run the converter command line tool. The CaveConverter.jar file can be run with the following command line arguments:
The first argument is the name of the file containing the data you want to convert, and second argument is the name of the file you want to be created in the new format. The third and fourth arguments are single letter format codes to indicate the input and output data formats respectively. The format codes are as follows:
Optionally, any of the following can be specified as additional arguments:
If no splay option is specified then splays are output by default in Survex files, but are excluded by default from Toporobot files (because Toporobot file export does not distinguish between splays and other legs, all splays exported to this file format become legs). With the anonymous splays option, Survex files will be output using a '-' character for any splays to-station. This will also cause the command '*alias station - ..' to be written into every series in the Survex file. With anonymous to-stations, the splays do not need to be indicated using '*FLAGS SPLAY' in the output.
If no charset option is specified then UTF8 is assumed. Any Java supported characterset code can be specified. e.g. For Windows Latin-1, use Cp1252. Follow this link for a full list of Java character set codes. You need to specify the correct character set if your input file contains any characters which are not part of the standard alphanumeric+common punctuation set of characters. e.g. accented characters.
Here are some example command lines to illustrate some useful conversions:
Some example Windows batch files are included in the download to illustrate the most useful conversions. You can edit the file names in these batch files to the names of the files you want to convert and then run the converter by double-clicking on the batch file in Windows Explorer. If you don't get any output when running the converter from a batch file then run the program from a command prompt rather than double clicking on a batch file and you will see the errors output. Send me your data file and I will work on a bug fix. I can be contacted by email: drfootleg@gmail.com
Return to the Cave Converter Home Page.