Skip to content
Snippets Groups Projects
Commit 0b42510b authored by Debolskiy Andrey's avatar Debolskiy Andrey :bicyclist_tone5:
Browse files

minor before merge

parent d62ae138
No related branches found
No related tags found
No related merge requests found
......@@ -238,8 +238,20 @@ namespace MES_Wind
input.climateCellSize = climCellsize;
input.climateAffineCoefficients = climAffinecoeffs;
PRMLibrary.Output output = prmwind.CheckPower(input);
// new FeatureSet for resulting broken powerlines
//IFeatureSet brklineSet = new FeatureSet(FeatureType.Line);
// new FeatureSets for resulting broken powerlines
IFeatureSet brokenklineSet = new FeatureSet(FeatureType.Line);
IFeatureSet disabledPointSet = new FeatureSet(FeatureType.Point);
foreach (PRMLibrary.PowerStation disabledStation in output.disabledStations)
{
Coordinate coords = new Coordinate(disabledStation.coords.X, disabledStation.coords.Y);
DotSpatial.Topology.Point disabledPoint = new DotSpatial.Topology.Point(coords);
Feature disabledStationFeature = new Feature(disabledPoint);
disabledPointSet.AddFeature(disabledStationFeature);
}
foreach (PRMLibrary.Powerline diabledLine in output.disabledLines)
{
}
//DataTable dt = pwlineSet.DataTable;
//IFeatureSet brk_info = new FeatureSet(FeatureType.Line);
//brk_info = main_layer_function(pwlLayer, pwlineSet, u_rasterLayer, v_rasterLayer, clim15_rasterLayer, clim10_rasterLayer, clim5_rasterLayer);
......
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