Commit 4e9913cd authored by Michael Osetinski's avatar Michael Osetinski
Browse files

Using "/" instead of File.separator (see #10)

parent a4d246fd
Pipeline #89993 passed with stage
in 1 minute and 58 seconds
......@@ -143,17 +143,17 @@ public class ScenarioUpload {
SimulationScenario scenario = null;
if (mapId == null) {
scenario = this.parseNewScenarioAndMap(simTempFilePath, File.separator + osmTempFilePath);
scenario = this.parseNewScenarioAndMap(simTempFilePath, "/" + osmTempFilePath);
} else {
this.pathFinder.setMapId(mapId);
this.pathFinder.setSectors(new SectorBO().getSectors(mapId));
try {
ParserSettings pSettings = new ParserSettings(File.separator + osmTempFilePath, ZCoordinates.ALLZERO);
ParserSettings pSettings = new ParserSettings("/" + osmTempFilePath, ZCoordinates.ALLZERO);
scenario = prepareScenario(simTempFilePath, WorldModel.prepareWorldMap(pSettings));
} catch (Exception e) {
// In case uploaded sim file referenced coordinates which are not in previous parsed map,
// try to parse the uploaded map and initialize the scenario
scenario = this.parseNewScenarioAndMap(simTempFilePath, File.separator + osmTempFilePath);
scenario = this.parseNewScenarioAndMap(simTempFilePath, "/" + osmTempFilePath);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment