A singleton for keeping raster summaries (most statistics). It stores an internal map of raster conn info str and their respective summaries.
More...
#include <RasterSummaryManager.h>
A singleton for keeping raster summaries (most statistics). It stores an internal map of raster conn info str and their respective summaries.
- See also
- RasterSummary, BandSummary.
Definition at line 56 of file RasterSummaryManager.h.
◆ ~RasterSummaryManager()
te::rst::RasterSummaryManager::~RasterSummaryManager |
( |
| ) |
|
◆ RasterSummaryManager()
te::rst::RasterSummaryManager::RasterSummaryManager |
( |
| ) |
|
|
protected |
◆ add()
Adds a new entry in the summary manager.
- Parameters
-
raster | The raster to be added. |
summary | The raster summary of the respective raster. The manager will take its ownership. |
- Note
- If the raster was already added, the summary will be replaced.
◆ find()
It searches for a raster summary.
- Parameters
-
raster | The raster to be found. |
- Returns
- The calculated raster summary, or a null summary otherwise.
◆ get()
It searches for a raster summary. If not found it creates the summary and returns it.
- Parameters
-
raster | The raster to be found. |
types | The desired types of summary to be calculated (min, max, ...). |
readall | Force the reading the entire image (can be slow) for computing min and max values. |
- Returns
- The calculated raster summary.
◆ getInstance()
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
Definition at line 126 of file Singleton.h.
◆ getRealValuesRasterHistSize()
const unsigned int te::rst::RasterSummaryManager::getRealValuesRasterHistSize |
( |
| ) |
const |
Returns the current real values raster histogram size.
- Returns
- Returns the current real values raster histogram size.
- Note
- Default value: 255.
◆ remove()
void te::rst::RasterSummaryManager::remove |
( |
const Raster * |
raster | ) |
|
Removes the summary from the specified raster.
- Parameters
-
raster | The raster to remove the summary. |
◆ setRealValuesRasterHistSize()
void te::rst::RasterSummaryManager::setRealValuesRasterHistSize |
( |
const unsigned int |
newSize | ) |
|
Set the real values raster histogram size.
- Returns
- Returns the current real values raster histogram size.
- Note
- Default value: 255.
◆ te::common::Singleton< RasterSummaryManager >
◆ m_rasterSummaries
std::map<std::string, RasterSummary*> te::rst::RasterSummaryManager::m_rasterSummaries |
|
private |
◆ m_realValuesRasterHistSize
unsigned int te::rst::RasterSummaryManager::m_realValuesRasterHistSize |
|
private |
The documentation for this class was generated from the following file: