Example #1
0
void finalizeTerraMA2()
{
  finalizeTerralib();

  terrama2::core::ApplicationController::getInstance().getDataSource()->close();
}
Example #2
0
int main(int argc, char *argv[])
{
  initializeTerralib();

  int returnVal = 0;
  QCoreApplication app(argc, argv);

  //  TsCollectorService tsCollectorService;
//  returnVal += QTest::qExec(&tsCollectorService, argc, argv);

//  TsDataFilter tsDataFilter;
//  returnVal += QTest::qExec(&tsDataFilter, argc, argv);

//  //DataRetriever

//  TsDataSetTimer tsDataSetTimer;
//  returnVal += QTest::qExec(&tsDataSetTimer, argc, argv);

//  TsFactory tsFactory;
//  returnVal += QTest::qExec(&tsFactory, argc, argv);

//  //Intersection Operation

  //Log

//  TsLog tsLog;
//  returnVal += QTest::qExec(&tsLog, argc, argv);

//  //Parser

//  TsParserOGR tsParserOGR;
//  returnVal += QTest::qExec(&tsParserOGR, argc, argv);

//  TsParserPcdInpe tsParserInpe;
//  returnVal += QTest::qExec(&tsParserInpe, argc, argv);

//  TsParserPcdToa5 tsParserToa5;
//  returnVal += QTest::qExec(&tsParserToa5, argc, argv);

//  TsParserPcdCemaden tsParserPcdCemaden;
//  returnVal += QTest::qExec(&tsParserPcdCemaden, argc, argv);

//  TsUnpackGZ tsUnpackGZ;
//  returnVal += QTest::qExec(&tsUnpackGZ, argc, argv);

//  TsParserTiff tsParserTiff;
//  returnVal += QTest::qExec(&tsParserTiff, argc, argv);

//  TsParserAscGrid tsParserAscGrid;
//  returnVal += QTest::qExec(&tsParserAscGrid, argc, argv);

  //Storager

//  TsUtils tsUtils;
//  returnVal += QTest::qExec(&tsUtils, argc, argv);

//  TsIntegration tsIntegration;
//  returnVal += QTest::qExec(&tsIntegration, argc, argv);

  // DataRetriever

//  TsDataRetrieverWCS tsDataRetrieverWCS;
//  returnVal += QTest::qExec(&tsDataRetrieverWCS, argc, argv);

  QTimer timer;
  QObject::connect(&timer, SIGNAL(timeout()), QCoreApplication::instance(), SLOT(quit()));
  timer.start(1000);
  app.exec();

  finalizeTerralib();

  return returnVal;
}
Example #3
0
 void cleanupTestCase() // Run after all tests
 {
     finalizeTerralib();
 }