examples/st/main.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file main.cpp
22 
23  \brief Examples about TerraLib ST Module.
24 */
25 
26 // TerraLib
27 #include <terralib/common.h>
28 #include <terralib/core/plugin.h>
29 #include <terralib/dataaccess.h>
30 #include <terralib/st.h>
31 
32 
33 // STL
34 #include <cassert>
35 #include <cstdlib>
36 #include <exception>
37 #include <iostream>
38 
39 #include "STExamples.h"
40 
41 int main(int /*argc*/, char** /*argv*/)
42 {
43  try
44  {
46 
47  //Load Modules and Plugins
48  LoadModules();
49 
50  //Initialize STDataLoader support
52 
53  //Examples of trajectories
55 
56  //Examples of coverage series
57  // CoverageSeriesExamples();
58 
59  //Examples of TimeSeries
60  // TimeSeriesExamples();
61 
62  //Finalize STDataLoader support
64 
66 
68  }
69  catch(const std::exception& e)
70  {
71  std::cout << std::endl << "An exception has occurred: " << e.what() << std::endl;
72 
73  return EXIT_FAILURE;
74  }
75  catch(...)
76  {
77  std::cout << std::endl << "An unexpected exception has occurred!" << std::endl;
78 
79  return EXIT_FAILURE;
80  }
81 
82  return EXIT_SUCCESS;
83 }
Include files for Core Plugin Library.
void TrajectoryExamples()
It groups the examples with trajectories (TrajectoryExamples.cpp).
Examples on how to load/manipulate st types.
static void initialize()
It returns the spatial extent of the observations of a coverage series.
static PluginManager & instance()
Access the singleton.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
int main(int, char **)
void initialize()
It initializes the TerraLib Platform.
This file contains include headers for the TerraLib Common Runtime module.
This file contains include headers for the TerraLib ST module.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.
This file contains include headers for the Data Access module of TerraLib.
void LoadModules()
Load terralib modules.
static void finalize()
It finalize the STDataLoader.