Commit be7d8487 authored by Kristin's avatar Kristin Committed by Makayla Shepherd
Browse files

Revert "Removed exceptions thrown when reading in ControlPoints without location info"

parent 204dabf1
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -91,7 +91,10 @@ namespace Isis {
      m_pointData->set_adjustedy( toDouble(pointObject["Longitude"][0]) );
      m_pointData->set_adjustedz( toDouble(pointObject["Radius"][0]) );
    }

    else {
      QString msg = "Unable to find adjusted surface point values for the control point.";
      throw IException(IException::Io, msg, _FILEINFO_);
    }

    // copy over the apriori surface point
    if ( pointObject.hasKeyword("AprioriLatitude")
@@ -114,6 +117,10 @@ namespace Isis {
      m_pointData->set_aprioriy( m_pointData->adjustedy() );
      m_pointData->set_aprioriz( m_pointData->adjustedz() );
    }
    else {
      QString msg = "Unable to find apriori surface point values for the control point.";
      throw IException(IException::Io, msg, _FILEINFO_);
    }

    // Ground points were previously flagged by the Held keyword being true.
    if (pointObject.hasKeyword("Held") && pointObject["Held"][0] == "True") {