示例#1
0
 public override void  DebugPrint(string Directory, Dictionary <int, Catchment> Catchments)
 {
     if (ExtraOutput)
     {
         using (ShapeWriter sw = new ShapeWriter(System.IO.Path.Combine(Directory, Name + "_debug")))
         {
             for (int i = 0; i < Data.Rows.Count; i++)
             {
                 if (Catchments.ContainsKey((int)Data.Rows[i][0]))
                 {
                     Geometry.GeoRefData gd = new Geometry.GeoRefData()
                     {
                         Geometry = Catchments[(int)Data.Rows[i][0]].Geometry, Data = Data.Rows[i]
                     };
                     sw.Write(gd);
                 }
             }
         }
     }
 }
示例#2
0
 public override void  DebugPrint(string Directory, Dictionary<int,Catchment> Catchments)
 {
   if (ExtraOutput)
   {
     using (ShapeWriter sw = new ShapeWriter(System.IO.Path.Combine(Directory, Name + "_debug")))
     {
       for (int i = 0; i < Data.Rows.Count; i++)
       {
         if (Catchments.ContainsKey((int)Data.Rows[i][0]))
         {
           Geometry.GeoRefData gd = new Geometry.GeoRefData() { Geometry = Catchments[(int)Data.Rows[i][0]].Geometry, Data = Data.Rows[i] };
           sw.Write(gd);
         }
       }
     }
   }
 }