Beispiel #1
0
        public void ReadWellsFromShape()
        {
            ShapeReader SR        = new ShapeReader(_config.WellShapeFile);
            DataTable   _wellData = SR.Data.Read();

            SR.Dispose();

            foreach (DataRow dr in _wellData.Rows)
            {
                IrrigationWell IW = new IrrigationWell(dr[_config.IdHeader].ToString());
                IW.X = Convert.ToDouble(dr[_config.XHeader]);
                IW.Y = Convert.ToDouble(dr[_config.YHeader]);

                IIntake I = IW.AddNewIntake(1);

                IW.MaxDepth = Convert.ToDouble(dr[_config.MaxDepthHeader]);
                IW.MaxRate  = Convert.ToDouble(dr[_config.MaxRateHeader]);

                Screen CurrentScreen = new Screen(I);
                CurrentScreen.DepthToBottom = Convert.ToDouble(dr[_config.BottomHeader]);
                CurrentScreen.DepthToTop    = Convert.ToDouble(dr[_config.TopHeader]);
                _wells.Add(IW);
            }
            _wellData.Dispose();
        }
Beispiel #2
0
    public void ReadWellsFromShape()
    {
      ShapeReader SR = new ShapeReader(_config.WellShapeFile);
      DataTable _wellData = SR.Data.Read();
      SR.Dispose();
      
      foreach (DataRow dr in _wellData.Rows)
      {
        IrrigationWell IW = new IrrigationWell(dr[_config.IdHeader].ToString());
          IW.X =  Convert.ToDouble(dr[_config.XHeader]);
          IW.Y = Convert.ToDouble(dr[_config.YHeader]);

        IIntake I = IW.AddNewIntake(1);

        IW.MaxDepth = Convert.ToDouble(dr[_config.MaxDepthHeader]);
        IW.MaxRate = Convert.ToDouble(dr[_config.MaxRateHeader]);

        Screen CurrentScreen = new Screen(I);
        CurrentScreen.DepthToBottom =  Convert.ToDouble(dr[_config.BottomHeader]);
        CurrentScreen.DepthToTop = Convert.ToDouble(dr[_config.TopHeader]);
        _wells.Add(IW);
      }
      _wellData.Dispose();
    }