An abstract class for raster data strucutures. More...
#include <Raster.h>
Public Member Functions | |
| Raster & | callOperator (std::complex< double >(*f)(std::complex< double >, std::complex< double >), const Raster &rhs) |
| It calls a parameter function f to apply in all pixels from two rasters, e.g. pixel = f(lhs, rhs);. More... | |
| virtual Raster * | clip (const std::vector< te::gm::Geometry const * > geometries, const std::map< std::string, std::string > &rinfo, const std::string &rType) const |
| Subsetting operation for clipping the raster. More... | |
| virtual AbstractData * | clone () const =0 |
| It returns a clone of this object. More... | |
| virtual bool | createMultiResolution (const unsigned int levels, const InterpolationMethod interpMethod)=0 |
| Create a sub-sampled multi-resolution pyramid. More... | |
| te::common::AccessPolicy | getAccessPolicy () const |
| Returns the raster access policy. More... | |
| virtual const Band * | getBand (std::size_t i) const =0 |
| Returns the raster i-th band. More... | |
| virtual Band * | getBand (std::size_t i)=0 |
| Returns the raster i-th band. More... | |
| virtual int | getBandDataType (std::size_t i) const =0 |
| Returns the data type in a particular band (or dimension). More... | |
| te::gm::Envelope * | getExtent () |
| Returns the geographic extension of the raster data. More... | |
| const te::gm::Envelope * | getExtent () const |
| Returns the geographic extension of the raster data. More... | |
| te::gm::Envelope * | getExtent (int srid, te::gm::Envelope *roi=0) const |
| Returns the geographic extension of the raster data, in a given SRS (distinct from its original one). More... | |
| Grid * | getGrid () |
| It returns the raster grid. More... | |
| const Grid * | getGrid () const |
| It returns the raster grid. More... | |
| virtual std::map< std::string, std::string > | getInfo () const =0 |
| It returns additional information about the raster. More... | |
| virtual void | getIValue (unsigned int c, unsigned int r, double &value, std::size_t b=0) const |
| Returns the imaginary attribute value in a complex band of a cell. More... | |
| virtual Raster * | getMultiResLevel (const unsigned int level) const =0 |
| Returns the required level of a multi-resolution pyramid or NULL if that level does not exists. More... | |
| virtual unsigned int | getMultiResLevelsCount () const =0 |
| Returns the current number of multi-resolution pyramid levels. More... | |
| const std::string & | getName () const |
| Returns the raster name. More... | |
| virtual std::size_t | getNumberOfBands () const =0 |
| Returns the number of bands (dimension of cells attribute values) in the raster. More... | |
| unsigned int | getNumberOfColumns () const |
| Returns the raster number of columns. More... | |
| unsigned int | getNumberOfRows () const |
| Returns the raster number of rows. More... | |
| Grid * | getResampledGrid (int scale) const |
| Return the raster grid for a specific scale. More... | |
| double | getResolutionX () const |
| Returns the raster horizontal (x-axis) resolution. More... | |
| double | getResolutionY () const |
| Returns the raster vertical (y-axis) resolution. More... | |
| int | getSRID () const |
| Returns the raster spatial reference system identifier. More... | |
| int | getTypeCode () const |
| It returns the data type code associated to the data value. More... | |
| virtual void | getValue (unsigned int c, unsigned int r, double &value, std::size_t b=0) const |
| Returns the attribute value of a band of a cell. More... | |
| virtual void | getValue (unsigned int c, unsigned int r, std::complex< double > &value, std::size_t b=0) const |
| Returns the imaginary attribute value in a complex band of a cell. More... | |
| virtual void | getValues (unsigned int c, unsigned int r, std::vector< double > &values) const |
| Returns the imaginary attribute values in all complex bands of a cell. More... | |
| virtual void | getValues (unsigned int c, unsigned int r, std::vector< std::complex< double > > &values) const |
| Returns the imaginary attribute values in all complex bands of a cell. More... | |
| virtual void | open (const std::map< std::string, std::string > &rinfo, te::common::AccessPolicy p=te::common::RAccess)=0 |
| Opens a raster. More... | |
| virtual Raster & | operator*= (Raster &rhs) |
| It returns the raster product (pixel by pixel). More... | |
| virtual Raster & | operator*= (std::complex< double > &cvalue) |
| It returns the product of a constant value to all pixels in the raster. More... | |
| virtual Raster & | operator+= (Raster &rhs) |
| It returns the raster sum (pixel by pixel). More... | |
| virtual Raster & | operator+= (std::complex< double > &cvalue) |
| It returns the sum of a constant value to all pixels in the raster. More... | |
| virtual Raster & | operator-= (Raster &rhs) |
| It returns the raster subtraction (pixel by pixel). More... | |
| virtual Raster & | operator-= (std::complex< double > &cvalue) |
| It returns the difference from all pixels in the raster to a constant value (pixels - constant). More... | |
| virtual Raster & | operator/= (Raster &rhs) |
| It returns the raster division (pixel by pixel). More... | |
| virtual Raster & | operator/= (std::complex< double > &cvalue) |
| It returns the division of all pixels in the raster by a constant value (pixels / constant). More... | |
| virtual Raster & | operator= (const Raster &rhs) |
| Assignment operator. More... | |
| virtual const Band & | operator[] (std::size_t i) const =0 |
| Access band in i position. More... | |
| virtual Band & | operator[] (std::size_t i)=0 |
| Access band in i position. More... | |
| Raster () | |
| Default constructor. More... | |
| Raster (Grid *grid, te::common::AccessPolicy p=te::common::RAccess) | |
| Constructor to create a raster from parameters. More... | |
| Raster (const Raster &rhs) | |
| Copy constructor. More... | |
| virtual void | rasterize (std::vector< te::gm::Geometry * > g, std::vector< double > vp, std::size_t b=0) |
| Rasterizes a given vector of geometries. More... | |
| virtual bool | removeMultiResolution ()=0 |
| Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one. More... | |
| virtual Raster * | resample (int method, unsigned int drow, unsigned int dcolumn, unsigned int height, unsigned int width, unsigned int newheight, unsigned int newwidth, const std::map< std::string, std::string > &rinfo) const |
| Resample a subset of the raster, given a box. More... | |
| virtual Raster * | resample (int method, int scale, const std::map< std::string, std::string > &rinfo) const |
| Resample raster. More... | |
| void | setAccessPolicy (te::common::AccessPolicy p) |
| Sets the raster access policy. More... | |
| virtual void | setIValue (unsigned int c, unsigned int r, const double value, std::size_t b=0) |
| Sets the imaginary attribute value in a complex band of a cell. More... | |
| void | setName (const std::string name) |
| Sets the raster name. More... | |
| virtual void | setValue (unsigned int c, unsigned int r, const double value, std::size_t b=0) |
| Sets the attribute value in a band of a cell. More... | |
| virtual void | setValue (unsigned int c, unsigned int r, const std::complex< double > &value, std::size_t b=0) |
| Sets the imaginary attribute value in a complex band of a cell. More... | |
| virtual void | setValues (unsigned int c, unsigned int r, const std::vector< double > &values) |
| Sets the imaginary attribute values in all complex bands of a cell. More... | |
| virtual void | setValues (unsigned int c, unsigned int r, const std::vector< std::complex< double > > &values) |
| Sets the imaginary attribute values in all complex bands of a cell. More... | |
| std::string | toString (void) const |
| It returns the data value in a string notation. More... | |
| virtual Raster * | transform (int srid, const std::map< std::string, std::string > &rinfo, int m=1) const |
| Reprojects this raster to a distinct SRS. This method reprojects this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in this raster. More... | |
| virtual Raster * | transform (int srid, double llx, double lly, double urx, double ury, const std::map< std::string, std::string > &rinfo, int m=1) const |
| Reprojects a squared portion of this raster to a distinct SRS. This method reprojects a squared portion of this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in the desired portion of this raster. More... | |
| virtual Raster * | transform (int srid, double llx, double lly, double urx, double ury, double resx, double resy, const std::map< std::string, std::string > &rinfo, int m=1) const |
| Reprojects a squared portion of this raster to another SRS with a desired resolution. More... | |
| virtual Raster * | trim (const te::gm::Envelope *env, const std::map< std::string, std::string > &rinfo) const |
| Subsetting operation for trimming (cropping) the raster. More... | |
| virtual void | vectorize (std::vector< te::gm::Geometry * > &g, std::size_t b, unsigned int mp=0, std::vector< double > *const polygonsValues=0) |
| Vectorizes a given raster band, using GDALPolygonize function. More... | |
| virtual | ~Raster () |
| Virtual destructor. More... | |
Protected Member Functions | |
| double | applyScale (int i, const double &v) const |
| Scales a value according to a specific resampling scale. More... | |
Protected Attributes | |
| Grid * | m_grid |
| The spatial support for raster data. More... | |
| std::string | m_name |
| The raster name. More... | |
| te::common::AccessPolicy | m_policy |
| The access policy, can be te::common::{NoAccess, RAccess, RWAccess, WAccess}. More... | |
An abstract class for raster data strucutures.
A raster data structure represents a geograhical area divided into rows and columns, which form a regular grid structure of cells. Each cell contains location co-ordinates and one or more attribute values.
This interface should be implemented by drivers that provide the real access to raster data.
Definition at line 71 of file src/terralib/raster/Raster.h.
| te::rst::Raster::Raster | ( | ) |
Default constructor.
Definition at line 51 of file src/terralib/raster/Raster.cpp.
| te::rst::Raster::Raster | ( | Grid * | grid, |
| te::common::AccessPolicy | p = te::common::RAccess |
||
| ) |
Constructor to create a raster from parameters.
| grid | The grid definition. The Raster will take its ownership. |
| p | Access Policy. |
Definition at line 57 of file src/terralib/raster/Raster.cpp.
| te::rst::Raster::Raster | ( | const Raster & | rhs | ) |
Copy constructor.
| rhs | The right-hand side Raster. |
Definition at line 63 of file src/terralib/raster/Raster.cpp.
References te::sa::Grid, and m_grid.
|
virtual |
Virtual destructor.
Reimplemented in te::gdal::Raster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Definition at line 71 of file src/terralib/raster/Raster.cpp.
References m_grid.
|
protected |
Scales a value according to a specific resampling scale.
| i | The scale to apply. |
| v | The value to be scaled. |
Definition at line 648 of file src/terralib/raster/Raster.cpp.
Referenced by getResampledGrid(), and resample().
| Raster& te::rst::Raster::callOperator | ( | std::complex< double >(*)(std::complex< double >, std::complex< double >) | f, |
| const Raster & | rhs | ||
| ) |
It calls a parameter function f to apply in all pixels from two rasters, e.g. pixel = f(lhs, rhs);.
| (*f) | a function with the signature complex<double>(*f)(complex<double>, complex<double>), const Raster& rhs) |
| rhs | The rhs raster to apply the function. |
|
virtual |
Subsetting operation for clipping the raster.
| geometries | A vector of pointers to valid geometries. |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
| rType | The name of the specific driver to create the raster. |
Definition at line 525 of file src/terralib/raster/Raster.cpp.
References te::rst::CropRaster().
|
pure virtualinherited |
It returns a clone of this object.
Implemented in te::dt::ByteArray, te::dt::SimpleData< T *, typeCode >, te::dt::DatePeriod, te::dt::TimePeriod, te::dt::TimeDuration, te::dt::Date, te::dt::TimeInstant, te::dt::TimePeriodTZ, te::dt::OrdinalPeriod, te::dt::Array, te::idl::IdlRaster, te::gm::LineString, te::mem::ExpansibleRaster, te::gm::CircularString, te::dt::DateDuration, te::dt::TimeInstantTZ, te::gm::CompoundCurve, te::gm::LinearRing, te::gm::MultiPolygon, te::dt::CompositeData, te::mem::CachedRaster, te::gm::Point, te::gm::Line, te::dt::OrdinalInstant, te::gm::CurvePolygon, te::gm::GeometryCollection, te::gdal::Raster, te::gm::PolyhedralSurface, te::gm::Polygon, te::gm::MultiLineString, te::gm::MultiPoint, te::rst::SynchronizedRaster, te::gm::MultiSurface, te::dt::SimpleData< T, typeCode >, te::dt::SimpleData< boost::int64_t, INT64_TYPE >, te::gm::MultiCurve, te::vp::ComplexData< T >, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Referenced by te::mem::DataSet::add(), te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::qt::widgets::TimeSliderWidget::addTrajectory(), te::rp::FeederConstRasterDirectory::applyGeometryRestriction(), te::qt::widgets::ContrastDialogForm::applyPreview(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), te::sa::SpatialWeightsExchanger::associateGeometry(), te::st::CoverageSeries::at(), te::st::Trajectory::at(), te::edit::SubtractAreaTool::buildPolygon(), te::edit::AggregateAreaTool::buildPolygon(), te::vp::GeometricOpMemory::CalculateTabularOp(), te::edit::Feature::clone(), te::fe::DistanceBuffer::clone(), te::st::TimeSeries::clone(), te::fe::BinarySpatialOp::clone(), create_ds_memory(), te::sa::GeneralizedProximityMatrix::createDataSet(), CreatingDataSetInMemory(), CreatingDataSetInMemoryGivingDt(), te::edit::MergeGeometriesTool::editingFinished(), te::st::NearestCoverageAtTimeInterp::estimate(), te::st::NearestValueAtTimeInterp::estimate(), te::st::NearestGeometryAtTimeInterp::estimate(), te::vp::Difference::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::ExtractGeometry(), te::stmem::DataSet::filter(), te::gm::FixGeometryTopology::fixTopology(), Geometry_Clone(), te::gm::GetAsMultiLineStringVector(), te::st::CoverageSeries::getCoverage(), te::st::STDataLoader::getCoverage(), te::st::Trajectory::getDistance(), te::st::Trajectory::getGeometry(), te::da::SpatialRestrictionVisitor::getGeometryRestriction(), te::gm::GetGeometryUnion(), te::edit::EditInfoTool::getInfo(), te::st::Trajectory::getPatch(), te::st::CoverageSeries::getPatch(), te::st::TimeSeries::getPatch(), te::st::GetType(), te::gm::Multi2Single(), te::gm::MultiLineToDefinedType(), te::stmem::DataSet::nearestObservations(), te::dt::new_clone(), te::mnt::ProfileDialog::onOkPushButtonClicked(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::gm::PrepareGeometriesToIntersection(), te::vp::BufferMemory::setBuffer(), te::vp::SetGeomAsMulti(), and te::da::ST_DistanceBuffer::ST_DistanceBuffer().
|
pure virtual |
Create a sub-sampled multi-resolution pyramid.
| levels | The number of pyramid levels to generate. |
| interpMethod | The used interpolation method. |
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::grib::Raster, te::rst::ProxyRaster, te::mem::Raster, and terralib4::Raster.
Referenced by te::qt::widgets::applyRasterMultiResolution(), and te::qt::widgets::MultiResolutionWidget::createMultiRes().
| te::common::AccessPolicy te::rst::Raster::getAccessPolicy | ( | ) | const |
Returns the raster access policy.
Definition at line 91 of file src/terralib/raster/Raster.cpp.
References m_policy.
Referenced by te::rp::Blender::blendIntoRaster1(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::qt::widgets::MultiResolutionWidget::createMultiRes(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::DecomposeBands(), te::rp::DirectPrincipalComponents(), te::rp::DirectWaveletAtrous(), te::rp::GeoMosaic::execute(), te::rp::TiePointsMosaic::execute(), te::rp::Contrast::execute(), te::mem::CachedBandBlocksManager::free(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::rp::TiePointsLocator::initialize(), te::rp::Blender::initialize(), te::rp::PostClassification::initialize(), te::rp::PCAFusion::initialize(), te::rp::Register::initialize(), te::rp::IHSFusion::initialize(), te::rp::Filter::initialize(), te::rp::WisperFusion::initialize(), te::rp::Skeleton::initialize(), te::rst::Interpolator::initialize(), te::rp::Classifier::initialize(), te::rp::MixtureModel::initialize(), te::rp::Segmenter::initialize(), te::rp::Contrast::initialize(), te::rp::InverseWaveletAtrous(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::rst::RasterSynchronizer::releaseBlock(), and te::rp::RemapValues().
|
pure virtual |
Returns the raster i-th band.
| i | The band index. |
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::rst::ProxyRaster, te::idl::IdlRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Referenced by te::rst::RasterSynchronizer::acquireBlock(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), ArithmeticWithRaster(), te::rst::BandIteratorWithMask< T >::BandIteratorWithMask(), te::rp::Blender::blendIntoRaster1(), BOOST_AUTO_TEST_SUITE(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::qt::widgets::ColorTransformDialog::buildOutputRaster(), te::mem::CachedBand::CachedBand(), te::rp::ComposeBands(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::mem::Raster::create(), te::rst::CreateCopy(), te::rp::Segmenter::createCutOffLinesTiff(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::ClassifierStrategy::createOutputRaster(), te::rp::SequenceMosaic::createRasterDataSet(), te::rst::CropRaster(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::rp::DirectPrincipalComponents(), te::rp::DirectWaveletAtrous(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::map::DrawRaster(), te::rst::RasterIterator< T >::end(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execDecorrelationEnhancement(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execLinearContrast(), te::rp::Contrast::execLogContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::Contrast::execSquareContrast(), te::rp::Contrast::execSquareRootContrast(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierMAPStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::PostClassification::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::Filter::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Skeleton::execute(), te::rp::ArithmeticOperations::execute(), te::rp::SequenceMosaic::execute(), te::rp::MixtureModel::execute(), te::rp::Segmenter::execute(), te::rp::Contrast::execute(), te::rp::CloudDetection::executeCloudDetection(), ExemplifyBandIterator(), ExemplifyBandIteratorMask(), ExemplifyBandIteratorWindow(), modis_dataset::impl::extract_block_data(), te::rst::FillRaster(), TsExpansibleRaster::fillWithNoDataValues(), te::mem::CachedBandBlocksManager::free(), te::rp::CloudDetection::generateCloudRaster(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::rst::RasterSummaryManager::get(), te::rst::SynchronizedBandBlocksManager::getBlockPointer(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::map::RasterTransformConfigurer::getChannelSelection(), te::ws::ogc::wms::WMSLayer::getData(), te::map::GetExtentRaster(), te::rp::RasterAttributes::getGLCM(), getIValue(), te::mnt::getMinMax(), te::attributefill::RasterToVector::getPixelDistinct(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::rp::IHSFusion::getRGBRange(), te::map::RasterLayer::getSchema(), te::rp::RasterAttributes::getStatisticsFromPolygon(), getValue(), getValues(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromBand(), te::rp::RasterAttributes::getValuesFromRaster(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::Blender::initialize(), te::rst::Interpolator::initialize(), te::rp::InverseWaveletAtrous(), te::rp::Skeleton::loadData(), te::rp::IHSFusion::loadIHSData(), te::rp::TiePointsLocatorStrategy::loadRasterData(), te::rp::PCAFusion::loadRessampledRaster(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::ColorMapWidget::onBandSelected(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::rst::RasterIterator< T >::RasterIterator(), rasterize(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::rp::RasterSlicing(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::rst::RasterSynchronizer::releaseBlock(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rst::Reproject(), resample(), te::rp::Filter::RobertsFilter(), te::mnt::TINCalculateGrid::run(), te::attributefill::RasterToVector::run(), te::rp::PostClassification::runPostClassification(), te::serialize::xml::Save(), te::rp::IHSFusion::saveIHSData(), setIValue(), setValue(), setValues(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), te::rst::SynchronizedBand::SynchronizedBand(), Texture(), te::mem::CachedBandBlocksManager::threadEntry(), toString(), trim(), te::rp::Filter::UserDefinedFilter(), and te::rst::Vectorizer::Vectorizer().
|
pure virtual |
Returns the raster i-th band.
| i | The band index. |
Implemented in te::mem::ExpansibleRaster, te::gdal::Raster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
|
pure virtual |
Returns the data type in a particular band (or dimension).
| i | The desired band. |
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::rst::ProxyRaster, te::idl::IdlRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
Referenced by te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::FilterDialogForm::applyPreview(), BOOST_AUTO_TEST_SUITE(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::rst::SynchronizedRaster::getBandDataType(), te::attributefill::RasterToVector::getTexture(), and Texture().
| te::gm::Envelope * te::rst::Raster::getExtent | ( | ) |
Returns the geographic extension of the raster data.
Definition at line 106 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getExtent(), and m_grid.
Referenced by te::qt::widgets::FusionWizard::adjustRasters(), te::mem::ExpansibleRaster::createMultiResolution(), CreatePolygons(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::wms::WMSLayerRenderer::drawRaster(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::map::DrawRaster(), ExemplifyLineIterator(), ExemplifyPointSetIterator(), ExemplifyPolygonIterator(), te::mnt::Shadow::GenerateImage(), getExtent(), getResampledGrid(), te::rp::Classifier::initialize(), te::rst::LineIterator< T >::LineIterator(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::rst::PointSetIterator< T >::PointSetIterator(), te::rst::Reproject(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::map::RasterLayer::setRasterInfo(), Texture(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), te::gdal::Raster::transform(), transform(), and te::tools::rastermanager::RasterManager::trim().
| const te::gm::Envelope * te::rst::Raster::getExtent | ( | ) | const |
Returns the geographic extension of the raster data.
Definition at line 111 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getExtent(), and m_grid.
| te::gm::Envelope * te::rst::Raster::getExtent | ( | int | srid, |
| te::gm::Envelope * | roi = 0 |
||
| ) | const |
Returns the geographic extension of the raster data, in a given SRS (distinct from its original one).
| srid | The target SRS id. |
| roi | Pointer to a region of interest. If NULL the original extenstion will be considered. |
Definition at line 116 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::geoToGrid(), getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), getNumberOfColumns(), getNumberOfRows(), getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::rst::Grid::gridToGeo(), m_grid, te::gm::Coord2D::x, and te::gm::Coord2D::y.
| te::rst::Grid * te::rst::Raster::getGrid | ( | ) |
It returns the raster grid.
Definition at line 96 of file src/terralib/raster/Raster.cpp.
References m_grid.
Referenced by TsExpansibleRaster::addBottomLinesTest(), TsExpansibleRaster::addLeftColumnsTest(), te::graph::AddRasterAttribute::AddRasterAttribute(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopLinesTest(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), ArithmeticWithRaster(), te::graph::LDDGraphBuilder::build(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::qt::widgets::ColorTransformDialog::buildOutputRaster(), te::rp::ComposeBands(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::mem::Raster::create(), te::rst::CreateCopy(), te::rp::Segmenter::createCutOffLinesTiff(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::mem::ExpansibleRaster::createMultiResolution(), te::rp::ClassifierStrategy::createOutputRaster(), te::rp::SequenceMosaic::createRasterDataSet(), te::rst::CropRaster(), te::rp::DecomposeBands(), te::rst::Vectorizer::detectEdge(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execDecorrelationEnhancement(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::PostClassification::execute(), te::rp::PCAFusion::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::Filter::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Skeleton::execute(), te::rp::SequenceMosaic::execute(), te::rp::MixtureModel::execute(), te::rp::Segmenter::execute(), te::rp::Contrast::execute(), ExemplifyBandIteratorMask(), ExemplifyBandIteratorWindow(), te::mnt::TINCalculateGrid::FillGridLinear(), te::mnt::TINCalculateGrid::FillGridQuintic(), te::rp::CloudDetection::generateCloudRaster(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::ws::ogc::wms::WMSLayer::getData(), te::map::GetExtentRaster(), te::ws::ogc::wms::GetLayerMapRaster(), te::ws::ogc::wms::GetMapRaster(), te::attributefill::GetMinMaxLineAndColumn(), te::attributefill::GetPercentOfEachClassByArea(), te::rst::GetRandomPointsInRaster(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), te::map::RasterLayer::getSchema(), te::attributefill::GetValuesFromBand(), te::sa::GridAdaptRadiusKernel(), te::sa::GridStatRadiusKernel(), te::rp::Blender::initialize(), te::rst::PolygonIterator< T >::initialize(), InterpolateIn(), te::rst::LineIterator< T >::LineIterator(), te::rp::PCAFusion::loadRessampledRaster(), MakeRasterCrop(), Mask(), ReadPixelTool::mouseReleaseEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), te::qt::widgets::MixtureModelDialog::on_coordTracked_changed(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_coordTracked(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay1_extentChanged(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_coordTracked(), te::qt::widgets::TiePointsLocatorDialog::on_mapDisplay2_extentChanged(), te::qt::widgets::MixtureModelDialog::on_mapDisplay_extentChanged(), te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), OpenRaster(), te::rst::PointSetIterator< T >::PointSetIterator(), te::rst::ProxyRaster::ProxyRaster(), te::gdal::Raster::Raster(), te::rp::RasterResample(), resample(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::sa::KernelOperation::runRasterKernel(), te::serialize::xml::Save(), te::rp::IHSFusion::saveIHSData(), SplitComplexImage(), te::rst::SynchronizedRaster::SynchronizedRaster(), and te::rst::Vectorizer::Vectorizer().
| const te::rst::Grid * te::rst::Raster::getGrid | ( | ) | const |
It returns the raster grid.
Definition at line 101 of file src/terralib/raster/Raster.cpp.
References m_grid.
|
pure virtual |
It returns additional information about the raster.
The return of thi smethod is driver dependent.
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::rst::ProxyRaster, te::grib::Raster, te::idl::IdlRaster, te::mem::Raster, and terralib4::Raster.
Referenced by getConnInfoStr(), te::rst::SynchronizedRaster::getInfo(), and te::serialize::xml::Save().
|
virtual |
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| b | A particular band of the cell attribute. Default value 0. |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Definition at line 240 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::getIValue().
Referenced by te::rst::Interpolator::bicubicGetValue().
Returns the required level of a multi-resolution pyramid or NULL if that level does not exists.
| level | Level of a multi-resolution pyramid. |
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::grib::Raster, te::rst::ProxyRaster, te::mem::Raster, and terralib4::Raster.
Referenced by te::map::DrawRaster(), and te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked().
|
pure virtual |
Returns the current number of multi-resolution pyramid levels.
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::grib::Raster, te::rst::ProxyRaster, te::mem::Raster, and terralib4::Raster.
Referenced by te::map::DrawRaster(), and te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo().
| const std::string & te::rst::Raster::getName | ( | ) | const |
Returns the raster name.
Definition at line 81 of file src/terralib/raster/Raster.cpp.
References m_name.
Referenced by te::map::DrawRaster(), and te::serialize::xml::Save().
|
pure virtual |
Returns the number of bands (dimension of cells attribute values) in the raster.
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::rst::ProxyRaster, te::grib::Raster, te::idl::IdlRaster, te::mem::Raster, and terralib4::Raster.
Referenced by te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::FilterDialogForm::applyPreview(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), TsExpansibleRaster::assertUniqueElement(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::mem::CachedRaster::CachedRaster(), te::qt::widgets::ClassifierDialog::ClassifierDialog(), te::rp::ComposeBands(), Contrast(), te::qt::widgets::ContrastDialog::ContrastDialog(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::mem::Raster::create(), te::rst::CreateCopy(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::SequenceMosaic::createRasterDataSet(), te::rst::CropRaster(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::rp::DirectPrincipalComponents(), te::rp::DirectWaveletAtrous(), te::mnt::ImageGenerationDialog::drawPreview(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::wms::WMSLayerRenderer::drawRaster(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::map::DrawRaster(), te::rp::Filter::ErosionFilter(), te::rp::GeoMosaic::execute(), te::rp::Filter::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Contrast::execute(), te::rp::CloudDetection::executeCloudDetection(), te::qt::widgets::MosaicWizard::executeGeoMosaic(), te::qt::widgets::MosaicWizard::executeSequenceMosaic(), te::qt::widgets::MosaicWizard::executeTiePointMosaic(), ExemplifyBandIteratorMask(), modis_dataset::impl::extract_block_data(), te::rst::FillRaster(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), te::rst::RasterSummaryManager::get(), te::map::RasterTransformConfigurer::getChannelSelection(), te::rp::RasterAttributes::getComplexValuesFromRaster(), te::ws::ogc::wms::WMSLayer::getData(), te::map::GetExtentRaster(), te::rp::ca::RasterInputAdaptor< DataType >::getFeaturesCount(), RasterInputAdaptor< DataType >::getFeaturesCount(), te::rp::ca::RasterOutputAdaptor< DataType >::getFeaturesCount(), RasterOutputAdaptor< DataType >::getFeaturesCount(), te::rp::RasterAttributes::getGLCM(), te::attributefill::GetPercentOfEachClassByArea(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), te::map::RasterLayer::getSchema(), te::rp::RasterAttributes::getStatisticsFromPolygon(), te::rst::Interpolator::getValues(), getValues(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromBand(), te::rp::RasterAttributes::getValuesFromRaster(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::TiePointsLocator::initialize(), te::rp::Blender::initialize(), te::rp::PCAFusion::initialize(), te::rp::Register::initialize(), te::rp::IHSFusion::initialize(), te::rp::Filter::initialize(), te::rp::WisperFusion::initialize(), te::rp::Skeleton::initialize(), te::rst::Interpolator::initialize(), te::rp::SequenceMosaic::initialize(), te::rp::Classifier::initialize(), te::rp::MixtureModel::initialize(), te::rp::Segmenter::initialize(), te::rp::Contrast::initialize(), te::tools::rastermanager::RasterManagerDialog::inputPushButton_clicked(), InterpolateIn(), te::rp::InversePrincipalComponents(), te::rp::InverseWaveletAtrous(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), MixtureModel(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::rp::Filter::ModeFilter(), ReadPixelTool::mouseReleaseEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::MixtureModelDialog::on_keyPressedOverMapDisplay(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::rst::LineIterator< T >::operator*(), te::rst::PointSetIterator< T >::operator*(), operator*=(), operator+=(), operator-=(), operator/=(), rasterize(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::rp::RasterSlicing(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::map::RasterTransform::RasterTransform(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rst::Reproject(), resample(), te::rp::Filter::RobertsFilter(), te::serialize::xml::Save(), te::qt::widgets::SegmenterDialog::SegmenterDialog(), te::map::RasterTransform::setBand2Band(), te::map::RasterTransform::setContrastGainsAndOffsets(), te::qt::widgets::RasterHistogramWidget::setInputRaster(), te::qt::widgets::SlicingColorMapWidget::setRaster(), te::qt::widgets::ColorMapWidget::setRaster(), setValues(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rst::SynchronizedRaster::SynchronizedRaster(), TsExpansibleRaster::testValues(), te::mem::CachedBandBlocksManager::threadEntry(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), toString(), trim(), te::rp::Filter::UserDefinedFilter(), and TsExpansibleRaster::writeValues().
| unsigned int te::rst::Raster::getNumberOfColumns | ( | ) | const |
Returns the raster number of columns.
Definition at line 215 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getNumberOfColumns(), and m_grid.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), TsExpansibleRaster::addBottomBandsTest(), TsExpansibleRaster::addBottomLinesTest(), TsExpansibleRaster::addLeftColumnsTest(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopBandsTest(), TsExpansibleRaster::addTopLinesTest(), te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::FilterDialogForm::applyPreview(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), ArithmeticWithRaster(), TsExpansibleRaster::assertUniqueElement(), te::mem::Band::Band(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rst::BandIteratorWithMask< T >::BandIteratorWithMask(), te::rp::Blender::blendIntoRaster1(), te::graph::LDDGraphBuilder::build(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::rp::Segmenter::calcBestBlockSize(), te::rst::Band::callOperator(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::mem::ExpansibleRaster::createMultiResolution(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::rp::DirectPrincipalComponents(), te::rp::DirectWaveletAtrous(), te::qt::widgets::Canvas::drawImage(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::GeoMosaic::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::SequenceMosaic::execute(), te::rp::Segmenter::execute(), te::rp::Contrast::execute(), ExemplifyBandIterator(), te::rst::FillBand(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::mnt::Shadow::GenerateImage(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), getExtent(), te::map::GetExtentRaster(), te::rp::RasterAttributes::getGLCM(), te::rst::Band::getHistogramI(), te::rst::Band::getHistogramR(), te::ws::ogc::wms::GetLayerMapRaster(), te::ws::ogc::wms::GetMapRaster(), te::rst::Band::getMaxValue(), te::rst::Band::getMeanValue(), te::mnt::getMinMax(), te::rst::Band::getMinValue(), te::attributefill::RasterToVector::getPixelDistinct(), te::rst::GetRandomPointsInRaster(), te::mnt::Shadow::getRasterElementLine(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), getResampledGrid(), te::rp::IHSFusion::getRGBRange(), te::rst::Band::getStdValue(), te::qt::widgets::ColorMapWidget::getValues(), te::graph::LDDGraphBuilder::getVertexId(), te::sa::GridAdaptRadiusKernel(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), te::sa::GridStatRadiusKernel(), te::mnt::SplineInterpolationGrassMitasova::IL_grid_calc(), te::rp::TiePointsLocator::initialize(), te::rp::Blender::initialize(), te::rp::Filter::initialize(), te::rp::Skeleton::initialize(), te::rst::Interpolator::initialize(), te::rst::PolygonIterator< T >::initialize(), te::rp::InverseWaveletAtrous(), te::rp::Skeleton::loadData(), te::rp::IHSFusion::loadIHSData(), te::rp::PCAFusion::loadRessampledRaster(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), ReadPixelTool::mouseReleaseEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), te::qt::widgets::MixtureModelDialog::on_keyPressedOverMapDisplay(), te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked(), Raster1Bit(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::idl::rp::RegionGrowingSegmenter(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rst::Reproject(), resample(), te::rp::Filter::RobertsFilter(), te::attributefill::RasterToVector::run(), te::rp::PostClassification::runPostClassification(), te::rp::IHSFusion::saveIHSData(), te::qt::widgets::RasterizationWizard::setDummy(), te::rp::Filter::SobelFilter(), SplitComplexImage(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), TsExpansibleRaster::testValues(), te::mem::TiledBand::TiledBand(), toString(), te::gdal::Raster::transform(), transform(), te::rp::Filter::UpdateConvBuffer(), te::rp::Filter::UserDefinedFilter(), te::rst::Vectorizer::Vectorizer(), and TsExpansibleRaster::writeValues().
| unsigned int te::rst::Raster::getNumberOfRows | ( | ) | const |
Returns the raster number of rows.
Definition at line 210 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getNumberOfRows(), and m_grid.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), TsExpansibleRaster::addBottomBandsTest(), TsExpansibleRaster::addBottomLinesTest(), TsExpansibleRaster::addLeftColumnsTest(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopBandsTest(), TsExpansibleRaster::addTopLinesTest(), te::qt::widgets::SegmenterWizardPage::apply(), te::qt::widgets::FilterDialogForm::applyPreview(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), ArithmeticWithRaster(), TsExpansibleRaster::assertUniqueElement(), te::mem::Band::Band(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rst::BandIteratorWithMask< T >::BandIteratorWithMask(), te::rp::Blender::blendIntoRaster1(), te::graph::LDDGraphBuilder::build(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::rp::Segmenter::calcBestBlockSize(), te::rst::Band::callOperator(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::mem::ExpansibleRaster::createMultiResolution(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::rp::DirectPrincipalComponents(), te::rp::DirectWaveletAtrous(), te::qt::widgets::Canvas::drawImage(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::GeoMosaic::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::SequenceMosaic::execute(), te::rp::Segmenter::execute(), te::rp::Contrast::execute(), ExemplifyBandIterator(), te::rst::FillBand(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::mnt::Shadow::GenerateImage(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), getExtent(), te::map::GetExtentRaster(), te::rp::RasterAttributes::getGLCM(), te::rst::Band::getHistogramI(), te::rst::Band::getHistogramR(), te::ws::ogc::wms::GetLayerMapRaster(), te::ws::ogc::wms::GetMapRaster(), te::rst::Band::getMaxValue(), te::rst::Band::getMeanValue(), te::mnt::getMinMax(), te::rst::Band::getMinValue(), te::attributefill::RasterToVector::getPixelDistinct(), te::rst::GetRandomPointsInRaster(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), getResampledGrid(), te::rp::IHSFusion::getRGBRange(), te::rst::Band::getStdValue(), te::qt::widgets::ColorMapWidget::getValues(), te::graph::LDDGraphBuilder::getVertexId(), te::sa::GridAdaptRadiusKernel(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), te::sa::GridStatRadiusKernel(), te::mnt::SplineInterpolationGrassMitasova::IL_grid_calc(), te::rp::TiePointsLocator::initialize(), te::rp::Blender::initialize(), te::rp::Filter::initialize(), te::rp::Skeleton::initialize(), te::rst::Interpolator::initialize(), te::rst::PolygonIterator< T >::initialize(), te::rp::InverseWaveletAtrous(), te::rp::Skeleton::loadData(), te::rp::IHSFusion::loadIHSData(), te::rp::PCAFusion::loadRessampledRaster(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), ReadPixelTool::mouseReleaseEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), te::qt::widgets::MixtureModelDialog::on_keyPressedOverMapDisplay(), te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked(), Raster1Bit(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::idl::rp::RegionGrowingSegmenter(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rst::Reproject(), resample(), te::rp::Filter::RobertsFilter(), te::attributefill::RasterToVector::run(), te::rp::PostClassification::runPostClassification(), te::rp::IHSFusion::saveIHSData(), te::qt::widgets::RasterizationWizard::setDummy(), te::rp::Filter::SobelFilter(), SplitComplexImage(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), TsExpansibleRaster::testValues(), te::mem::TiledBand::TiledBand(), toString(), te::gdal::Raster::transform(), transform(), te::rp::Filter::UpdateConvBuffer(), te::rp::Filter::UserDefinedFilter(), te::rst::Vectorizer::Vectorizer(), and TsExpansibleRaster::writeValues().
| te::rst::Grid * te::rst::Raster::getResampledGrid | ( | int | scale | ) | const |
Return the raster grid for a specific scale.
| scale | The desired sacale of interpolation (use - to shrink or + to enlarge). |
Definition at line 636 of file src/terralib/raster/Raster.cpp.
References applyScale(), getExtent(), getNumberOfColumns(), getNumberOfRows(), getResolutionX(), getResolutionY(), getSRID(), and te::sa::Grid.
Referenced by te::gdal::Raster::resample(), and resample().
| double te::rst::Raster::getResolutionX | ( | ) | const |
Returns the raster horizontal (x-axis) resolution.
Definition at line 220 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getResolutionX(), and m_grid.
Referenced by te::mnt::Shadow::calcLocalGradient(), te::rst::CropRaster(), te::map::DrawRaster(), te::rp::SequenceMosaic::execute(), getResampledGrid(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), InterpolateIn(), te::rst::LineIterator< T >::LineIterator(), Mask(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rst::Reproject(), te::attributefill::RasterToVector::run(), toString(), te::gdal::Raster::transform(), and trim().
| double te::rst::Raster::getResolutionY | ( | ) | const |
Returns the raster vertical (y-axis) resolution.
Definition at line 225 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getResolutionY(), and m_grid.
Referenced by te::mnt::Shadow::calcLocalGradient(), te::rst::CropRaster(), te::map::DrawRaster(), te::rp::SequenceMosaic::execute(), getResampledGrid(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), InterpolateIn(), te::rst::LineIterator< T >::LineIterator(), Mask(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rst::Reproject(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), toString(), te::gdal::Raster::transform(), and trim().
| int te::rst::Raster::getSRID | ( | ) | const |
Returns the raster spatial reference system identifier.
Definition at line 205 of file src/terralib/raster/Raster.cpp.
References te::rst::Grid::getSRID(), and m_grid.
Referenced by te::qt::widgets::FusionWizard::adjustRasters(), te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization(), BOOST_AUTO_TEST_CASE(), te::graph::LDDGraphBuilder::build(), te::rp::ComposeBands(), te::mem::ExpansibleRaster::createMultiResolution(), te::rst::CropRaster(), te::rst::Vectorizer::detectEdge(), te::qt::widgets::ContrastDialogForm::drawPreview(), te::qt::widgets::FilterDialogForm::drawPreview(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterSlicingWizardPage::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::map::DrawRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::GeoMosaic::execute(), te::qt::widgets::CloudDetectionDialog::execute(), te::rp::SequenceMosaic::execute(), ExemplifyLineIterator(), ExemplifyPointSetIterator(), getExtent(), te::attributefill::GetMinMaxLineAndColumn(), te::attributefill::GetPercentOfEachClassByArea(), te::rst::GetRandomPointsInRaster(), getResampledGrid(), te::attributefill::GetValuesFromBand(), te::rp::Classifier::initialize(), te::rst::PolygonIterator< T >::initialize(), te::rst::LineIterator< T >::LineIterator(), te::rp::PCAFusion::loadRessampledRaster(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::rst::PointSetIterator< T >::PointSetIterator(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::rst::Reproject(), resample(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::map::RasterLayer::setRasterInfo(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), toString(), te::gdal::Raster::transform(), transform(), and trim().
|
inlinevirtual |
It returns the data type code associated to the data value.
Implements te::dt::AbstractData.
Definition at line 362 of file src/terralib/raster/Raster.h.
References b, and te::dt::RASTER_TYPE.
|
virtual |
Returns the attribute value of a band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | To return the attribute value. |
| b | A particular band of the cell attribute. |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Definition at line 230 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::getValue().
Referenced by TsExpansibleRaster::addBottomBandsTest(), TsExpansibleRaster::addBottomLinesTest(), TsExpansibleRaster::addLeftColumnsTest(), te::graph::AddRasterAttribute::AddRasterAttribute(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopBandsTest(), TsExpansibleRaster::addTopLinesTest(), TsExpansibleRaster::assertUniqueElement(), te::rst::Interpolator::bicubicGetValue(), te::rst::Interpolator::bilinearGetValue(), te::graph::LDDGraphBuilder::build(), te::map::RasterTransform::checkAlphaValue(), te::tools::rastermanager::RasterManager::copyRaster(), te::rst::Vectorizer::detectEdge(), te::qt::widgets::Canvas::drawImage(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::WisperFusion::execute(), te::rp::ArithmeticOperations::execute(), ExemplifyBandIterator(), te::rp::ClassifierISOSegStrategy::fillRegionsThreadEntry(), te::rp::Segmenter::genImageHCutOffProfile(), te::rp::Segmenter::genImageVCutOffProfile(), te::map::RasterTransform::getBlue2ThreeBand(), te::map::RasterTransform::getCategorize(), te::rp::RasterAttributes::getComplexValuesFromRaster(), te::map::RasterTransform::getExtractRGB(), te::map::RasterTransform::getExtractRGBA(), te::rp::ca::RasterInputAdaptor< DataType >::getFeature(), RasterInputAdaptor< DataType >::getFeature(), te::rp::RasterAttributes::getGLCM(), te::map::RasterTransform::getGreen2ThreeBand(), te::map::RasterTransform::getInterpolate(), te::mnt::getMinMax(), te::map::RasterTransform::getMono2ThreeBand(), te::attributefill::GetPercentOfEachClassByArea(), te::qt::widgets::DefaultFeatureInfoMaker::getRasterInfo(), te::map::RasterTransform::getRecode(), te::map::RasterTransform::getRed2ThreeBand(), te::qt::widgets::ColorMapWidget::getValues(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromRaster(), te::sa::GridAdaptRadiusKernel(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), te::rp::SegmenterRegionGrowingMeanStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingBaatzStrategy::initializeSegments(), te::rp::InverseWaveletAtrous(), ReadPixelTool::mouseReleaseEvent(), te::rst::Interpolator::nearestNeighborGetValue(), te::rp::NormalizeRaster(), te::qt::widgets::MixtureModelDialog::on_keyPressedOverMapDisplay(), te::rst::LineIterator< T >::operator()(), te::rst::PointSetIterator< T >::operator()(), te::rst::LineIterator< T >::operator*(), te::rst::PointSetIterator< T >::operator*(), te::rst::LineIterator< T >::operator[](), te::rst::PointSetIterator< T >::operator[](), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::rp::RemapValues(), te::attributefill::RasterToVector::run(), te::rst::Vectorizer::run(), te::map::RasterTransform::setBand2Band(), te::map::RasterTransform::setBlue2ThreeBand(), te::map::RasterTransform::setCategorize(), te::map::RasterTransform::setExtractRGB(), te::map::RasterTransform::setExtractRGBA(), te::map::RasterTransform::setGreen2ThreeBand(), te::map::RasterTransform::setInterpolate(), te::map::RasterTransform::setMono2ThreeBand(), te::map::RasterTransform::setRecode(), te::map::RasterTransform::setRed2ThreeBand(), SplitComplexImage(), te::rst::Vectorizer::startingEdgeTest(), and TsExpansibleRaster::testValues().
|
virtual |
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The complex attribute value to be assigned (real, imaginary). |
| b | A particular band of the cell attribute. Default value 0. |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Definition at line 250 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::getValue().
|
virtual |
Returns the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| values | A vector of attribute values to be assigned (not complex values). |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Definition at line 260 of file src/terralib/raster/Raster.cpp.
References b, getBand(), getNumberOfBands(), and te::rst::Band::getValue().
Referenced by te::rst::Copy(), te::tools::rastermanager::RasterManager::copyRaster(), te::rst::CropRaster(), ExemplifyBandIteratorMask(), te::qt::widgets::ClassifierWizardPage::getEDSamples(), te::map::GetExtentRaster(), te::qt::widgets::ClassifierWizardPage::getMAPSamples(), te::mnt::Shadow::getRasterElementLine(), te::qt::widgets::ClassifierWizardPage::getSAMSamples(), and trim().
|
virtual |
Returns the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| values | A vector of complex attribute values to be assigned (real, imaginary). |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Definition at line 274 of file src/terralib/raster/Raster.cpp.
References b, getBand(), getNumberOfBands(), and te::rst::Band::getValue().
|
pure virtual |
Opens a raster.
| rinfo | The information needed by each driver to open the raster. |
| p | Access Policy. |
Implemented in te::rst::SynchronizedRaster, te::idl::IdlRaster, te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
|
virtual |
It returns the raster product (pixel by pixel).
| rhs | The raster to be multiplied, right-hand side. |
Definition at line 372 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the product of a constant value to all pixels in the raster.
| cvalue | The constant value to be multiplied. |
Definition at line 382 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the raster sum (pixel by pixel).
| rhs | The raster to be added, right-hand side. |
Definition at line 336 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the sum of a constant value to all pixels in the raster.
| cvalue | The constant value to be added. |
Definition at line 346 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the raster subtraction (pixel by pixel).
| rhs | The raster to be subtracted, right-hand side. |
Definition at line 354 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the difference from all pixels in the raster to a constant value (pixels - constant).
| cvalue | The constant value to be subtracted. |
Definition at line 364 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the raster division (pixel by pixel).
| rhs | The raster to be divided, right-hand side. |
Definition at line 390 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
It returns the division of all pixels in the raster by a constant value (pixels / constant).
| cvalue | The constant value to be divided. |
Definition at line 400 of file src/terralib/raster/Raster.cpp.
References b, and getNumberOfBands().
|
virtual |
Assignment operator.
| rhs | The right-hand-side copy that would be used to copy from. |
Definition at line 408 of file src/terralib/raster/Raster.cpp.
References te::sa::Grid, m_grid, m_name, m_policy, te::common::RWAccess, and te::common::WAccess.
Referenced by te::gdal::Raster::operator=().
|
pure virtual |
Access band in i position.
| i | The band index. |
Implemented in te::mem::ExpansibleRaster, te::mem::CachedRaster, te::gdal::Raster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
|
pure virtual |
Access band in i position.
| i | The band index. |
Implemented in te::mem::ExpansibleRaster, te::mem::CachedRaster, te::gdal::Raster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::rst::ProxyRaster, te::grib::Raster, te::mem::Raster, and terralib4::Raster.
|
virtual |
Rasterizes a given vector of geometries.
| g | A vector of geometries to be rasterized. |
| vp | A vector of pixel values for each geometry. Can have the same size of the vector of geometries, or be null. |
| b | The band index to rasterize. |
Definition at line 698 of file src/terralib/raster/Raster.cpp.
References b, band, te::rst::PolygonIterator< T >::begin(), te::rst::PolygonIterator< T >::end(), getBand(), te::rst::PolygonIterator< T >::getColumn(), getNumberOfBands(), te::rst::Band::getRaster(), te::rst::PolygonIterator< T >::getRow(), te::common::TaskProgress::isActive(), te::gm::Multi2Single(), te::common::TaskProgress::pulse(), te::common::TaskProgress::setMessage(), te::common::TaskProgress::setTotalSteps(), setValue(), and TE_TR.
Referenced by RasterizePolygonSet().
|
pure virtual |
Remove/Destroy a sub-sampled multi-resolution pyramid, if there is one.
Implemented in te::gdal::Raster, te::mem::ExpansibleRaster, te::mem::CachedRaster, te::rst::SynchronizedRaster, te::idl::IdlRaster, te::grib::Raster, te::rst::ProxyRaster, te::mem::Raster, and terralib4::Raster.
|
virtual |
Resample a subset of the raster, given a box.
| method | The method of interpolation. |
| drow | The starting row to make a subset of the image. |
| dcolumn | The starting column to make a subset of the image. |
| height | The height of the subset. |
| width | The width of the subset. |
| newheight | The resampled height of the new raster. |
| newwidth | The resampled width of the new raster. |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
Definition at line 575 of file src/terralib/raster/Raster.cpp.
References b, compose::bands, getBand(), getGrid(), getNumberOfBands(), getNumberOfColumns(), getNumberOfRows(), getSRID(), te::rst::Interpolator::getValues(), te::sa::Grid, te::rst::Grid::gridToGeo(), te::rst::RasterFactory::make(), setValues(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::tools::rastermanager::RasterManager::changeResolution(), te::qt::widgets::ClippingWizard::executeDimensionClipping(), te::gdal::Raster::resample(), and ResampleRaster().
|
virtual |
Resample raster.
| method | The method of interpolation. |
| scale | The scale of interpolation (use - to shrink or + to enlarge). |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
Reimplemented in te::gdal::Raster.
Definition at line 533 of file src/terralib/raster/Raster.cpp.
References applyScale(), b, compose::bands, getBand(), getNumberOfBands(), getNumberOfColumns(), getNumberOfRows(), getResampledGrid(), te::rst::Interpolator::getValues(), te::sa::Grid, te::rst::RasterFactory::make(), and setValues().
| void te::rst::Raster::setAccessPolicy | ( | te::common::AccessPolicy | p | ) |
Sets the raster access policy.
| p | The new raster access policy. |
Definition at line 86 of file src/terralib/raster/Raster.cpp.
|
virtual |
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| b | A particular band of the cell attribute. Default value 0. |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Definition at line 245 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::setIValue().
Referenced by te::rp::PostClassification::runPostClassification().
| void te::rst::Raster::setName | ( | const std::string | name | ) |
Sets the raster name.
| name | The new raster name. |
Definition at line 76 of file src/terralib/raster/Raster.cpp.
References m_name.
|
virtual |
Sets the attribute value in a band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| b | A particular band of the cell attribute. |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Definition at line 235 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::setValue().
Referenced by TsExpansibleRaster::addBottomBandsTest(), TsExpansibleRaster::addBottomLinesTest(), TsExpansibleRaster::addLeftColumnsTest(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopBandsTest(), TsExpansibleRaster::addTopLinesTest(), te::tools::rastermanager::RasterManager::copyRaster(), te::rp::WisperFusion::execute(), te::rp::ArithmeticOperations::execute(), ExemplifyBandIteratorWindow(), te::rp::rg::exportSegs2Tif(), te::mnt::TINCalculateGrid::FillGridLinear(), te::mnt::TINCalculateGrid::FillGridQuintic(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::mnt::SplineInterpolationGrass::generateGrid(), te::mnt::Shadow::GenerateImage(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::sa::GridAdaptRadiusKernel(), te::sa::GridKernelNormalize(), te::sa::GridRatioKernel(), te::sa::GridStatRadiusKernel(), te::mnt::SplineInterpolationGrassMitasova::IL_grid_calc(), InterpolateIn(), te::rp::InverseWaveletAtrous(), te::rp::PCAFusion::loadRessampledRaster(), Mask(), te::rp::Filter::MedianFilter(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), Raster1Bit(), rasterize(), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::rp::RemapValues(), te::mnt::Slope::run(), te::mnt::CalculateGrid::run(), te::map::RasterTransform::setBand2Band(), te::qt::widgets::RasterizationWizard::setDummy(), te::rp::ca::RasterOutputAdaptor< DataType >::setFeature(), RasterOutputAdaptor< DataType >::setFeature(), SplitComplexImage(), and TsExpansibleRaster::writeValues().
|
virtual |
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The complex attribute value to be assigned (real, imaginary). |
| b | A particular band of the cell attribute. Default value 0. |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Definition at line 255 of file src/terralib/raster/Raster.cpp.
References getBand(), and te::rst::Band::setValue().
|
virtual |
Sets the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| values | A vector of attribute values to be assigned (not complex values). |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Definition at line 288 of file src/terralib/raster/Raster.cpp.
References b, getBand(), getNumberOfBands(), and te::rst::Band::setValue().
Referenced by te::rst::Copy(), te::tools::rastermanager::RasterManager::copyRaster(), ExemplifyBandIteratorMask(), te::map::GetExtentRaster(), te::mnt::MNTGenerationDialog::onOkPushButtonClicked(), resample(), te::map::RasterTransform::setBlue2ThreeBand(), te::map::RasterTransform::setCategorize(), te::map::RasterTransform::setExtractRGB(), te::map::RasterTransform::setExtractRGBA(), te::map::RasterTransform::setGreen2ThreeBand(), te::map::RasterTransform::setInterpolate(), te::map::RasterTransform::setMono2ThreeBand(), te::map::RasterTransform::setRecode(), te::map::RasterTransform::setRed2ThreeBand(), and trim().
|
virtual |
Sets the imaginary attribute values in all complex bands of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| values | A vector of complex attribute values to be assigned (real, imaginary). |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Definition at line 296 of file src/terralib/raster/Raster.cpp.
References b, getBand(), getNumberOfBands(), and te::rst::Band::setValue().
|
virtual |
It returns the data value in a string notation.
Implements te::dt::AbstractData.
Definition at line 304 of file src/terralib/raster/Raster.cpp.
References b, getBand(), te::rst::Grid::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::rst::Band::getMaxValue(), te::rst::Band::getMeanValue(), te::rst::Band::getMinValue(), getNumberOfBands(), getNumberOfColumns(), getNumberOfRows(), te::rst::Band::getOffsetValue(), te::rst::Band::getProperty(), getResolutionX(), getResolutionY(), te::rst::Band::getScaleValue(), getSRID(), te::rst::Band::getStdValue(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::rst::BandProperty::m_description, m_grid, and m_name.
Referenced by ArithmeticWithRaster(), and te::tools::rastermanager::RasterManager::getRasterInfo().
|
virtual |
Reprojects this raster to a distinct SRS. This method reprojects this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in this raster.
| srid | The target SRS identifier. |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
| m | The method of interpolation to apply (default 1 = nearest neighbor). |
Definition at line 656 of file src/terralib/raster/Raster.cpp.
References getExtent(), te::gm::Envelope::getHeight(), getNumberOfColumns(), getNumberOfRows(), getSRID(), te::gm::Envelope::getWidth(), te::rst::Reproject(), and te::gm::Envelope::transform().
Referenced by te::qt::widgets::FusionWizard::adjustRasters(), and ReprojectRasterUsingDriver().
|
virtual |
Reprojects a squared portion of this raster to a distinct SRS. This method reprojects a squared portion of this raster to a distinct SRS. The output resolution is calculated in order to maintain the same number of pixels as in the desired portion of this raster.
| srid | The target SRS identifier. |
| llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
| lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
| urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
| url | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
| m | The method of interpolation to apply (default 1 = nearest neighbor). |
Definition at line 679 of file src/terralib/raster/Raster.cpp.
References te::rst::Reproject().
|
virtual |
Reprojects a squared portion of this raster to another SRS with a desired resolution.
This method reprojects a squared portion of this raster to another SRS. The number of pixels in the output will be calculated according to the portion being reprojected and the asked resolution.
| srid | The SRS id of the target SRS. |
| llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
| lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
| urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
| url | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
| resx | The output x resolution (in units of the target SRS). |
| resx | The output y resolution (in units of the target SRS). |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
| m | The method of interpolation to apply (default 1 = nearest neighbor). |
Reimplemented in te::gdal::Raster.
Definition at line 684 of file src/terralib/raster/Raster.cpp.
References te::rst::Reproject().
|
virtual |
Subsetting operation for trimming (cropping) the raster.
| env | The envelope (inside original extent) to crop the raster. |
| rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
Definition at line 424 of file src/terralib/raster/Raster.cpp.
References b, compose::bands, te::rst::Grid::geoToGrid(), getBand(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), getNumberOfBands(), te::rst::Grid::getNumberOfColumns(), te::rst::Grid::getNumberOfRows(), getResolutionX(), getResolutionY(), getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), getValues(), te::gm::Coord2D::getX(), te::gm::Coord2D::getY(), te::sa::Grid, te::rst::Grid::gridToGeo(), m_grid, te::rst::RasterFactory::make(), and setValues().
Referenced by te::qt::widgets::FusionWizard::adjustRasters(), te::qt::widgets::ClippingWizard::executeLayerExtentClipping(), te::qt::widgets::FilterDialogForm::getRasterFromROI(), te::qt::widgets::ColorTransformDialog::getRasterFromROI(), MakeRasterCrop(), and te::tools::rastermanager::RasterManager::trim().
|
virtual |
Vectorizes a given raster band, using GDALPolygonize function.
| g | A reference to a vector of geometries. Will be filled with geometries found in band. |
| b | The band index to vectorize. |
| polygonsValues | A pointer to a valid vector where the raster pixel values related to each polygon will be stored, or a NULL pointer. |
Definition at line 689 of file src/terralib/raster/Raster.cpp.
References te::rst::Vectorizer::run().
Referenced by te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization(), BOOST_AUTO_TEST_CASE(), te::qt::widgets::CloudDetectionDialog::vectorize(), and VectorizeRaster().
|
protected |
The spatial support for raster data.
Definition at line 699 of file src/terralib/raster/Raster.h.
Referenced by te::mem::ExpansibleRaster::addBottomLines(), te::mem::ExpansibleRaster::addLeftColumns(), te::mem::ExpansibleRaster::addRightColumns(), te::mem::ExpansibleRaster::addTopLines(), te::mem::ExpansibleRaster::clone(), te::mem::Raster::close(), te::grib::Raster::close(), te::mem::Raster::create(), te::gdal::Raster::create(), getExtent(), getGrid(), getNumberOfColumns(), getNumberOfRows(), getResolutionX(), getResolutionY(), getSRID(), te::idl::IdlRaster::IdlRaster(), te::mem::Raster::open(), te::gdal::Raster::open(), operator=(), te::rst::ProxyRaster::ProxyRaster(), terralib4::Raster::Raster(), te::gdal::Raster::Raster(), Raster(), te::grib::Raster::setGridLatLngRep(), te::grib::Raster::setGridSatelliteRep(), te::rst::SynchronizedRaster::SynchronizedRaster(), toString(), trim(), and ~Raster().
|
protected |
The raster name.
Definition at line 698 of file src/terralib/raster/Raster.h.
Referenced by te::mem::Raster::close(), te::gdal::Raster::create(), getName(), te::gdal::Raster::open(), operator=(), setName(), and toString().
|
protected |
The access policy, can be te::common::{NoAccess, RAccess, RWAccess, WAccess}.
Definition at line 700 of file src/terralib/raster/Raster.h.
Referenced by te::mem::Raster::create(), te::gdal::Raster::create(), getAccessPolicy(), te::gdal::Raster::getMultiResLevel(), te::idl::IdlRaster::IdlRaster(), te::mem::Raster::open(), te::gdal::Raster::open(), operator=(), te::gdal::Raster::Raster(), setAccessPolicy(), and te::gdal::Raster::~Raster().