TAS:Situace/Místa/Přehození souřadnic x a y/en: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
(založena nová stránka s textem „'''Correction within''' [https://wiki.solvertech.cz/wiki/TAS:Pokro%C4%8Dil%C3%A9/Pluginy/Input,_Output/Import/ScenarioImporter '''ScenarioImporter'''] '''(the client supplies non-valid data)'''“) |
(založena nová stránka s textem „Solution: In ScenarioImporter you need to use the following code: <code> 1 <ColumnsCalculated></code><br /> <code> 2 <string>stop2;x;dynamic;gpsx;dynamic;gpsy;;dynamicgpsx<dynamicgpsy?dynamicgpsx:dynamicgpsy</string></code><br /> <code> 3 <string>stop2;y;dynamic;gpsx;dynamic;gpsy;;dynamicgpsx<dynamicgpsy?dynamicgpsy:dynamicgpsx</string></code><br /> <code> 4 </ColumnsCalculated></code><br />“) |
||
Řádek 13: | Řádek 13: | ||
# Press "Update" to calculate the distances | # Press "Update" to calculate the distances | ||
'''Correction within''' [https://wiki.solvertech.cz/wiki/TAS:Pokro%C4%8Dil%C3%A9/Pluginy/Input,_Output/Import/ScenarioImporter '''ScenarioImporter'''] '''(the client supplies non-valid data)''' | '''Correction within''' [https://wiki.solvertech.cz/wiki/TAS:Pokro%C4%8Dil%C3%A9/Pluginy/Input,_Output/Import/ScenarioImporter/en '''ScenarioImporter'''] '''(the client supplies non-valid data)''' | ||
Basic: In the import data we receive GPS data from the client, but sometimes the x and y coordinates are swapped. The client's columns are named "gpsx" and "gpsy" | Basic: In the import data we receive GPS data from the client, but sometimes the x and y coordinates are swapped. The client's columns are named "gpsx" and "gpsy" |
Aktuální verze z 22. 8. 2022, 18:07
After user intervention (manual addition of coordinates) it sometimes happens that the x and y coordinates are swapped, which makes it impossible to calculate the distance matrix.
Note: In the context of Central Europe, the x-coordinate will always be smaller than the y-coordinate.
Manual correction:
- In the " Locations" tab, select the "X" and "Y" columns
- Sort the Y column by size - the location with the swapped coordinate will be first
- Copy the values in the X and Y columns into a auxiliary file (word, excel, notepad, whatever)
- Copy the value from column Y (from the auxiliary file) into column X - it is a smaller number (16,xxxx etc.) and press ENTER
- Copy the value from column X (from the auxiliary file) into column Y - it is a larger number (49,xxxx etc.) and press ENTER
- Press "Update" to calculate the distances
Correction within ScenarioImporter (the client supplies non-valid data)
Basic: In the import data we receive GPS data from the client, but sometimes the x and y coordinates are swapped. The client's columns are named "gpsx" and "gpsy"
Solution: In ScenarioImporter you need to use the following code:
1 <ColumnsCalculated>
2 <string>stop2;x;dynamic;gpsx;dynamic;gpsy;;dynamicgpsx<dynamicgpsy?dynamicgpsx:dynamicgpsy</string>
3 <string>stop2;y;dynamic;gpsx;dynamic;gpsy;;dynamicgpsx<dynamicgpsy?dynamicgpsy:dynamicgpsx</string>
4 </ColumnsCalculated>