예제 #1
0
파일: test.cs 프로젝트: dekz/cartographer
 public void ConversionTest1Function()
 {
     Dms testDMS = new Dms(24.25);
     Assert.AreEqual(24, testDMS.m_degrees);
     Assert.AreEqual(15, testDMS.m_minutes);
     Assert.AreEqual(0, testDMS.m_seconds);
 }
예제 #2
0
파일: test.cs 프로젝트: dekz/cartographer
 public void ConversionTest2Function()
 {
     Dms testDMS = new Dms(102.31);
     Assert.AreEqual(102, testDMS.m_degrees);
     Assert.AreEqual(18, testDMS.m_minutes);
     Assert.AreEqual(35.9994, testDMS.m_seconds, 0.001);
 }
예제 #3
0
        public Cartographer()
        {
            m_Electorates = new List<Electorate>();
            ge = new ApplicationGEClass();
            ShowWindowAsync(ge.GetMainHwnd(), 0);
            InitializeComponent();
            SetParent(ge.GetRenderHwnd(), this.Handle.ToInt32());
            ResizeGoogleControl();
            ElectorateImporter g_elecImporter = new ElectorateImporter();
            g_elecImporter.ParseXLS();
            g_elecImporter.ParseMID("data/QLD_Federal_Electoral_Boundaries.mid");
            g_elecImporter.ParseMIF("data/QLD_Federal_Electoral_Boundaries.mif");
            m_Electorates = g_elecImporter.MergeData();

            Dms _test = new Dms(-27.579269);
            Console.Out.WriteLine(_test.m_minutes);
        }