STExamples.h
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 STExamples.h
22 
23  \brief Examples on how to load/manipulate st types.
24  */
25 
26 #ifndef __TERRALIB_EXAMPLES_STEXAMPLES_INTERNAL_STEXAMPLES_H
27 #define __TERRALIB_EXAMPLES_STEXAMPLES_INTERNAL_STEXAMPLES_H
28 
29 // TerraLib
30 #include <terralib/common_fw.h>
31 #include <terralib/dataaccess_fw.h>
32 #include <terralib/geometry_fw.h>
33 #include <terralib/st_fw.h>
34 
35 // STL
36 #include <vector>
37 #include <string>
38 
39 // Boost
40 #include <boost/ptr_container/ptr_vector.hpp>
41 #include <boost/shared_ptr.hpp>
42 
43 
44 //ST examples
45 #include "Config.h"
46 
47 /*!
48  \brief It loads the TerraLib modules.
49 */
50 void LoadModules();
51 
52 /*!
53  \brief It creates a new DataSource and put it into the DataSource manager, using a random id.
54 */
56 
57 /*!
58  \brief It groups the examples with trajectories (TrajectoryExamples.cpp).
59 */
60 void TrajectoryExamples();
61 
62 /*!
63  \brief It calculates the distance between two trajectories (TrajectoryDistance.cpp).
64 */
66 
67 /*!
68  \brief It calculates the intersection between a trajectory and a geometry (TrajectoryInstersection.cpp).
69 */
71 
72 /*!
73  \brief It loads trajectory data set from KML file
74 */
75 void LoadTrajectoryDataSetFromKML(boost::ptr_vector<te::st::TrajectoryDataSet>& output);
76 
77 /*!
78  \brief It groups the examples with TimeSeries (TimeSeriesExamples.cpp).
79 */
80 void TimeSeriesExamples();
81 
82 /*!
83  \brief It loads a Time Series data set from a PostGIS database
84 */
85 void LoadTimeSeriesDataSetFromPGIS(boost::ptr_vector<te::st::TimeSeries>& output);
86 
87 /*!
88  \brief It loads a coverage series from a set of geotif files
89 */
90 std::unique_ptr<te::st::CoverageSeries> LoadCoverageSeriesFromGeotif();
91 
92 /*!
93  \brief It contains examples about coverage
94 */
96 
97 /*!
98  \brief It prints information about the trajectory data set: its spatial and temporal extent (PrintTrajectoryDataSet.cpp)
99 */
100 void PrintTrajectoryDataSetInfo(boost::ptr_vector<te::st::TrajectoryDataSet>& output);
102 
103 /*!
104  \brief It prints all observations of the trajectory data set (PrintTrajectoryDataSet.cpp)
105 */
106 void PrintTrajectoryDataSet(boost::ptr_vector<te::st::TrajectoryDataSet>& output);
108 
109 /*!
110  \brief It prints information about the trajectory: its spatial and temporal extent (PrintTrajectory.cpp)
111 */
112 void PrintTrajectoryInfo(boost::ptr_vector<te::st::Trajectory>& output);
114 
115 /*!
116  \brief It prints all observations of the trajectory (PrintTrajectory.cpp)
117 */
118 void PrintTrajectory(boost::ptr_vector<te::st::Trajectory>& output);
119 void PrintTrajectory(te::st::Trajectory* output);
121 
122 /*!
123  \brief It prints information about the time series: its spatial and temporal extent (PrintTimeSeries.cpp)
124 */
125 void PrintTimeSeriesInfo(boost::ptr_vector<te::st::TimeSeries>& output);
127 
128 /*!
129  \brief It prints all observations of the time series (PrintTimeSeries.cpp)
130 */
131 void PrintTimeSeries(boost::ptr_vector<te::st::TimeSeries>& output);
132 void PrintTimeSeries(te::st::TimeSeries* output);
133 
134 /*!
135  \brief It prints information about a coverage series (PrintCoverageSeries.cpp)
136 */
138 
139 #endif // __TERRALIB_EXAMPLES_STEXAMPLES_INTERNAL_STEXAMPLES_H
140 
void LoadTrajectoryDataSetFromKML(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It loads trajectory data set from KML file.
A struct to represent a patch or a continuous piece of a trajectory.
void TrajectoryDistance(te::st::Trajectory *tj1, te::st::Trajectory *tj2)
It calculates the distance between two trajectories (TrajectoryDistance.cpp).
void TrajectoryExamples()
It groups the examples with trajectories (TrajectoryExamples.cpp).
std::unique_ptr< te::st::CoverageSeries > LoadCoverageSeriesFromGeotif()
It loads a coverage series from a set of geotif files.
void PrintTrajectoryDataSet(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It prints all observations of the trajectory data set (PrintTrajectoryDataSet.cpp) ...
Forward declarations for the Data Access module.
Forward declarations for the ST module.
void LoadModules()
It loads the TerraLib modules.
void PrintTrajectory(boost::ptr_vector< te::st::Trajectory > &output)
It prints all observations of the trajectory (PrintTrajectory.cpp)
This file contains forward declarations for the Vector Geometry model of TerraLib.
This file contains forward declarations for the TerraLib Common Runtime module.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
void TrajectoryIntersection(te::st::Trajectory *tj, te::gm::Geometry *geom)
It calculates the intersection between a trajectory and a geometry (TrajectoryInstersection.cpp).
void PrintTimeSeries(boost::ptr_vector< te::st::TimeSeries > &output)
It prints all observations of the time series (PrintTimeSeries.cpp)
A class to represent a trajectory data set.
A class to represent a coverage series.
void CoverageSeriesExamples()
It contains examples about coverage.
A class to represent time series.
Definition: TimeSeries.h:66
A class that represents a data source component.
void PrintTrajectoryPatch(te::st::TrajectoryPatch &tjPatch)
A class to represent trajectory.
Definition: Trajectory.h:75
void PrintTimeSeriesInfo(boost::ptr_vector< te::st::TimeSeries > &output)
It prints information about the time series: its spatial and temporal extent (PrintTimeSeries.cpp)
void PrintTrajectoryInfo(boost::ptr_vector< te::st::Trajectory > &output)
It prints information about the trajectory: its spatial and temporal extent (PrintTrajectory.cpp)
void TimeSeriesExamples()
It groups the examples with TimeSeries (TimeSeriesExamples.cpp).
void LoadTimeSeriesDataSetFromPGIS(boost::ptr_vector< te::st::TimeSeries > &output)
It loads a Time Series data set from a PostGIS database.
void PrintCoverageSeriesInfo(te::st::CoverageSeries *output)
It prints information about a coverage series (PrintCoverageSeries.cpp)
void CreateDataSourceAndUpdateManager(te::da::DataSourceInfo &dsinfo)
It creates a new DataSource and put it into the DataSource manager, using a random id...
void PrintTrajectoryDataSetInfo(boost::ptr_vector< te::st::TrajectoryDataSet > &output)
It prints information about the trajectory data set: its spatial and temporal extent (PrintTrajectory...