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

MRG

parents bd94e09c eb8ab12c
No related branches found
No related tags found
No related merge requests found
......@@ -300,7 +300,13 @@ ENDIF(OTB_USE_VISU_GUI)
#-------------------------------
# CURL Library
#-------------------------------
OPTION(OTB_USE_CURL "Use curl library." OFF)
FIND_PACKAGE(CURL)
IF(CURL_FOUND)
OPTION(OTB_USE_CURL "Use curl library." ON)
ELSE(CURL_FOUND)
OPTION(OTB_USE_CURL "Use curl library." OFF)
ENDIF(CURL_FOUND)
MARK_AS_ADVANCED(OTB_USE_CURL)
IF(OTB_USE_CURL)
......
This diff is collapsed.
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 <iostream>
#include "otbVectorImage.h"
#include "otbImageFileReader.h"
#
int otbImageKeywordlist( int argc, char* argv[] )
{
if (argc!=3)
{
std::cout << argv[0] <<" <input filename> <output filename>"
<< std::endl;
return EXIT_FAILURE;
}
char * filename = argv[1];
char * outFilename = argv[2];
std::ofstream file;
file.open(outFilename);
file << std::setprecision(15);
typedef otb::VectorImage<double, 2> ImageType;
typedef otb::ImageFileReader<ImageType> ReaderType;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName(filename);
reader->UpdateOutputInformation();
file << "*** KEYWORD LIST ***\n";
file << reader->GetOutput()->GetImageKeywordlist();
file.close();
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