AbstractTillingStrategy.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/vp/AbstractDataLoaderStrategy.h
22 
23  \brief Abstract class to represent a data loader strategy to load features from datasets using a tilling strategy
24  */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_ABSTRACTDATALOADERSTRATEGY_H
27 #define __TERRALIB_VP_INTERNAL_ABSTRACTDATALOADERSTRATEGY_H
28 
29  //Terralib include files
30 #include "Config.h"
31 
32 //STL include files
33 #include <string>
34 #include <vector>
35 
36 namespace te
37 {
38  namespace da
39  {
40  class DataAccess;
41  class DataSetType;
42  }
43 
44  namespace vp
45  {
46  /*!
47  \class AbstractDataLoaderStrategy
48 
49  \brief Abstract class to represent a data loader strategy to load features from datasets using a tilling strategy
50  */
52  {
53  public:
54 
55  //!< Constructor
57 
58  //!< Destructor
59  virtual ~AbstractTillingStrategy() = default;
60 
61  virtual te::da::DataAccess* subdivide(const te::da::DataAccess* inputDataAccess, std::size_t maxCoordinates) = 0;
62 
63  virtual std::vector<te::da::DataAccess*> subdivide(const std::vector<te::da::DataAccess*>& vecDataAccess, std::size_t maxCoordinates) = 0;
64 
65  virtual te::da::DataAccess* merge(te::da::DataAccess* inputDataAccess, const std::vector<std::string>& vecMergeColumns, bool dissolveGeometryCoordinateSubdivision) = 0;
66 
67  virtual std::vector<te::da::DataAccess*> merge(const std::vector<te::da::DataAccess*>& vecDataAccess, const std::vector< std::vector<std::string> >& vecMergeColumns, bool dissolveGeometryCoordinateSubdivision) = 0;
68  };
69  }
70 }
71 
72 #endif //__TERRALIB_VP_INTERNAL_ABSTRACTDATALOADERSTRATEGY_H
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::vp::AbstractTillingStrategy::subdivide
virtual std::vector< te::da::DataAccess * > subdivide(const std::vector< te::da::DataAccess * > &vecDataAccess, std::size_t maxCoordinates)=0
te::vp::AbstractTillingStrategy::merge
virtual std::vector< te::da::DataAccess * > merge(const std::vector< te::da::DataAccess * > &vecDataAccess, const std::vector< std::vector< std::string > > &vecMergeColumns, bool dissolveGeometryCoordinateSubdivision)=0
te::da::DataAccess
Class used to centralize and control access to data in terralib. It aims to create a high-level inter...
Definition: DataAccess.h:77
TEVPEXPORT
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
te::vp::AbstractTillingStrategy
Definition: AbstractTillingStrategy.h:52
te::vp::AbstractTillingStrategy::AbstractTillingStrategy
AbstractTillingStrategy()=default
< Constructor
te::vp::AbstractTillingStrategy::subdivide
virtual te::da::DataAccess * subdivide(const te::da::DataAccess *inputDataAccess, std::size_t maxCoordinates)=0
Config.h
Proxy configuration file for TerraView (see terraview_config.h).
te::vp::AbstractTillingStrategy::merge
virtual te::da::DataAccess * merge(te::da::DataAccess *inputDataAccess, const std::vector< std::string > &vecMergeColumns, bool dissolveGeometryCoordinateSubdivision)=0
te::vp::AbstractTillingStrategy::~AbstractTillingStrategy
virtual ~AbstractTillingStrategy()=default