00001
00002
00003
00004
00005
00006
00007 #include "CoordSymbol.h"
00008 #include "EngaugeAssert.h"
00009 #include "FormatDegreesMinutesSecondsNonPolarTheta.h"
00010 #include "Logger.h"
00011 #include <qmath.h>
00012 #include <QRegExp>
00013 #include <QStringList>
00014
00015 FormatDegreesMinutesSecondsNonPolarTheta::FormatDegreesMinutesSecondsNonPolarTheta()
00016 {
00017 }
00018
00019 QString FormatDegreesMinutesSecondsNonPolarTheta::formatOutput (CoordUnitsNonPolarTheta coordUnits,
00020 double value,
00021 bool isNsHemisphere) const
00022 {
00023 LOG4CPP_INFO_S ((*mainCat)) << "FormatDegreesMinutesSecondsNonPolarTheta::formatOutput";
00024
00025
00026 ENGAUGE_ASSERT (coordUnits != COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW);
00027
00028 switch (coordUnits) {
00029 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS:
00030 return formatOutputDegreesMinutesSeconds (value);
00031
00032 case COORD_UNITS_NON_POLAR_THETA_DEGREES_MINUTES_SECONDS_NSEW:
00033 return formatOutputDegreesMinutesSecondsNsew (value,
00034 isNsHemisphere);
00035
00036 default:
00037 break;
00038 }
00039
00040 LOG4CPP_ERROR_S ((*mainCat)) << "FormatDegreesMinutesSecondsNonPolarTheta::formatOutput";
00041 ENGAUGE_ASSERT (false);
00042 return "";
00043 }
00044