Esempio n. 1
0
 public void InitPipes()
  {
      if (((App)System.Windows.Application.Current).arcmap == null)                     //数据为空,从数据库中导入数据
      {
          ArcMap map = new ArcMap();
          map.LoadRainCover();
          map.LoadRainPipe();
      }
      listRains = ((App)System.Windows.Application.Current).arcmap.RainPipeList;
      mListVLine = new List<VectorLine>(listRains.Count + Constants.PIPEBUFFERSIZE);
      addpipes();                         //图层中添加管道
  }
Esempio n. 2
0
        //初始化相关变量---》》》》》》》》》》进行坐标转换加速
        public void InitRainJuncs()
        {

            if (((App)System.Windows.Application.Current).arcmap == null)
            {
                //加载雨水检查井
                ArcMap map = new ArcMap();
                map.LoadRainCover();
                listRains = ((App)System.Windows.Application.Current).arcmap.RainCoverList;
            }
            else
            {
                listRains = ((App)System.Windows.Application.Current).arcmap.RainCoverList;
            }
           
            //将点坐标进行保存
            mListScreenpoint = new List<Point>(listRains.Count+Constants.JUNCBUFFERSIZE);
            addjuncs();
        }