Printable version
This Page
All Pages
PDF (1.4 MB)


Batch conversions

CoordTrans can convert coordinates in one text file and store it to a new text file. If you have your coordinates in Access, Excel or some other format, export them to a (csv) text file first. Then run CoordTrans to make the conversion. And finally import the new generated text file back to the original program.

Start by setting up the source and destination coordinate systems. In this example, the source coordinate system is WGS84 and the destination coordinate system is UTM so we'll start by selecting these. This is done in the main dialog, which you can see in image 1.1.

Illustration 1.1 - the main dialog

1. Select the format you want to convert from. In this case WGS84 is selected. Take a look here for more information on how to select WGS84.
2. Select the format you want to convert to. In this case UTM 32N. Take a look here for more information on how to select UTM.
3. Click From file... to launch the batch conversion dialog.

Illustration 2.1 - Configuring the batch converter

1. Select file to convert
Start by selecting an input file by clicking "Browse..." in the section "1. Select file to convert". Here you can browse for a CSV file that you have created e.g. from Access, Excel etc. Locate a file that contains coordinates in WGS84 and select that file.

2. Input format
If Field names in first row is checked, CoordTrans assumes the first row in the file contains the names of each column.

Set which sign separates each field in the input file. Can be set to TAB, comma, semi-colon and fixed length.

Set if the input coordinates are in decimal degree format (e.g. 45.50) or in NMEA format (e.g 4530.000). You can create your own formats here.

Select which columns contain longitude and which contain latitude.

Test settings. A very usefull function to test if all settings are correct to read your file. When you click on Test settings, the selected columns of first three rows of your input file should be shown. If not, you need to correct your settings accordingly.

3. Select output file
Select output file by clicking the "Browse..." button.

4. Output format
If Write old + new coordinates is checked both the input coordinates and the converted coordniates will be written to the output file.

Select an output format. You can create your own formats here.

5. Convert!
Press Go! to start conversion

Save and Load settings

If you have set up a conversion that you use often or plan to use in the future, you can save the settings. To do this, set up the conversion as instructed above, select "File->Save Settings" and select a file where the conversion should be saved. The saved conversion is independent from the application configuration, i.e. all coordinate formats and coordinate systems are stored in the file. This means that you can load conversions even though you don't have the coordinate formats or the coordinate systems defined in your own application.

Command Line

If you do batch conversions frequently, you might want to automize the conversion procedure. In CoordTrans v2.0 it is possible to do batch conversions from the command line using an input file, an output file and a saved batch conversion settings file. To use the command line, first save a batch conversion settings file - using the instructions above - and then execute the conversion by writing

CoordTrans [settings-file] [input-file] [output-file]
where settings-file is the saved batch conversion settings file, input-file is the file containing the coordinates in the source coordinate system and output-file is the resulting file. For instance, if you have saved a batch-conversion to a file called "WGS84_To_UTM32N.ctxml" and have a file with WGS84 coordinates called "WGS84_Coordinates.txt", then the command to convert would be
CoordTrans WGS84_To_UTM32N WGS84_Coordinates.txt UTM34N_Coordinates.txt

© 2018 Franson Technology AB, All rights reserved, Contact | | Affiliate