All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Utils.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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 Utils.h
22 
23  \brief Utility functions for ST module.
24  */
25 
26 //TerraLib
27 #include "../datatype/AbstractData.h"
28 #include "../datatype/Enums.h"
29 #include "../datatype/SimpleData.h"
30 #include "../dataaccess/dataset/DataSetType.h"
31 #include "../datatype/Property.h"
32 #include "../geometry/GeometryProperty.h"
33 #include "../common/STLUtils.h"
34 
35 //ST
36 #include "Utils.h"
45 
47 {
49  info.getVlTimePropIdxs(), info.getRsTimePropIdx());
50 }
51 
53 {
55  info.getIdPropIdx(), info.getId());
56 }
57 
59 {
61 }
62 
63 
64 
int getIdPropIdx() const
It returns the indexes of the DataSet properties that contains the identification of each trajectory...
This file contains a class to represent a trajectory.
std::string getId() const
It returns the time series id that this DataSet contains.
This file contains a class called ObservationDataSetInfo.
A class that contains infos about a DataSet that contains observations.
const std::vector< int > & getObsPropIdxs() const
It returns the indexes of the DataSetType properties that are observed over time. ...
A class that contains complemental information about a DataSet that holds observations of a trajector...
A class that contains complemental information about a DataSet that holds observations of a time seri...
const std::vector< int > & getVlTimePropIdxs() const
It returns the indexes of the DataSet properties that contains the valid time.
int getGeomPropIdx() const
It returns the index of the property that is a geometry property.
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contians the time series observations.
const std::vector< int > & getValuePropIdxs() const
It returns the indexes of the DataSet properties that contains the values associated to the time seri...
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contians the trajectory observations.
TESTEXPORT ObservationDataSetType GetType(const ObservationDataSetInfo &info)
An auxiliary function that transform ObservationDataSetInfo into ObservationDataSetType.
Definition: Utils.cpp:46
std::string getId() const
It returns the trajectory id that this DataSet contains.
This file contains a trajetory iterator.
This file contains a class called TimeSeriesDataSetInfo.
This file contains a class called ObservationDataSetType.
This file contains a class called TimeSeriesDataSetType.
A class that contains infos about a DataSet that contains observations of one or more trajectories...
int GetType(const int &te_type)
A class that contains infos about a DataSet that contains observations of one or more time series...
int getRsTimePropIdx() const
It returns the index of the DataSet property that contains the result time.
A class that contains complemental DataSetType information about a DataSet that holds observations...
const std::vector< int > & getTimePropIdxs() const
It returns the indexes of the DataSetType properties that contains the phenomenon time...
This file contains a class called TrajectoryDataSetType.
int getIdPropIdx() const
It returns the index of the DataSet property that contains the identification of each time series...
This file contains a class called TrajectoryDataSetInfo.