#include "RasterExamples.h"#include <terralib/raster/BandIterator.h>#include <terralib/raster/BandIteratorWindow.h>#include <terralib/raster/Grid.h>#include <terralib/raster/PositionIterator.h>#include <terralib/raster/RasterFactory.h>#include <terralib/raster/RasterIterator.h>#include <terralib/raster/Utils.h>#include <ctime>#include <iostream>#include <limits>#include <map>#include <set>#include <boost/random/mersenne_twister.hpp>#include <boost/random/uniform_int_distribution.hpp>Go to the source code of this file.
Functions | |
| void | ExemplifyBandIterator () |
| void | ExemplifyBandIteratorMask () |
| void | ExemplifyBandIteratorWindow () |
| void | ExemplifyIterators () |
| An example to test iterators over Bands, Windows, and Rasters. More... | |
| void | ExemplifyLineIterator () |
| void | ExemplifyPointSetIterator () |
| void | ExemplifyPolygonIterator () |
| void | ExemplifyRasterIterator () |
| void ExemplifyBandIterator | ( | ) |
Definition at line 23 of file ExemplifyIterators.cpp.
References band, te::rst::BandIterator< T >::begin(), te::rst::BandIterator< T >::end(), te::rst::Raster::getBand(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Raster::getValue(), and te::rst::RasterFactory::open().
Referenced by ExemplifyIterators().
| void ExemplifyBandIteratorMask | ( | ) |
Definition at line 76 of file ExemplifyIterators.cpp.
References band, te::rst::BandIteratorWithMask< T >::begin(), te::rst::BandIteratorWithMask< T >::end(), te::rst::FillRaster(), te::rst::Raster::getBand(), te::rst::AbstractBandIterator< T >::getColumn(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rst::AbstractBandIterator< T >::getRow(), te::rst::Raster::getValues(), te::sa::Grid, te::rst::RasterFactory::make(), te::rst::RasterFactory::open(), te::rst::Raster::setValues(), and te::dt::UCHAR_TYPE.
Referenced by ExemplifyIterators().
| void ExemplifyBandIteratorWindow | ( | ) |
Definition at line 164 of file ExemplifyIterators.cpp.
References band, compose::bands, te::rst::BandIteratorWindow< T >::begin(), te::rst::BandIteratorWindow< T >::end(), te::rst::Raster::getBand(), te::rst::BandIteratorWindow< T >::getColumn(), te::rst::Raster::getGrid(), te::rst::BandIteratorWindow< T >::getRow(), te::rst::BandIteratorWindow< T >::getValue(), te::sa::Grid, te::rst::RasterFactory::make(), te::rst::RasterFactory::open(), te::rst::Raster::setValue(), and te::dt::UCHAR_TYPE.
Referenced by ExemplifyIterators().
| void ExemplifyIterators | ( | ) |
An example to test iterators over Bands, Windows, and Rasters.
Definition at line 366 of file ExemplifyIterators.cpp.
References ExemplifyBandIterator(), ExemplifyBandIteratorMask(), ExemplifyBandIteratorWindow(), ExemplifyLineIterator(), ExemplifyPointSetIterator(), ExemplifyPolygonIterator(), and ExemplifyRasterIterator().
Referenced by main().
| void ExemplifyLineIterator | ( | ) |
Definition at line 280 of file ExemplifyIterators.cpp.
References te::rst::LineIterator< T >::begin(), te::rst::LineIterator< T >::end(), te::rst::Raster::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::rst::Raster::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), line, te::gm::LineStringType, and te::rst::RasterFactory::open().
Referenced by ExemplifyIterators().
| void ExemplifyPointSetIterator | ( | ) |
Definition at line 319 of file ExemplifyIterators.cpp.
References te::rst::PointSetIterator< T >::begin(), te::rst::PointSetIterator< T >::end(), te::rst::Raster::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::rst::Raster::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), and te::rst::RasterFactory::open().
Referenced by ExemplifyIterators().
| void ExemplifyPolygonIterator | ( | ) |
Definition at line 230 of file ExemplifyIterators.cpp.
References te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), te::rst::Raster::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::rst::RasterFactory::open(), te::gm::PolygonType, te::gm::CurvePolygon::push_back(), and te::gm::LineString::setPoint().
Referenced by ExemplifyIterators().
| void ExemplifyRasterIterator | ( | ) |
Definition at line 121 of file ExemplifyIterators.cpp.
References compose::bands, te::rst::RasterIterator< T >::begin(), te::rst::RasterIterator< T >::end(), and te::rst::RasterFactory::open().
Referenced by ExemplifyIterators().