Loading isis/tests/FunctionalTestsGrid.cpp +12 −4 Original line number Diff line number Diff line Loading @@ -263,7 +263,15 @@ TEST_F(NewHorizonsCube, FunctionalTestGridBandDependent) { TEST_F(DefaultCube, FunctionalTestGridExtend) { QVector<QString> args = {"to=" + tempDir.path() + "/output.cub", "extendgrid=true"}; UserInterface options(APP_XML, args); grid(testCube, options); // change mapping group of cube to one that extends past longitude domain Pvl newMap; newMap.read("data/defaultImage/extendProj.map"); PvlGroup &newMapGrp = newMap.findGroup("Mapping", Pvl::Traverse); projTestCube->putGroup(newMapGrp); grid(projTestCube, options); Cube outputCube; try { Loading @@ -275,13 +283,13 @@ TEST_F(DefaultCube, FunctionalTestGridExtend) { // Check beginning and end of gridline LineManager line(outputCube); line.SetLine(579); line.SetLine(1); outputCube.read(line); EXPECT_EQ(line[0], Isis::Hrs); line.SetLine(1056); line.SetLine(1); outputCube.read(line); EXPECT_EQ(line[247], Isis::Hrs); EXPECT_EQ(line[2], Isis::Hrs); outputCube.close(); } Loading isis/tests/data/defaultImage/extendProj.map 0 → 100755 +18 −0 Original line number Diff line number Diff line Group = Mapping ProjectionName = Sinusoidal CenterLongitude = 370.0 <degrees> TargetName = MARS EquatorialRadius = 3396190.0 <meters> PolarRadius = 3376200.0 <meters> LatitudeType = Planetocentric LongitudeDirection = PositiveEast LongitudeDomain = 360 <degrees> MinimumLatitude = 0 <degrees> MaximumLatitude = 10 <degrees> MinimumLongitude = 361 <degrees> MaximumLongitude = 380 <degrees> UpperLeftCornerX = 0.0 <meters> UpperLeftCornerY = 600000.0 <meters> PixelResolution = 100000.0 <meters/pixel> Scale = 0.59274697523306 <pixels/degree> End_Group Loading
isis/tests/FunctionalTestsGrid.cpp +12 −4 Original line number Diff line number Diff line Loading @@ -263,7 +263,15 @@ TEST_F(NewHorizonsCube, FunctionalTestGridBandDependent) { TEST_F(DefaultCube, FunctionalTestGridExtend) { QVector<QString> args = {"to=" + tempDir.path() + "/output.cub", "extendgrid=true"}; UserInterface options(APP_XML, args); grid(testCube, options); // change mapping group of cube to one that extends past longitude domain Pvl newMap; newMap.read("data/defaultImage/extendProj.map"); PvlGroup &newMapGrp = newMap.findGroup("Mapping", Pvl::Traverse); projTestCube->putGroup(newMapGrp); grid(projTestCube, options); Cube outputCube; try { Loading @@ -275,13 +283,13 @@ TEST_F(DefaultCube, FunctionalTestGridExtend) { // Check beginning and end of gridline LineManager line(outputCube); line.SetLine(579); line.SetLine(1); outputCube.read(line); EXPECT_EQ(line[0], Isis::Hrs); line.SetLine(1056); line.SetLine(1); outputCube.read(line); EXPECT_EQ(line[247], Isis::Hrs); EXPECT_EQ(line[2], Isis::Hrs); outputCube.close(); } Loading
isis/tests/data/defaultImage/extendProj.map 0 → 100755 +18 −0 Original line number Diff line number Diff line Group = Mapping ProjectionName = Sinusoidal CenterLongitude = 370.0 <degrees> TargetName = MARS EquatorialRadius = 3396190.0 <meters> PolarRadius = 3376200.0 <meters> LatitudeType = Planetocentric LongitudeDirection = PositiveEast LongitudeDomain = 360 <degrees> MinimumLatitude = 0 <degrees> MaximumLatitude = 10 <degrees> MinimumLongitude = 361 <degrees> MaximumLongitude = 380 <degrees> UpperLeftCornerX = 0.0 <meters> UpperLeftCornerY = 600000.0 <meters> PixelResolution = 100000.0 <meters/pixel> Scale = 0.59274697523306 <pixels/degree> End_Group