Exemple #1
0
 private void CheckResponseContainsNullValues(SimpleVolumesResponse response)
 {
     response.Should().NotBeNull();
     response.Cut.Should().BeNull();
     response.Fill.Should().BeNull();
     response.CutArea.Should().BeNull();
     response.FillArea.Should().BeNull();
     response.TotalCoverageArea.Should().BeNull();
     response.BoundingExtentGrid.Should().BeEquivalentTo(BoundingWorldExtent3D.Null());
 }
Exemple #2
0
        private void CheckDefaultFilterToFilterSingleTAGFileResponse(SimpleVolumesResponse response)
        {
            //Was, response = {Cut:1.00113831634521, Fill:2.48526947021484, Cut Area:117.5652, FillArea: 202.9936, Total Area:353.0424, BoundingGrid:MinX: 537669.2, MaxX:537676.34, MinY:5427391.44, MaxY:5427514.52, MinZ: 1E+308, MaxZ:1E+308, BoundingLLH:MinX: 1E+308, MaxX:1E+308, MinY:1...
            const double EPSILON = 0.000001;

            response.Should().NotBeNull();
            response.Cut.Should().BeApproximately(574.1289522460937, EPSILON);
            response.Fill.Should().BeApproximately(1017.6427069946285, EPSILON);
            response.CutArea.Should().BeApproximately(10256.378800000002, EPSILON);
            response.FillArea.Should().BeApproximately(12345.848800000002, EPSILON);
            response.TotalCoverageArea.Should().BeApproximately(35238.348000000005, EPSILON);
        }
Exemple #3
0
        private void CheckDefaultFilterToFilterSingleCutCellAtOriginResponse(SimpleVolumesResponse response)
        {
            const double EPSILON = 0.000001;

            response.Should().NotBeNull();
            response.Cut.Should().BeApproximately(4.50 * SubGridTreeConsts.DefaultCellSize * SubGridTreeConsts.DefaultCellSize, EPSILON);
            response.Fill.Should().BeApproximately(0, EPSILON);
            response.CutArea.Should().BeApproximately(SubGridTreeConsts.DefaultCellSize * SubGridTreeConsts.DefaultCellSize, EPSILON);
            response.FillArea.Should().BeApproximately(0, EPSILON);
            response.TotalCoverageArea.Should().BeApproximately(SubGridTreeConsts.DefaultCellSize * SubGridTreeConsts.DefaultCellSize, EPSILON);

            response.BoundingExtentGrid.MinX.Should().BeApproximately(0, EPSILON);
            response.BoundingExtentGrid.MinY.Should().BeApproximately(0, EPSILON);
            response.BoundingExtentGrid.MaxX.Should().BeApproximately(SubGridTreeConsts.DefaultCellSize, EPSILON);
            response.BoundingExtentGrid.MaxY.Should().BeApproximately(SubGridTreeConsts.DefaultCellSize, EPSILON);
            response.BoundingExtentGrid.MinZ.Should().Be(Consts.NullDouble);
            response.BoundingExtentGrid.MaxZ.Should().Be(Consts.NullDouble);
        }
Exemple #4
0
        private void CheckDefaultFilterToFilterSingleTAGFileResponse(SimpleVolumesResponse response)
        {
            //Was, response = {Cut:1.00113831634521, Fill:2.48526947021484, Cut Area:117.5652, FillArea: 202.9936, Total Area:353.0424, BoundingGrid:MinX: 537669.2, MaxX:537676.34, MinY:5427391.44, MaxY:5427514.52, MinZ: 1E+308, MaxZ:1E+308, BoundingLLH:MinX: 1E+308, MaxX:1E+308, MinY:1...
            const double EPSILON = 0.000001;

            response.Should().NotBeNull();
            response.Cut.Should().BeApproximately(0.99982155303955178, EPSILON);
            response.Fill.Should().BeApproximately(2.4776475891113323, EPSILON);
            response.CutArea.Should().BeApproximately(113.86600000000001, EPSILON);
            response.FillArea.Should().BeApproximately(200.56600000000006, EPSILON);
            response.TotalCoverageArea.Should().BeApproximately(353.0424, EPSILON);

            response.BoundingExtentGrid.MinX.Should().BeApproximately(537669.2, EPSILON);
            response.BoundingExtentGrid.MinY.Should().BeApproximately(5427391.44, EPSILON);
            response.BoundingExtentGrid.MaxX.Should().BeApproximately(537676.34, EPSILON);
            response.BoundingExtentGrid.MaxY.Should().BeApproximately(5427514.52, EPSILON);
            response.BoundingExtentGrid.MinZ.Should().Be(Consts.NullDouble);
            response.BoundingExtentGrid.MaxZ.Should().Be(Consts.NullDouble);
        }