diff --git a/.vs/MES_Wind/v14/.suo b/.vs/MES_Wind/v14/.suo index 503d76618e75534e109e33d6dba8772e21bcd781..68501b9283a1c92ef823b8fa1188f46f2557be86 100644 Binary files a/.vs/MES_Wind/v14/.suo and b/.vs/MES_Wind/v14/.suo differ diff --git a/MES_Wind/MES_test/clim5_test.asc.aux.xml b/MES_Wind/MES_test/clim5_test.asc.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..dbfecd04cfba2e0e37df49ab0a3f251c78b6cfc2 --- /dev/null +++ b/MES_Wind/MES_test/clim5_test.asc.aux.xml @@ -0,0 +1,10 @@ +<PAMDataset> + <PAMRasterBand band="1"> + <Metadata> + <MDI key="STATISTICS_MAXIMUM">24</MDI> + <MDI key="STATISTICS_MEAN">22</MDI> + <MDI key="STATISTICS_MINIMUM">20</MDI> + <MDI key="STATISTICS_STDDEV">1,21382391452789</MDI> + </Metadata> + </PAMRasterBand> +</PAMDataset> diff --git a/MES_Wind/MES_test/u_test.asc.aux.xml b/MES_Wind/MES_test/u_test.asc.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..ecf36bf233f53fda007553ec6494ad307b361437 --- /dev/null +++ b/MES_Wind/MES_test/u_test.asc.aux.xml @@ -0,0 +1,10 @@ +<PAMDataset> + <PAMRasterBand band="1"> + <Metadata> + <MDI key="STATISTICS_MAXIMUM">40</MDI> + <MDI key="STATISTICS_MEAN">8.9222624868993</MDI> + <MDI key="STATISTICS_MINIMUM">-16.645999908447</MDI> + <MDI key="STATISTICS_STDDEV">12,1423559188843</MDI> + </Metadata> + </PAMRasterBand> +</PAMDataset> diff --git a/MES_Wind/MES_test/v_test.asc.aux.xml b/MES_Wind/MES_test/v_test.asc.aux.xml new file mode 100644 index 0000000000000000000000000000000000000000..56eaec454b2385f4657be5a6d38f23fd1f3a8f0c --- /dev/null +++ b/MES_Wind/MES_test/v_test.asc.aux.xml @@ -0,0 +1,10 @@ +<PAMDataset> + <PAMRasterBand band="1"> + <Metadata> + <MDI key="STATISTICS_MAXIMUM">19.999000549316</MDI> + <MDI key="STATISTICS_MEAN">6.9478149894997</MDI> + <MDI key="STATISTICS_MINIMUM">0</MDI> + <MDI key="STATISTICS_STDDEV">5,63996171951294</MDI> + </Metadata> + </PAMRasterBand> +</PAMDataset> diff --git a/MES_Wind/bin/Debug/MES_Wind.exe b/MES_Wind/bin/Debug/MES_Wind.exe index 5f1455ebb25671a2311b7f472bafa8bab5b44534..7346c09b56e31dfd10af2ff3f8849b444c42fae2 100644 Binary files a/MES_Wind/bin/Debug/MES_Wind.exe and b/MES_Wind/bin/Debug/MES_Wind.exe differ diff --git a/MES_Wind/bin/Debug/MES_Wind.pdb b/MES_Wind/bin/Debug/MES_Wind.pdb index 8ad34910943986f957ef34691ef2c610b6f47f5e..42af6b19f6aa9183e51535949086d6b134754f8c 100644 Binary files a/MES_Wind/bin/Debug/MES_Wind.pdb and b/MES_Wind/bin/Debug/MES_Wind.pdb differ diff --git a/MES_Wind/frmMain.cs b/MES_Wind/frmMain.cs index d8d64380bddcca88455a1d49bda5436a1fb2872a..51598ec5065d197c27737c3cf724af6c86154f6e 100644 --- a/MES_Wind/frmMain.cs +++ b/MES_Wind/frmMain.cs @@ -186,8 +186,8 @@ namespace MES_Wind //use the first raster layer in the map u_rasterLayer = map1.GetRasterLayers()[0]; v_rasterLayer = map1.GetRasterLayers()[1]; - clim5_rasterLayer = map1.GetRasterLayers()[3]; - clim10_rasterLayer = map1.GetRasterLayers()[4]; + clim5_rasterLayer = map1.GetRasterLayers()[2]; + clim10_rasterLayer = map1.GetRasterLayers()[3]; //get the powerline line layer IMapLineLayer pwlLayer = default(IMapLineLayer); @@ -206,18 +206,19 @@ namespace MES_Wind foreach (IFeature feature in pwlineSet.Features) { List<CheckPoint> lineCheckList = new List<CheckPoint>(); + //get associated attributes + DataRow featureData = feature.DataRow; + int id = int.Parse(featureData["PW_ID"].ToString()); + int year = int.Parse(featureData["Year"].ToString()); + double height = double.Parse(featureData["height"].ToString()); + int power = int.Parse(featureData["Power"].ToString()); LineString linestr = feature.BasicGeometry as LineString; if (linestr != null) { // case if powerline consists of one line // get coordinates list IList<Coordinate> points = linestr.Coordinates; IFeature brklineFeature = brklineSet.AddFeature(linestr); - //get associated attributes - DataRow featureData = feature.DataRow; - int id = int.Parse(featureData["PW_ID"].ToString()); - int year = int.Parse(featureData["Year"].ToString()); - double height = double.Parse(featureData["height"].ToString()); - int power = int.Parse(featureData["Year"].ToString()); + // cycle throw all points in line for (int i=1; i< points.Count; i++) { diff --git a/MES_Wind/obj/Debug/MES_Wind.csproj.GenerateResource.Cache b/MES_Wind/obj/Debug/MES_Wind.csproj.GenerateResource.Cache index 2519674b69188d02cab962f1e4ea362abfbc3dc7..90f74de816a793b9fbf8a88ff760525e0107a191 100644 Binary files a/MES_Wind/obj/Debug/MES_Wind.csproj.GenerateResource.Cache and b/MES_Wind/obj/Debug/MES_Wind.csproj.GenerateResource.Cache differ diff --git a/MES_Wind/obj/Debug/MES_Wind.csprojResolveAssemblyReference.cache b/MES_Wind/obj/Debug/MES_Wind.csprojResolveAssemblyReference.cache index d5f6c22ffb8e82ddfda4a47b3fdfe5c6b7bea630..9b41c699e05e48978f34e427c1a40f71ad5c7656 100644 Binary files a/MES_Wind/obj/Debug/MES_Wind.csprojResolveAssemblyReference.cache and b/MES_Wind/obj/Debug/MES_Wind.csprojResolveAssemblyReference.cache differ diff --git a/MES_Wind/obj/Debug/MES_Wind.exe b/MES_Wind/obj/Debug/MES_Wind.exe index 5f1455ebb25671a2311b7f472bafa8bab5b44534..7346c09b56e31dfd10af2ff3f8849b444c42fae2 100644 Binary files a/MES_Wind/obj/Debug/MES_Wind.exe and b/MES_Wind/obj/Debug/MES_Wind.exe differ diff --git a/MES_Wind/obj/Debug/MES_Wind.pdb b/MES_Wind/obj/Debug/MES_Wind.pdb index 8ad34910943986f957ef34691ef2c610b6f47f5e..42af6b19f6aa9183e51535949086d6b134754f8c 100644 Binary files a/MES_Wind/obj/Debug/MES_Wind.pdb and b/MES_Wind/obj/Debug/MES_Wind.pdb differ