From da137da7fe71b7f1d90e6e751593c6b63a65963b Mon Sep 17 00:00:00 2001 From: Jesse Mapel <jam826@nau.edu> Date: Thu, 4 Oct 2018 05:50:24 -0700 Subject: [PATCH] changed groundtoimage out of image error to warning. (#116) --- src/UsgsAstroLsSensorModel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UsgsAstroLsSensorModel.cpp b/src/UsgsAstroLsSensorModel.cpp index b2cb984..de6ea12 100644 --- a/src/UsgsAstroLsSensorModel.cpp +++ b/src/UsgsAstroLsSensorModel.cpp @@ -231,9 +231,9 @@ csm::ImageCoord UsgsAstroLsSensorModel::groundToImage( // Check if both offsets have the same sign. // This means there is not guaranteed to be a zero. if ((firstOffset > 0) != (lastOffset < 0)) { - throw csm::Error( - csm::Error::ALGORITHM, - "Ground point is not viewed by the image.", + throw csm::Warning( + csm::Warning::IMAGE_COORD_OUT_OF_BOUNDS, + "The image coordinate is out of bounds of the image size.", "UsgsAstroLsSensorModel::groundToImage"); } -- GitLab