All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrajectoryDataSetInfo.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 TrajectoryDataSetInfo.cpp
22 
23  \brief This file contains a class called TrajectoryDataSetInfo
24 */
25 
26 //TerraLib
27 #include "../../../dataaccess/datasource/DataSourceInfo.h"
28 #include "../../../geometry/GeometryProperty.h"
29 #include "../../../datatype/DateTimeProperty.h"
30 #include "../../../common/StringUtils.h"
31 
32 //ST
33 #include "TrajectoryDataSetInfo.h"
34 
36  const std::string& tPropName, const std::string& gPropName,
37  const std::string& idPropName, const std::string& id)
38  : m_obsDsInfo(dsinfo, dsName)
39 {
40  //create properties
43 
46 
47  std::vector<std::string> aux;
48  aux.push_back(gPropName);
50 
51  m_obsDsInfo.setIdPropInfo(idPropName);
52  m_obsDsInfo.setId(id);
53 }
54 
55 
57  : m_obsDsInfo(info)
58 {
59 }
60 
63 {
64  return m_obsDsInfo;
65 }
66 
68 {
69 }
70 
71 
Geometric property.
A class that contains infos about a DataSet that contains observations.
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contains the trajectory observations.
ObservationDataSetInfo m_obsDsInfo
Infos about the DataSource and DataSet that contains the trajectory observations. ...
void setIdPropInfo(int idProp)
It sets the index of the DataSet property that contains identifiers that groups the observations...
virtual ~TrajectoryDataSetInfo()
Virtual destructor.
void setId(const std::string &id)
It sets the identifier associated to all observations.
TrajectoryDataSetInfo(const te::da::DataSourceInfo &dsinfo, const std::string &dsName, const std::string &tPropName, const std::string &gPropName, const std::string &idPropName, const std::string &id)
Constructor.
void setTimePropInfo(te::dt::DateTimeProperty *tpInfo)
It sets the property info that contains the phenomenon time.
The type for date and time types: date, date period, date duration, time duration, time instant, time period, time instant with time zone or time period with time zone.
A class that represents a data source component.
void setGeomPropInfo(te::gm::GeometryProperty *prop)
It sets the info about the property that contains the observation location.
void setObsPropInfo(const std::vector< int > &props)
It sets the indexes of the DataSet properties that are observed over time.
This file contains a class called TrajectoryDataSetInfo.