Skip to content
Snippets Groups Projects
Commit 7c896ae6 authored by Guillaume Borrut's avatar Guillaume Borrut
Browse files

missing file

parent 04cb7250
No related branches found
No related tags found
No related merge requests found
/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#if defined(_MSC_VER)
#pragma warning ( disable : 4786 )
#endif
#include "otbRADImageIO.h"
#include "itkExceptionObject.h"
#include <iostream>
int otbRADImageIOTestCanRead(int argc, char* argv[])
{
otb::RADImageIO::Pointer lRADImageIO = otb::RADImageIO::New();
bool lCanRead = lRADImageIO->CanReadFile(argv[1]);
if ( lCanRead == false)
{
std::cerr << "Erreur otb::RADImageIO : impossible d'ouvrir l'image : "<<argv[1]<<"."<<std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
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