GPX to GeoJson converter
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user