コード例 #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);
     }
 }
コード例 #2
0
 public ChCh7678_WFS GetInstance()
 {
     if (instance == null)
     {
         instance = new ChCh7678_WFS();
     }
     return(instance);
 }