OpenSfM icon indicating copy to clipboard operation
OpenSfM copied to clipboard

Locale problem in TracksManager

Open borsh opened this issue 3 years ago • 0 comments

Hello, InstanciateFromStreamV2(S& fstream) uses std::stod, which in Russian locale expects floating point delimiter to be "," (not "."). So, all point coordinates (x,y) appears to be zeros, and reconstruction fails (tracks.csv uses "." delimiter). As a quick hack, I added
std::locale().global(std::locale("C")); to the beginning of function, which fixes the problem.

borsh avatar May 26 '21 11:05 borsh