Commit 1ba60cd8 authored by Jordi Inglada's avatar Jordi Inglada
Browse files

BUG: correction for the MegaWave format

parent d6173844
This diff is collapsed.
/*=========================================================================
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 "otbMWImageIO.h"
#include "itkExceptionObject.h"
#include <iostream>
int otbMWImageIOTestCanRead(int argc, char* argv[])
{
otb::MWImageIO::Pointer lMWImageIO = otb::MWImageIO::New();
bool lCanRead = lMWImageIO->CanReadFile(argv[1]);
if ( lCanRead == false)
{
std::cerr << "Error otb::MWImageIO : impossible to read MW image "<<argv[1]<<"."<<std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
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