Add PCT tracks and update converter to include GPX simplication

This commit is contained in:
2019-11-23 19:10:40 +01:00
parent c3090f5286
commit 5afb60da5d
6 changed files with 107252 additions and 26 deletions

View File

@@ -124,9 +124,7 @@ class Project extends PhpObject {
case 2: $asProject['mode'] = self::MODE_HISTO; break;
}
if(!Converter::isGeoJsonValid($asProject['geofile'])) {
(new Converter())->convertToGeoJson($asProject['geofile']);
}
if(!Converter::isGeoJsonValid($asProject['geofile'])) Converter::convertToGeoJson($asProject['geofile']);
$asProject['geofile'] = Spot::addTimestampToFilePath(Geo::getFilePath($asProject['geofile'], GeoJson::EXT));
$asProject['codename'] = $sCodeName;