Skip to content
Snippets Groups Projects
Commit fd3e972c authored by Антон Кудряшов's avatar Антон Кудряшов
Browse files

Merge branch 'master' of https://github.com/anddebol/Mes_wind into anton

parents 2fe7e7dd a4ce4887
No related branches found
No related tags found
No related merge requests found
No preview for this file type
<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>
<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>
<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>
No preview for this file type
No preview for this file type
......@@ -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++)
{
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment