/**
  * Returns the string representation of the CWPoint Formats DD, DMM (same as CW), DMS, UTM
  *
  * @return string representation of CWPoint
  */
 public String toString(int format) {
   if (!isValid()) return MyLocale.getMsg(999, "not set");
   switch (format) {
     case DD:
       return getNSLetter()
           + " "
           + STRreplace.replace(getLatDeg(format), "-", "")
           + "° "
           + getEWLetter()
           + " "
           + STRreplace.replace(getLonDeg(format), "-", "")
           + "°";
     case CW:
       format = DMM;
       return getNSLetter()
           + " "
           + getLatDeg(format)
           + "° "
           + getLatMin(format)
           + " "
           + getEWLetter()
           + " "
           + getLonDeg(format)
           + "° "
           + getLonMin(format);
     case DMM:
       return getNSLetter()
           + " "
           + getLatDeg(format)
           + "° "
           + getLatMin(format)
           + " "
           + getEWLetter()
           + " "
           + getLonDeg(format)
           + "° "
           + getLonMin(format);
     case DMS:
       return getNSLetter()
           + " "
           + getLatDeg(format)
           + "° "
           + getLatMin(format)
           + "\' "
           + getLatSec(format)
           + "\" "
           + getEWLetter()
           + " "
           + getLonDeg(format)
           + "° "
           + getLonMin(format)
           + "\' "
           + getLonSec(format)
           + "\"";
     case UTM:
       return getUTMZone() + " E " + getUTMEasting() + " N " + getUTMNorthing();
     case LON_LAT:
       return Common.DoubleToString(lonDec, 8) + "," + Common.DoubleToString(latDec, 8);
     case LAT_LON:
       return Common.DoubleToString(latDec, 8) + "," + Common.DoubleToString(lonDec, 8);
     case GK:
       return getGermanGkCoordinates();
     default:
       return "Unknown Format: " + format;
   }
 }