GPX to GeoJson converter

This commit is contained in:
2019-02-12 20:00:59 +01:00
parent b49445a85e
commit 50878503e5
9 changed files with 236739 additions and 189 deletions

View File

@@ -454,6 +454,12 @@ class Spot extends Main
}
}
public function convertGpxToGeoJson() {
$this->oClassManagement->incClass('converter', true);
$oConverter = new Converter($this->oProject);
return $oConverter->convertToGeoJson();
}
public static function DecToDMS($dValue, $sType='lat') {
if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S';
else $sDirection = ($dValue >= 0)?'E':'W';