Exemple #1
0
 private void LoadProvider(double lat, double lng, double size)
 {
     if (layerListCmboBx.SelectedItem.ToString() == "Linz Parcel")
     {
         LinzParcel_WFS linzParcel = new LinzParcel_WFS();
         linzParcel.DrawXmlData(lat, lng, size);
     }
     if (layerListCmboBx.SelectedItem.ToString() == "Canterburry Contours")
     {
         double latNztm = new double();
         double LngNztm = new double();
         NZGD2000_NZTM.geod_nztm(AngleConvertion.Deg2Rad(lat), AngleConvertion.Deg2Rad(lng), ref latNztm, ref LngNztm);
         Cantebury_Maps.ChCh7671_WFS chch7671 = new Cantebury_Maps.ChCh7671_WFS();
         chch7671.DrawXmlData(latNztm, LngNztm, size);
         //Cantebury_Maps.ChCh7675_WFS chch7675 = new Cantebury_Maps.ChCh7675_WFS();
         //chch7675.DrawXmlData(lat, lng, size);
         Cantebury_Maps.ChCh7676_WFS chch7676 = new Cantebury_Maps.ChCh7676_WFS();
         chch7676.DrawXmlData(latNztm, LngNztm, size);
         Cantebury_Maps.ChCh7677_WFS chch7677 = new Cantebury_Maps.ChCh7677_WFS();
         chch7677.DrawXmlData(latNztm, LngNztm, size);
         Cantebury_Maps.ChCh7678_WFS chch7678 = new Cantebury_Maps.ChCh7678_WFS();
         chch7678.DrawXmlData(latNztm, LngNztm, size);
         Cantebury_Maps.ChCh7682_WFS chch7682 = new Cantebury_Maps.ChCh7682_WFS();
         chch7682.DrawXmlData(latNztm, LngNztm, size);
         Cantebury_Maps.ChCh8165_WFS chch8165 = new Cantebury_Maps.ChCh8165_WFS();
         chch8165.DrawXmlData(latNztm, LngNztm, size);
     }
 }
 static TMProjection Get_NZTM_Projection()
 {
     if (!initiallized)
     {
         projection = new TMProjection();
         TMProj(ref projection, NZTM_A, NZTM_RF, AngleConvertion.Deg2Rad(NZTM_CM), NZTM_SF, AngleConvertion.Deg2Rad(NZTM_OLAT), NZTM_FE, NZTM_FN, 1.0);
         initiallized = true;
     }
     return(projection);
 }