Loading isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.cpp +15 −18 Original line number Diff line number Diff line Loading @@ -1261,21 +1261,6 @@ namespace Isis { } controlPoint->SetType(pointType); // get radius values for surface points Distance equatorialRadius; Distance polarRadius; if ( !m_header.targetName.isEmpty() ) { try { // attempt to get target radii values... PvlGroup pvlRadii = Target::radiiGroup(m_header.targetName); equatorialRadius.setMeters(pvlRadii["EquatorialRadius"]); polarRadius.setMeters(pvlRadii["PolarRadius"]); } catch (IException &e) { // do nothing } } if ( protoPoint.has_ignore() ) { controlPoint->SetIgnored(protoPoint.ignore()); } Loading Loading @@ -1405,11 +1390,11 @@ namespace Isis { controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint); } if ( equatorialRadius.isValid() && polarRadius.isValid() ) { if ( m_header.equatorialRadius.isValid() && m_header.polarRadius.isValid() ) { SurfacePoint aprioriSurfacePoint = controlPoint->GetAprioriSurfacePoint(); SurfacePoint adjustedSurfacePoint = controlPoint->GetAdjustedSurfacePoint(); aprioriSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius); adjustedSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius); aprioriSurfacePoint.SetRadii(m_header.equatorialRadius, m_header.equatorialRadius, m_header.polarRadius); adjustedSurfacePoint.SetRadii(m_header.equatorialRadius, m_header.equatorialRadius, m_header.polarRadius); controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint); controlPoint->SetAprioriSurfacePoint(aprioriSurfacePoint); } Loading Loading @@ -1547,6 +1532,18 @@ namespace Isis { if ( m_header.targetName.startsWith("MRO/") ) { m_header.targetName = "Mars"; } if ( !m_header.targetName.isEmpty() ) { try { // attempt to get target radii values... PvlGroup pvlRadii = Target::radiiGroup(m_header.targetName); m_header.equatorialRadius.setMeters(pvlRadii["EquatorialRadius"]); m_header.polarRadius.setMeters(pvlRadii["PolarRadius"]); } catch (IException &e) { // do nothing } } } Loading isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.h +2 −0 Original line number Diff line number Diff line Loading @@ -233,6 +233,8 @@ namespace Isis { QString lastModified; QString description; QString userName; Distance equatorialRadius; Distance polarRadius; }; typedef ControlNetHeaderV0001 ControlNetHeaderV0002; typedef ControlNetHeaderV0001 ControlNetHeaderV0003; Loading Loading
isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.cpp +15 −18 Original line number Diff line number Diff line Loading @@ -1261,21 +1261,6 @@ namespace Isis { } controlPoint->SetType(pointType); // get radius values for surface points Distance equatorialRadius; Distance polarRadius; if ( !m_header.targetName.isEmpty() ) { try { // attempt to get target radii values... PvlGroup pvlRadii = Target::radiiGroup(m_header.targetName); equatorialRadius.setMeters(pvlRadii["EquatorialRadius"]); polarRadius.setMeters(pvlRadii["PolarRadius"]); } catch (IException &e) { // do nothing } } if ( protoPoint.has_ignore() ) { controlPoint->SetIgnored(protoPoint.ignore()); } Loading Loading @@ -1405,11 +1390,11 @@ namespace Isis { controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint); } if ( equatorialRadius.isValid() && polarRadius.isValid() ) { if ( m_header.equatorialRadius.isValid() && m_header.polarRadius.isValid() ) { SurfacePoint aprioriSurfacePoint = controlPoint->GetAprioriSurfacePoint(); SurfacePoint adjustedSurfacePoint = controlPoint->GetAdjustedSurfacePoint(); aprioriSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius); adjustedSurfacePoint.SetRadii(equatorialRadius, equatorialRadius, polarRadius); aprioriSurfacePoint.SetRadii(m_header.equatorialRadius, m_header.equatorialRadius, m_header.polarRadius); adjustedSurfacePoint.SetRadii(m_header.equatorialRadius, m_header.equatorialRadius, m_header.polarRadius); controlPoint->SetAdjustedSurfacePoint(adjustedSurfacePoint); controlPoint->SetAprioriSurfacePoint(aprioriSurfacePoint); } Loading Loading @@ -1547,6 +1532,18 @@ namespace Isis { if ( m_header.targetName.startsWith("MRO/") ) { m_header.targetName = "Mars"; } if ( !m_header.targetName.isEmpty() ) { try { // attempt to get target radii values... PvlGroup pvlRadii = Target::radiiGroup(m_header.targetName); m_header.equatorialRadius.setMeters(pvlRadii["EquatorialRadius"]); m_header.polarRadius.setMeters(pvlRadii["PolarRadius"]); } catch (IException &e) { // do nothing } } } Loading
isis/src/control/objs/ControlNetVersioner/ControlNetVersioner.h +2 −0 Original line number Diff line number Diff line Loading @@ -233,6 +233,8 @@ namespace Isis { QString lastModified; QString description; QString userName; Distance equatorialRadius; Distance polarRadius; }; typedef ControlNetHeaderV0001 ControlNetHeaderV0002; typedef ControlNetHeaderV0001 ControlNetHeaderV0003; Loading