コード例 #1
0
    public void GetIDTest()
    {
      SoilCodesGrid target = new SoilCodesGrid(); // TODO: Initialize to an appropriate value
      string ShapeSoilCodes = @"D:\DK_information\DKDomainNodes_LU_Soil_codes.shp";
      target.BuildGrid(ShapeSoilCodes);
      int ec=0;
      List<int> errors = new List<int>();

      using (HydroNumerics.Geometry.Shapes.ShapeReader sr = new Geometry.Shapes.ShapeReader(ShapeSoilCodes))
      {
        foreach (var c in sr.GeoData)
        {
          if ((int)c.Data["GRIDID"] != target.GetID((IXYPoint)c.Geometry))
            errors.Add((int)c.Data["GRIDID"]);

        }
      }
         
        Assert.AreEqual(0,ec);
    
    }
コード例 #2
0
 public void LoadSoilCodesGrid(string ShapeFileName)
 {
     DaisyCodes = new SoilCodesGrid();
     DaisyCodes.BuildGrid(ShapeFileName);
 }
コード例 #3
0
 public void BuildGridTest()
 {
   SoilCodesGrid target = new SoilCodesGrid(); // TODO: Initialize to an appropriate value
   string ShapeSoilCodes = @"D:\DK_information\DKDomainNodes_LU_Soil_codes.shp";
   target.BuildGrid(ShapeSoilCodes);
 }
コード例 #4
0
 public void LoadSoilCodesGrid(string ShapeFileName)
 {
   DaisyCodes = new SoilCodesGrid();
   DaisyCodes.BuildGrid(ShapeFileName);
 }