All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrajectoryDataSetInfo.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 TrajectoryDataSetInfo.cpp
22 
23  \brief This file contains a class called TrajectoryDataSetInfo
24 */
25 
26 //TerraLib
27 #include "../../../dataaccess/datasource/DataSourceInfo.h"
28 #include "../../../common/StringUtils.h"
29 
30 //ST
31 #include "TrajectoryDataSetInfo.h"
32 
34  const std::string& dsName, int tPropIdx,
35  int gPropIdx, int idPropIdx, const std::string& id)
36  : m_obsDsInfo(dsinfo, dsName, tPropIdx, gPropIdx, gPropIdx),
37  m_idPropIdx(idPropIdx),
38  m_id(id)
39 {
40 }
41 
43  int idPropIdx, const std::string& id)
44  : m_obsDsInfo(info),
45  m_idPropIdx(idPropIdx),
46  m_id(id)
47 {
48 }
49 
52 {
53  return m_obsDsInfo;
54 }
55 
58 {
59  return m_obsDsInfo.getDataSourceInfo();
60 }
61 
62 const std::vector<int>&
64 {
65  return m_obsDsInfo.getTimePropIdxs();
66 }
67 
69 {
70  return m_obsDsInfo.getGeomPropIdx();
71 }
72 
74 {
75  return m_idPropIdx;
76 }
77 
79 {
80  return m_id;
81 }
82 
84 {
85 }
86 
87 
A class that contains infos about a DataSet that contains observations.
A class that represents a data source component.
int getIdPropIdx() const
It returns the indexes of the DataSet properties that contains the identification of each trajectory...
virtual ~TrajectoryDataSetInfo()
Virtual destructor.
const std::vector< int > & getTimePropIdxs() const
It returns the indexes of the DataSet properties that contains the times associated to the trajectori...
const te::da::DataSourceInfo & getDataSourceInfo() const
It returns information about the DataSource from which the DataSet comes.
This file contains a class called TrajectoryDataSetInfo.
const ObservationDataSetInfo & getObservationDataSetInfo() const
It returns information about the DataSet that contians the trajectory observations.
TrajectoryDataSetInfo(const te::da::DataSourceInfo &dsinfo, const std::string &dsName, int tPropIdx, int gPropIdx, int idPropIdx, const std::string &id)
Constructor.
int getGeomPropIdx() const
It returns the indexes of the DataSet properties that contains the geometries associated to the traje...
std::string getId() const
It returns the trajectory id that this DataSet contains.