VectorToRaster.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 VectorToRaster.h
22 
23  \brief Vector to Raster processing.
24 
25  \ingroup attributefill
26  */
27 
28 #ifndef __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTOR_TO_RASTER_H
29 #define __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTOR_TO_RASTER_H
30 
31 //Terralib
32 
33 #include "../dataaccess/dataset/DataSet.h"
34 #include "../dataaccess/dataset/DataSetType.h"
35 #include "../dataaccess/dataset/ObjectIdSet.h"
36 #include "../dataaccess/datasource/DataSource.h"
37 
38 #include "../datatype/Property.h"
39 
40 #include "../memory/DataSet.h"
41 #include "../statistics/core/Enums.h"
42 
43 #include "Config.h"
44 
45 // STL
46 #include <map>
47 #include <memory>
48 #include <string>
49 #include <vector>
50 
51 namespace te
52 {
53  namespace attributefill
54  {
56  {
57  public:
58 
60 
62 
63  void setInput(te::da::DataSourcePtr inVectorDsrc,
64  std::string inVectorName,
65  std::auto_ptr<te::da::DataSetTypeConverter> inVectorDsType);
66 
67  void setParams( std::vector<std::string> selectedAttVec,
68  double resolutionX,
69  double resolutionY,
70  int columns,
71  int rows,
72  bool useDummy,
73  int dummy = 0);
74 
75  void setOutput(te::da::DataSourcePtr outDsrc, std::string dsName);
76 
77  bool paramsAreValid();
78 
79  bool run();
80 
81  protected:
82 
84  std::string m_inVectorName;
85  std::auto_ptr<te::da::DataSetTypeConverter> m_inVectorDsType;
86 
87  std::vector<std::string> m_selectedAttVec;
88  double m_resolutionX;
89  double m_resolutionY;
90  int m_columns;
91  int m_rows;
92  bool m_setDummy;
93  int m_dummy;
94 
96  std::string m_outDset;
97  };
98  }
99 }
100 #endif // __TERRALIB_ATTRIBUTEFILL_INTERNAL_VECTOR_TO_RASTER_H
Configuration flags for the Attribute Fill module of TerraLib.
boost::shared_ptr< DataSource > DataSourcePtr
Definition: DataSource.h:1435
te::da::DataSourcePtr m_inVectorDsrc
#define TEATTRIBUTEFILLEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
URI C++ Library.
std::vector< std::string > m_selectedAttVec
std::auto_ptr< te::da::DataSetTypeConverter > m_inVectorDsType
te::da::DataSourcePtr m_outDsrc