Esempio n. 1
0
 /// <summary>
 /// Converts SimpleVolumesResponse data into SummaryVolumesResult data.
 /// </summary>
 private SummaryVolumesResult ConvertResult(SimpleVolumesResponse result)
 {
     return(SummaryVolumesResult.Create(
                BoundingBox3DGridHelper.ConvertExtents(result.BoundingExtentGrid),
                result.Cut ?? 0.0,
                result.Fill ?? 0.0,
                result.TotalCoverageArea ?? 0.0,
                result.CutArea ?? 0.0,
                result.FillArea ?? 0.0));
 }
Esempio n. 2
0
 /// <summary>
 /// Converts ProgressiveVolumesResponse data into SummaryVolumesResult data.
 /// </summary>
 private ProgressiveSummaryVolumesResult ConvertResult(ProgressiveVolumesResponse result)
 {
     return(ProgressiveSummaryVolumesResult.Create(
                result.Volumes.Select(x =>
                                      ProgressiveSummaryVolumesResultItem.Create(x.Date,
                                                                                 SummaryVolumesResult.Create(BoundingBox3DGridHelper.ConvertExtents(x.Volume.BoundingExtentGrid),
                                                                                                             x.Volume.Cut ?? 0.0,
                                                                                                             x.Volume.Fill ?? 0.0,
                                                                                                             x.Volume.TotalCoverageArea ?? 0.0,
                                                                                                             x.Volume.CutArea ?? 0.0,
                                                                                                             x.Volume.FillArea ?? 0.0))).ToArray()));
 }