CoCoCo: COndor Coordinates COnverter - Version 2.1.0 CoCoCo is a basic tool to convert latitude and longitude into Condor XY coordinates The accuracy of the conversion is usually in the meter range. It can detect and read most Latitude/Longitude formats It can also perform conversions between different latitude and longitude formats It is compatible with the version 2 of Condor. Version 2.1 new features: - whitespaces are supported in the path to the Condor installation folder - improved accuracy when converting to sexagesimal degrees INSTALLATION CoCoCo can be installed anywhere (in a folder where the user has write access). Unzip the ZIP package in the desired folder, the folder must contain : CoCoCo.exe: executable file CoCoCo_README.txt: this file CoCoCo_LISEZMOI.txt: French version SampleBatch.txt: sample batch file SampleBatch_ORI.fpl: result of the conversion of the SampleBatch.txt file SampleBatch_ORI.cup: result of the conversion of the SampleBatch.txt file CoCoCo_form.txt: definitions for the dialog box zlibwapi.dll: library USE CoCoCo.exe works: - with a graphical interface (default) - only in command line interface mode (single-point) - in batch mode, if there is more than one turnpoint to process It is also possible to drag and drop a batch file on the CoCoCo icon (see below) GRAPHIC MODE This is the default mode when CoCoCo is started by double-clicking the icon or running the program from the command line without any argument The default configuration allows the conversion (Lat,Lon)->(X,Y). It is necessary to select a Condor landscape to do this conversion. The input formats accepted for (Lat,Lon) are described below The whitespace-separated sexagesimal degrees is not accepted It is possible to copy/paste into the input boxes for (Lat,Lon), resp (X,Y) By selecting different input.output formats (drop-down lists), it is possible to make all possible conversions. If you just want to convert between (Lat,Lon) formats, it is not necessary to select a landscape To perform the conversion click on the [Convert] button To copy the results to the clipboard, click on the [Copy] button If, when you click on [Convert], an input window turns red, the error message is visible by right-clicking in the window If you convert (Lat,Lon) -> (X,Y) : an info message is issued if you are outside the landscape SINGLE-POINT MODE (COMMAND LINE ONLY) The command line syntax is : > CoCoCo.exe [-help] [-v] [-debug] [-clip] [-cup] Landscape Latitude Longitude all [-options] are optional -help : displays the command line syntax -v : verbose -debug : debugging mode (if needed for support) -clip : the resulting XY coordinates will be copied to the clipboard in the .fpl format -cup : a .cup file will also be created (batch mode only) Landscape : the name of the landscape Latitude Longitude : supported formats are (examples are for TRAVNIK in Slovenia2) - decimal degrees (negative values for S & W ): 46.4205513 14.8083334 - sexagesimal degrees: 46°25'13.98["]N 14°48'30.0["]E NOTE: " is a special character for DOS; it is recommended no to use it. - sexagesimal degrees (whitespace-separated): 46 25 13.98[ ]N 14 48 30.0[ ]E - SEE YOU format (.cup) (leading zeros required): 4625.233N 01448.500E - Condor "F2" format (leading zeros required): 46.25.233N 014.48.500E - IGC file format (leading zeros required) : 4625233N 01448500E NOTE : If you are pasting lat/lon from some websites, be aware that they may use some UNICODE characters for degrees, minutes and seconds. If it is the case you will have to replace them by the equivalent ASCII characters (the ones you get by typing °, ' and " on your keyboard) The conversion is made directly using the WGS-84 UTM formulas. BATCH MODE The 2 possible batch mode syntaxes are: > CoCoCo.exe -batch [-v] [-debug] (-cup] Landscape BatchFile [OutputFile] BatchFile : name of the text file from which coordinates will be read OutputFile : name of the file to which the Condor coordinates will be written if omitted, same name as BatchFile with extension .fpl You can then cut and paste from that file to the .fpl file > CoCoCo.exe [-v] [-debug] [-cup] BatchFile OutputFile will have the same name as BatchFile with extension .fpl Batch file format: first line : Landscape=LandscapeName (ignored if Landscape is specified on the command line) then, on each line : WPNumber WPName WPLatitude WPLongitude WPAltitude (whitespace- or comma-separated) All Lat/Lon formats are supported except the whitespace-separated sexagesimal degrees SUPPORT Please report any bugs to: cotaco@marc-till.com ACKNOWLEDGEMENTS The GUI uses components from "tiny file dialogs" under a zlib license http://https://sourceforge.net/projects/tinyfiledialogs/ The Cpw library is open-source software, licensed under the Lua License. https://mathies.com/cpw/about.html DISCLAIMER Copyright (C) 2022 Marc TILL This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated. 2. This notice may not be altered or removed from any distribution.