marked ocprop triggers

This commit is contained in:
following
2013-03-27 22:17:37 +01:00
parent 92cee91169
commit b5d24350dc
23 changed files with 134 additions and 98 deletions

View File

@@ -66,6 +66,7 @@ class coordinate
// d° mm.mmm
function getDecimalMinutes()
{
// Ocprop: ([N|S].*?)'
$nLat = $this->nLat;
$bLatN = ($nLat < 0) ? false : true;
if (!$bLatN) $nLat = -$nLat;
@@ -76,6 +77,7 @@ class coordinate
else
$sLat = 'S ' . sprintf("%02d", $nLatDeg) . '° ' . sprintf("%06.3f", $nLatMin) . '\'';
// Ocprop: ([E|W].*?)&#039;
$nLon = $this->nLon;
$bLonE = ($nLon < 0) ? false : true;
if (!$bLonE) $nLon = -$nLon;