Ejemplo n.º 1
0
        static void TestNormalize()
        {
            CW("*** Lon");
            CW(DataExtensions.NormalizeLongitude(0));
            CW(DataExtensions.NormalizeLongitude(190));
            CW(DataExtensions.NormalizeLongitude(-190));
            CW(DataExtensions.NormalizeLongitude(-180));
            CW(DataExtensions.NormalizeLongitude(-181));
            CW(DataExtensions.NormalizeLongitude(180));
            CW(DataExtensions.NormalizeLongitude(181));
            CW(DataExtensions.NormalizeLongitude(200));
            CW(DataExtensions.NormalizeLongitude(-200));
            CW(DataExtensions.NormalizeLongitude(360));

            CW("*** Lat");
            CW(DataExtensions.NormalizeLatitude(0));
            CW(DataExtensions.NormalizeLatitude(-90));
            CW(DataExtensions.NormalizeLatitude(-91));
            CW(DataExtensions.NormalizeLatitude(90));
            CW(DataExtensions.NormalizeLatitude(91));
            CW(DataExtensions.NormalizeLatitude(120));
            CW(DataExtensions.NormalizeLatitude(-120));
            CW(DataExtensions.NormalizeLatitude(180));
        }