Loading...
Searching...
No Matches
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
33namespace te
34{
35 //Forward declaration
36 namespace da { class DataSource; }
37
38 namespace qt
39 {
40 namespace plugins
41 {
42 namespace terramobile
43 {
44 std::auto_ptr<te::da::DataSource> createGeopackage(std::string gpkgName);
45
46 void exportToGPKG(te::map::AbstractLayerPtr layer, te::da::DataSource* dsGPKG, std::string outFileName, const te::gm::Envelope extent);
47
48 std::auto_ptr<te::rst::Raster> NormalizeRaster(te::rst::Raster* inraster, double nmin, double nmax,
49 std::map<std::string, std::string> rInfo, std::string type);
50
51 void queryGPKG(std::string query, te::da::DataSource* dsGPKG);
52
53 std::vector<std::string> getItemNames(std::string type, te::da::DataSource* dsGPKG);
54
55 void fillExtraColumns(te::da::DataSource* ds, std::string dataSetName);
56
57 } // end namespace terramobile
58 } // end namespace plugins
59 } // end namespace qt
60} // end namespace te
61
62#endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_UTILS_H
An abstract class for data providers like a DBMS, Web Services or a regular file.
Definition: DataSource.h:120
An Envelope defines a 2D rectangular region.
Definition: Envelope.h:52
An abstract class for raster data strucutures.
Definition: Raster.h:72
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
void fillExtraColumns(te::da::DataSource *ds, std::string dataSetName)
std::auto_ptr< te::da::DataSource > createGeopackage(std::string gpkgName)
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 queryGPKG(std::string query, te::da::DataSource *dsGPKG)
void exportToGPKG(te::map::AbstractLayerPtr layer, te::da::DataSource *dsGPKG, std::string outFileName, const te::gm::Envelope extent)
std::vector< std::string > getItemNames(std::string type, te::da::DataSource *dsGPKG)
TerraLib.