Go to the documentation of this file.
25 #ifndef __TERRALIB_RP_INTERNAL_FEEDERSRASTER_H
26 #define __TERRALIB_RP_INTERNAL_FEEDERSRASTER_H
30 #include "../raster/Raster.h"
31 #include "../geometry/Geometry.h"
55 virtual bool moveTo(
const unsigned int index ) = 0;
86 bool moveTo(
const unsigned int index );
114 const std::vector< std::map< std::string, std::string > >& rInfos );
130 std::vector< std::map< std::string, std::string > >
m_rInfos;
152 const std::vector< const te::rst::Raster* > rastersPtrsVec,
153 const std::vector< std::string >& rTypes,
154 const std::vector< std::map< std::string, std::string > >& rInfos );
173 std::vector< std::map< std::string, std::string > >
m_rInfos;
197 const bool recursive,
198 const std::string& rType,
199 const bool sortFileNames,
200 const std::vector< std::string >& fileExtensions );
213 const bool recursive,
214 const std::string& rType,
215 const bool sortFileNames,
216 const std::vector< std::string >& fileExtensions,
218 const bool ignoreInvalidRasterFiles );
266 const bool recursive,
267 const std::string& rType,
268 const bool sortFileNames,
269 const std::vector< std::string >& fileExtensions,
271 const bool ignoreInvalidRasterFiles );
276 #endif // __TERRALIB_RP_INTERNAL_FEEDERSRASTER_H
bool moveNext()
Advances to the next sequence obeject.
std::unique_ptr< te::rst::Raster > m_currentRasterPtr
bool moveNext()
Advances to the next sequence obeject.
unsigned int getCurrentOffset() const
std::vector< std::string > m_rTypes
unsigned int getCurrentOffset() const
std::vector< std::string > m_allRasterFileNames
virtual unsigned int getObjsCount() const =0
An abstract class for raster data strucutures.
FeederConstRasterInfoAndVector(const std::vector< const te::rst::Raster * > rastersPtrsVec, const std::vector< std::string > &rTypes, const std::vector< std::map< std::string, std::string > > &rInfos)
Constructor from a vector of input rasters infos;.
~FeederConstRasterVector()
Feeder from a input rasters.
std::vector< std::string >::size_type m_currentOffset
std::vector< std::map< std::string, std::string > > m_rInfos
bool moveTo(const unsigned int index)
Jump to the given object index.
void reset()
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct...
std::unique_ptr< te::rst::Raster > m_currentRasterHandler
std::unique_ptr< te::gm::Geometry > m_restrictionGeomPtr
FeederConstRasterInfoAndVector()
unsigned int getObjsCount() const
te::rst::Raster const * getCurrentObj() const
~FeederConstRasterDirectory()
te::rst::Raster const * getCurrentObj() const
const std::string & getCurrentRasterFileName()
Returns the current raster file name.
virtual void reset()=0
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct...
std::vector< unsigned int >::size_type m_selectedRasterIndexesOffset
std::vector< const te::rst::Raster * >::size_type m_CurrentRasterOffset
A feeder from an input directory name.
std::vector< const te::rst::Raster * >::size_type m_currentOffset
FeederConstRasterInfo(const std::vector< std::string > &rTypes, const std::vector< std::map< std::string, std::string > > &rInfos)
Constructor from a vector of input rasters infos;.
te::rst::Raster const * m_currentRasterNakedPtr
~FeederConstRasterInfoAndVector()
std::vector< const te::rst::Raster * > m_rasters
std::vector< const te::rst::Raster * > m_rasters
unsigned int getCurrentOffset() const
void applyGeometryRestriction(const te::gm::Geometry &restrictionGeom)
Apply a new geometry intersect restriction selecting only those rasters intersecting the given geomet...
bool moveTo(const unsigned int index)
Jump to the given object index.
FeederConstRasterVector(const std::vector< const te::rst::Raster * > rasters)
Constructor from a vector of input rasters pointers;.
FeederConstRasterDirectory(const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions, te::gm::Geometry const *const restrictionGeomPtr, const bool ignoreInvalidRasterFiles)
Constructor from an input directory name with a restriction geometry.
bool moveNext()
Advances to the next sequence obeject.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
FeederConstRasterVector()
unsigned int getObjsCount() const
virtual bool moveTo(const unsigned int index)=0
Jump to the given object index.
void reset()
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct...
FeederConstRasterDirectory(const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions)
Constructor from an input directory name.
std::vector< std::map< std::string, std::string > > m_rInfos
bool moveTo(const unsigned int index)
Jump to the given object index.
unsigned int getObjsCount() const
std::vector< unsigned int > m_selectedRastersIndexes
A feeder from a input rasters vector;.
virtual ~FeederConstRaster()
FeederConstRasterDirectory()
virtual unsigned int getCurrentOffset() const =0
virtual te::rst::Raster const * getCurrentObj() const =0
Proxy configuration file for TerraView (see terraview_config.h).
bool m_ignoreInvalidRasterFiles
If true, invalid raster files will be ignored.
bool moveNext()
Advances to the next sequence obeject.
te::rst::Raster const * getCurrentObj() const
te::rst::Raster const * getCurrentObj() const
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
bool initialize(const std::string &directoryName, const bool recursive, const std::string &rType, const bool sortFileNames, const std::vector< std::string > &fileExtensions, te::gm::Geometry const *const restrictionGeomPtr, const bool ignoreInvalidRasterFiles)
Initialize this instance.
unsigned int getObjsCount() const
std::unique_ptr< te::rst::Raster > m_currentRasterPtr
unsigned int getCurrentOffset() const
void reset()
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct...
std::vector< te::gm::Polygon > m_allRastersBoundingBoxes
bool moveTo(const unsigned int index)
Jump to the given object index.
std::vector< std::string > m_rTypes
void reset()
Reset the feeder to the first position (subsequent accesses will start from the first sequence obejct...
virtual bool moveNext()=0
Advances to the next sequence obeject.