halmaia / SL3Reader

It is a tiny C# app, which is able to read SL3 sonar log files made by Lowrance & Simard devices and export the frame headers into a CSV text file. For details see & cite the following publication: Halmai, Ákos, Alexandra Gradwohl–Valkay, Szabolcs Czigány, Johanna Ficsor, Zoltán Á. Liptay, Kinga Kiss, Dénes Lóczy, and Ervin Pirkhoffer. 2020. "Applicability of a Recreational-Grade Interferometric Sonar for the Bathymetric Survey and Monitoring of the Drava River" ISPRS International Journal of Geo-Information 9, no. 3: 149. https://doi.org/10.3390/ijgi9030149 https://www.mdpi.com/2220-9964/9/3/149
GNU General Public License v3.0
12 stars 4 forks source link

Make sure that '.' is always used as decimal separator #2

Closed wolpl closed 2 years ago

wolpl commented 2 years ago

Prior to this fix, the decimal separator used for floating point numbers in the exported .csv file was dependant on the locale of the machine running the program. On German machines this meant, that , was used as a decimal separator, which resulted in an invalid output file, because , also is the csv field separator.

Using CultureInfo.InvariantCulture enforces, that . is always used as the decimal separator.