Utils.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/mobile/Utils.h
22 
23  \brief This file contains a set of utility functions used to export data to a geopackage file
24 */
25 
26 #ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_UTILS_H
27 #define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_UTILS_H
28 
29 //TerraLib
30 #include "../../../../maptools/AbstractLayer.h"
31 #include "../Config.h"
32 
33 namespace te
34 {
35  //Forward declaration
36  namespace da { class DataSource; }
37  namespace qt
38  {
39  namespace plugins
40  {
41  namespace terramobile
42  {
43  std::auto_ptr<te::da::DataSource> createGeopackage(std::string gpkgName);
44 
45  void exportToGPKG(te::map::AbstractLayerPtr layer, te::da::DataSource* dsGPKG, std::string outFileName, const te::gm::Envelope extent);
46 
47  std::auto_ptr<te::rst::Raster> NormalizeRaster(te::rst::Raster* inraster, double nmin, double nmax,
48  std::map<std::string, std::string> rInfo, std::string type);
49 
50  void queryGPKG(std::string query, te::da::DataSource* dsGPKG);
51 
52  std::vector<std::string> getItemNames(std::string type, te::da::DataSource* dsGPKG);
53 
54  } // end namespace terramobile
55  } // end namespace plugins
56  } // end namespace qt
57 } // end namespace te
58 
59 #endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_UTILS_H
void queryGPKG(std::string query, te::da::DataSource *dsGPKG)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
Definition: DataSource.h:118
std::auto_ptr< te::rst::Raster > NormalizeRaster(te::rst::Raster *inraster, double nmin, double nmax, std::map< std::string, std::string > rInfo, std::string type)
void exportToGPKG(te::map::AbstractLayerPtr layer, te::da::DataSource *dsGPKG, std::string outFileName, const te::gm::Envelope extent)
An Envelope defines a 2D rectangular region.
Definition: Envelope.h:51
An abstract class for raster data strucutures.
Definition: Raster.h:71
URI C++ Library.
std::vector< std::string > getItemNames(std::string type, te::da::DataSource *dsGPKG)
std::auto_ptr< te::da::DataSource > createGeopackage(std::string gpkgName)
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr