Skip to content
Snippets Groups Projects
Commit ff17a68f authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: don't write identity geotransform (0,1,0,0,0,1) in ImageTest and...

BUG: don't write identity geotransform (0,1,0,0,0,1) in ImageTest and VectorImageTest (back compatibility)
parent 371d01ae
No related branches found
No related tags found
No related merge requests found
......@@ -79,11 +79,15 @@ int otbImageTest(int itkNotUsed(argc), char* argv[])
}
InputImageType::VectorType tab = image->GetGeoTransform();
file << "Geo Transform " << std::endl;
for (unsigned int i = 0; i < tab.size(); ++i)
// Don't write the identity geotransform.
if (tab != InputImageType::VectorType({0,1,0,0,0,1}))
{
file << " " << i << " -> " << tab[i] << std::endl;
for (unsigned int i = 0; i < tab.size(); ++i)
{
file << " " << i << " -> " << tab[i] << std::endl;
}
}
tab.clear();
......
......@@ -84,9 +84,13 @@ int otbVectorImageLegacyTest(int argc, char* argv[])
InputImageType::VectorType tab = image->GetGeoTransform();
file << "Geo Transform " << std::endl;
for (unsigned int i = 0; i < tab.size(); ++i)
// Don't write the identity geotransform.
if (tab != InputImageType::VectorType({0,1,0,0,0,1}))
{
file << " " << i << " -> " << tab[i] << std::endl;
for (unsigned int i = 0; i < tab.size(); ++i)
{
file << " " << i << " -> " << tab[i] << std::endl;
}
}
tab.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment