From c299a3b4cd8607d6d504d7e99b45876d713cb4ce Mon Sep 17 00:00:00 2001 From: Ana-Maria Rosu Date: Mon, 8 Jan 2024 17:24:58 +0100 Subject: [PATCH] fix ReportGCP: handle missing 3D points --- MMVII/src/OrientReport/GCPQuality.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MMVII/src/OrientReport/GCPQuality.cpp b/MMVII/src/OrientReport/GCPQuality.cpp index 03025e501a..64d9ff72e6 100644 --- a/MMVII/src/OrientReport/GCPQuality.cpp +++ b/MMVII/src/OrientReport/GCPQuality.cpp @@ -193,10 +193,12 @@ void cAppli_CGPReport::MakeOneIm(const std::string & aNameIm) aImaFieldRes.ToJpgFileDeZoom(mPhProj.DirVisu() + "FieldRes-"+aNameIm+".tif",aDeZoom); } + auto aMesX = (aAvg2d.SW()>0.) ? ToStr(aAvg2d.Average().x()) : "XXX"; + auto aMesY = (aAvg2d.SW()>0.) ? ToStr(aAvg2d.Average().y()) : "XXX"; AddStdStatCSV ( - mNameReportIm,aNameIm,aStat,mPropStat, - {ToStr(aAvg2d.Average().x()),ToStr(aAvg2d.Average().y())} + mNameReportIm,aNameIm,aStat,mPropStat, + {aMesX, aMesY} ); }