Commit 6da30f84 authored by Kristin's avatar Kristin Committed by Jesse Mapel
Browse files

Updates qmos to fix grid-drawing if LongitudeDirection is PositiveWest (#3368) (#3374)

* Update date and other metadata

* ckwriter_test_fix

* Fix unintentional cmakelists change

* Swaps min/max longitude for PositiveWest

* Remove debug comment
parent 922fa8b8
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ namespace Isis {
      Longitude lonMin, Longitude lonMax) {
    setZValue(DBL_MAX);


    if (latInc > Angle(0.0, Angle::Degrees) && lonInc > Angle(0.0, Angle::Degrees)) {
      // Walk the grid, creating a QGraphicsLineItem for each line segment.
      Projection *proj = projectionSrc->getProjection();
@@ -43,6 +44,12 @@ namespace Isis {
        Latitude startLat;
        Latitude endLat;

      if (mappingGroup["LongitudeDirection"][0] == "PositiveWest") {
        Longitude temp = lonMin;
        lonMin = lonMax;
        lonMax = temp;
      }

        if (mappingGroup["LatitudeType"][0] == "Planetographic") {

          Distance equaRad(tproj->EquatorialRadius(), Distance::Meters);