Commit 04b9160a authored by Cédric Traizet's avatar Cédric Traizet
Browse files

REFAC: update baselines for the ImageEnvelope application tests (diff 0.0013m in extents)

parent a2b344e6
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
\ No newline at end of file \ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
// The \doxygen{otb}{GCPsToRPCSensorModelImageFilter} estimates a RPC // The \doxygen{otb}{GCPsToRPCSensorModelImageFilter} estimates a RPC
// sensor model from a list of user defined GCPs. Internally, it uses // sensor model from a list of user defined GCPs. Internally, it uses
// an ossimRpcSolver, which performs the estimation using the well // an RpcSolver, which performs the estimation using the well
// known least-square method. // known least-square method.
// Let's look at the minimal code required to use this // Let's look at the minimal code required to use this
...@@ -119,7 +119,7 @@ int main(int argc, char* argv[]) ...@@ -119,7 +119,7 @@ int main(int argc, char* argv[])
rpcEstimator->GetOutput()->UpdateOutputInformation(); rpcEstimator->GetOutput()->UpdateOutputInformation();
// The result of the RPC model estimation and the residual ground // The result of the RPC model estimation and the residual ground
// error is then save in a txt file. Note that This filter does // error is then saved in a txt file. Note that This filter does
// not modify the image buffer, but only the metadata. // not modify the image buffer, but only the metadata.
std::ofstream ofs; std::ofstream ofs;
...@@ -129,7 +129,9 @@ int main(int argc, char* argv[]) ...@@ -129,7 +129,9 @@ int main(int argc, char* argv[])
ofs.setf(std::ios::fixed, std::ios::floatfield); ofs.setf(std::ios::fixed, std::ios::floatfield);
ofs.precision(10); ofs.precision(10);
ofs << (ImageType::Pointer)rpcEstimator->GetOutput() << std::endl; auto outputRPC = boost::any_cast<otb::Projection::RPCParam>(rpcEstimator->GetOutput()->GetImageMetadata()[otb::MDGeom::RPC]);
ofs << outputRPC.ToJSON() << std::endl;
ofs << "Residual ground error: " << rpcEstimator->GetRMSGroundError() << std::endl; ofs << "Residual ground error: " << rpcEstimator->GetRMSGroundError() << std::endl;
ofs.close(); ofs.close();
......
...@@ -2635,7 +2635,9 @@ void TestHelper::ogrReportOnLayer(OGRLayer* ref_poLayer, const char* ref_pszWHER ...@@ -2635,7 +2635,9 @@ void TestHelper::ogrReportOnLayer(OGRLayer* ref_poLayer, const char* ref_pszWHER
otbCheckValue("GetExtent", ref_poLayer->GetExtent(&ref_oExt, TRUE), test_poLayer->GetExtent(&test_oExt, TRUE), nbdiff, m_ReportErrors); otbCheckValue("GetExtent", ref_poLayer->GetExtent(&ref_oExt, TRUE), test_poLayer->GetExtent(&test_oExt, TRUE), nbdiff, m_ReportErrors);
if (ref_poLayer->GetExtent(&ref_oExt, TRUE) == OGRERR_NONE) if (ref_poLayer->GetExtent(&ref_oExt, TRUE) == OGRERR_NONE)
{ {std::cout << "test1 : " << ref_oExt.MinX << " " << ref_oExt.MinY << " " << ref_oExt.MaxX << " " << ref_oExt.MaxY << std::endl;
std::cout << "ref1 : " << test_oExt.MinX << " " << test_oExt.MinY << " " << test_oExt.MaxX << " " << test_oExt.MaxY << std::endl;
CheckValueTolerance("Extent: MinX", ref_oExt.MinX, test_oExt.MinX, nbdiff, m_ReportErrors, epsilon); CheckValueTolerance("Extent: MinX", ref_oExt.MinX, test_oExt.MinX, nbdiff, m_ReportErrors, epsilon);
CheckValueTolerance("Extent: MinY", ref_oExt.MinY, test_oExt.MinY, nbdiff, m_ReportErrors, epsilon); CheckValueTolerance("Extent: MinY", ref_oExt.MinY, test_oExt.MinY, nbdiff, m_ReportErrors, epsilon);
CheckValueTolerance("Extent: MaxX", ref_oExt.MaxX, test_oExt.MaxX, nbdiff, m_ReportErrors, epsilon); CheckValueTolerance("Extent: MaxX", ref_oExt.MaxX, test_oExt.MaxX, nbdiff, m_ReportErrors, epsilon);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment