Add function to rebuild GeoJSON
This commit is contained in:
1 parent
bc75cbc17d
commit
1d90b11aef
1 file changed
+4
@@ -744,6 +744,10 @@ class Spot extends Main
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function buildGeoJSON($sCodeName) {
|
||||||
|
return Converter::convertToGeoJson($sCodeName);
|
||||||
|
}
|
||||||
|
|
||||||
public static function decToDms($dValue, $sType) {
|
public static function decToDms($dValue, $sType) {
|
||||||
if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S'; //Latitude
|
if($sType=='lat') $sDirection = ($dValue >= 0)?'N':'S'; //Latitude
|
||||||
else $sDirection = ($dValue >= 0)?'E':'W'; //Longitude
|
else $sDirection = ($dValue >= 0)?'E':'W'; //Longitude
|
||||||
|
|||||||
Reference in new issue
Block a user