PhotoLayerBuilder.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 terralib/qt/plugins/photolayer/PhotoLayerBuilder.h
22 
23  \brief Class used to build a vector layer of points from a set of images with EXIF GPS metadata.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOLAYERBUILDER_H
27 #define __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOLAYERBUILDER_H
28 
29 // TerraLib
31 #include <terralib/raster/Raster.h>
32 
33 // STL
34 #include <string>
35 
36 namespace te
37 {
38  //forward declarations
39  namespace da { class DataSetType; }
40  namespace mem { class DataSet; }
41 
42  namespace qt
43  {
44  namespace plugins
45  {
46  namespace photolayer
47  {
48  /*!
49  \class PhotoLayerBuilder
50 
51  \brief Class used to build a vector layer of points from a set of images with EXIF GPS metadata.
52 
53  */
55  {
56  public:
57 
58  /*!
59  \brief Constructor.
60 
61  \param r The raster to get gps information.
62  */
63  PhotoLayerBuilder(te::da::DataSourcePtr ds, const std::string& dataSetName, const std::string& path);
64 
65  /*! \brief Destructor. */
67 
68  public:
69 
70  void execute();
71 
72  static std::size_t GetValidFilesCount(const std::string& path);
73 
74  protected:
75 
76  /*! Function used to create the output dataset type */
77  std::unique_ptr<te::da::DataSetType> createDataSetType();
78 
79  /*! Function used to save the output dataset */
81 
82  protected:
83 
85 
86  std::string m_dataSetName;
87 
88  std::string m_path;
89 
90  };
91  } // end namespace photolayer
92  } // end namespace plugins
93  } // end namespace qt
94 } // end namespace te
95 
96 #endif // __TE_QT_PLUGINS_PHOTOLAYER_INTERNAL_PHOTOLAYERBUILDER_H
te::qt::plugins::photolayer::PhotoLayerBuilder::GetValidFilesCount
static std::size_t GetValidFilesCount(const std::string &path)
te::qt::plugins::photolayer::PhotoLayerBuilder::execute
void execute()
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::qt::plugins::photolayer::PhotoLayerBuilder::createDataSetType
std::unique_ptr< te::da::DataSetType > createDataSetType()
te::qt::plugins::photolayer::PhotoLayerBuilder::m_dataSource
te::da::DataSourcePtr m_dataSource
Definition: PhotoLayerBuilder.h:84
te::qt::plugins::photolayer::PhotoLayerBuilder::saveDataSet
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType)
te::qt::plugins::photolayer::PhotoLayerBuilder::m_path
std::string m_path
Definition: PhotoLayerBuilder.h:88
DataSource.h
An abstract class for data providers like a DBMS, Web Services or a regular file.
te::qt::plugins::photolayer::PhotoLayerBuilder::PhotoLayerBuilder
PhotoLayerBuilder(te::da::DataSourcePtr ds, const std::string &dataSetName, const std::string &path)
Constructor.
te::qt::plugins::photolayer::PhotoLayerBuilder::~PhotoLayerBuilder
~PhotoLayerBuilder()
Destructor.
te::qt::plugins::photolayer::PhotoLayerBuilder
Class used to build a vector layer of points from a set of images with EXIF GPS metadata.
Definition: PhotoLayerBuilder.h:55
te::da::DataSourcePtr
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1449
Raster.h
An abstract class for raster data strucutures.
te::da::DataSetType
A class that models the description of a dataset.
Definition: DataSetType.h:73
te::mem::DataSet
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Definition: DataSet.h:66
te::qt::plugins::photolayer::PhotoLayerBuilder::m_dataSetName
std::string m_dataSetName
Definition: PhotoLayerBuilder.h:86