Commit 6292bdb0 authored by Tracie Sucharski's avatar Tracie Sucharski
Browse files

In qview's measure tool, the latitude, longitude were swapped on the endpoints...

In qview's measure tool, the latitude, longitude were swapped on the endpoints of projected cubes. Fixes #2032.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@5713 41f8697f-d340-4b68-9986-7bafba869bb8
parent 3695d3de
Loading
Loading
Loading
Loading
+6 −6
Changes for isis/src/qisis/objs/MeasureTool/MeasureTool.cpp: 6 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -701,8 +701,8 @@ namespace Isis {
          // If our projection is sky, the lat & lons are switched
          if (cvp->projection()->IsSky()) {
            tproj = (TProjection *) cvp->projection();
            m_startLat = tproj->UniversalLongitude();
            m_startLon = tproj->UniversalLatitude();
            m_startLat = tproj->UniversalLatitude();
            m_startLon = tproj->UniversalLongitude();
          }
          else if (projType == Projection::Triaxial) {
            tproj = (TProjection *) cvp->projection();
@@ -718,12 +718,12 @@ namespace Isis {
          if (cvp->projection()->SetWorld(m_endSamp, m_endLine)) {
            // If our projection is sky, the lat & lons are switched
            if (cvp->projection()->IsSky()) {
              m_endLat = tproj->UniversalLongitude();
              m_endLon = tproj->UniversalLatitude();
              m_endLat = tproj->UniversalLatitude();
              m_endLon = tproj->UniversalLongitude();
            }
            else if (projType == Projection::Triaxial) {
              m_endLat = tproj->UniversalLongitude();
              m_endLon = tproj->UniversalLatitude();
              m_endLat = tproj->UniversalLatitude();
              m_endLon = tproj->UniversalLongitude();
            } // RingPlaneProjection
            else {
              m_endLat = rproj->UniversalRingRadius();
+2 −0
Changes for isis/src/qisis/objs/MeasureTool/MeasureTool.h: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -51,6 +51,8 @@ namespace Isis {
  *                          References #205.
  *   @history 2012-11-30 Debbie A. Cook - Changed to use TProjection instead of Projection.
  *                           References #775.
  *   @history 2014-02-07 Tracie Sucharski - Latitude and Longitude were swapped in the endpoints.
  *                           Fixes #2032.
  */
  class MeasureTool : public Tool {
      Q_OBJECT