Exemple #1
0
        public static string getLonStringCN(DegreeMinutes lon)
        {
            String co_ordinate = "";

            if (lon.GetDecimalDegrees() > 0)
            {
                co_ordinate += String.Format("  E {0}° {1}", lon.Degrees, lon.Minutes.ToString("0.000", CultureInfo.InvariantCulture));
            }
            else
            {
                co_ordinate += String.Format("  W {0}° {1}", lon.Degrees * -1, lon.Minutes.ToString("0.000", CultureInfo.InvariantCulture));
            }

            return(co_ordinate);
        }
Exemple #2
0
        public static string getLatString(DegreeMinutes lat)
        {
            String co_ordinate = "";

            if (lat.GetDecimalDegrees() > 0)
            {
                co_ordinate += String.Format(Catalog.GetString("N {0}° {1}"), lat.Degrees, lat.Minutes.ToString("0.000", CultureInfo.InvariantCulture));
            }
            else
            {
                co_ordinate += String.Format(Catalog.GetString("S {0}° {1}"), lat.Degrees * -1, lat.Minutes.ToString("0.000", CultureInfo.InvariantCulture));
            }

            return(co_ordinate);
        }