These routines show how to use the raster module and the GDAL data source module. More...
#include "Config.h"Go to the source code of this file.
Functions | |
| void | ArithmeticWithRaster () |
| Creates a new raster based on raster arithmetic operations. More... | |
| void | ExemplifyDataAccess () |
| A set of examples using GDAL/raster/dataaccess support. More... | |
| void | ExemplifyIterators () |
| An example to test iterators over Bands, Windows, and Rasters. More... | |
| void | GribExample () |
| An example to use the Grib driver. More... | |
| void | GribPolygonExample () |
| An example to use Grib and Geometry. More... | |
| void | LoadModules () |
| It loads the data source drivers. More... | |
| void | MakeRasterCrop () |
| Creates an image crop with a providen envelope. More... | |
| void | PostGISRaster () |
| This example shows how to use the GDAL PostGIS Raster support. More... | |
| void | Raster1Bit () |
| This example shows how to create an 1bit Raster in memory, and how to save an 1bit Raster in Tiff format. More... | |
| void | RasterInMemory () |
| An example to use the memory driver. More... | |
| void | RasterizePolygonSet () |
| Test to open a shapefile and save some polygons in a raster file. More... | |
| void | ReprojectRaster () |
| Creates a new raster file with a new projection. More... | |
| void | ReprojectRasterUsingDriver () |
| Reproject one raster using TerraLib implementation. More... | |
| void | ReprojectRasterUsingFunction () |
| Reproject one raster using GDAL implementation. More... | |
| void | ResampleRaster () |
| Resample one Raster based on user defined parameters. More... | |
| void | SplitComplexImage () |
| Test to open a complex image and split into real/imaginary rasters. More... | |
| void | VectorizeRaster () |
| This example shows how to use the vectorization method. More... | |
These routines show how to use the raster module and the GDAL data source module.
Definition in file RasterExamples.h.
| void ArithmeticWithRaster | ( | ) |
Creates a new raster based on raster arithmetic operations.
Definition at line 21 of file ArithmeticWithRaster.cpp.
References te::rst::Copy(), te::dt::DOUBLE_TYPE, ds, te::dt::FLOAT_TYPE, te::rst::Raster::getBand(), te::rst::Raster::getGrid(), te::rst::Band::getMaxValue(), te::rst::Band::getMinValue(), te::rst::Raster::getNumberOfColumns(), te::rst::Grid::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Grid::getNumberOfRows(), te::gdal::Band::getValue(), te::sa::Grid, te::rst::RasterFactory::make(), te::da::DataSourceFactory::make(), te::rst::RasterFactory::open(), te::gdal::Band::setValue(), and te::rst::Raster::toString().
Referenced by main().
| void ExemplifyDataAccess | ( | ) |
A set of examples using GDAL/raster/dataaccess support.
Definition at line 193 of file ExemplifyDataacces.cpp.
References DataSet(), DataSetPersistence(), DataSetTypePersistence(), and DataSource().
Referenced by main().
| 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 GribExample | ( | ) |
An example to use the Grib driver.
Definition at line 116 of file GribExample.cpp.
References te::common::Convert2String(), te::rst::Grid::getExtent(), te::rst::Grid::getGeoreference(), te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::rst::Grid::getNumberOfColumns(), te::rst::Grid::getNumberOfRows(), te::gm::Envelope::getWidth(), te::rst::RasterFactory::open(), and ReprojectRaster().
| void GribPolygonExample | ( | ) |
An example to use Grib and Geometry.
Definition at line 120 of file GribPolygonExample.cpp.
References createPolygon(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), Mask(), and te::rst::RasterFactory::open().
| void LoadModules | ( | ) |
It loads the data source drivers.
Load the required runtime modules.
It loads the data source drivers.
Load the required runtime modules.
Load terralib modules.
It loads the data source drivers.
Definition at line 38 of file attic/unittest/dataaccess/LoadModules.h.
| void MakeRasterCrop | ( | ) |
Creates an image crop with a providen envelope.
Definition at line 13 of file MakeRasterCrop.cpp.
References te::rst::Raster::getGrid(), te::rst::Grid::gridToGeo(), te::rst::RasterFactory::open(), te::rst::Raster::trim(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by main().
| void PostGISRaster | ( | ) |
This example shows how to use the GDAL PostGIS Raster support.
Definition at line 43 of file PostGISRaster.cpp.
References PostGISRaster_DataSourceAPI(), and PostGISRaster_RasterAPI().
| void Raster1Bit | ( | ) |
This example shows how to create an 1bit Raster in memory, and how to save an 1bit Raster in Tiff format.
Definition at line 12 of file Raster1Bit.cpp.
References te::rst::Raster::getNumberOfColumns(), te::rst::Grid::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Grid::getNumberOfRows(), te::sa::Grid, te::rst::RasterFactory::make(), te::dt::R1BIT_TYPE, te::rst::Raster::setValue(), and te::dt::UCHAR_TYPE.
Referenced by main().
| void RasterInMemory | ( | ) |
An example to use the memory driver.
Definition at line 13 of file RasterInMemory.cpp.
References te::common::Singleton< RasterSummaryManager >::getInstance(), te::rst::RasterFactory::open(), te::common::RWAccess, and te::rst::SUMMARY_ALL.
Referenced by main().
| void RasterizePolygonSet | ( | ) |
Test to open a shapefile and save some polygons in a raster file.
Definition at line 14 of file RasterizePolygonSet.cpp.
References te::dt::GEOMETRY_TYPE, te::da::GetFirstPropertyPos(), te::gm::Envelope::getHeight(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getWidth(), te::sa::Grid, te::rst::RasterFactory::make(), te::da::DataSourceFactory::make(), te::rst::Raster::rasterize(), te::rst::Grid::setGeoreference(), te::dt::UCHAR_TYPE, te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by main().
| void ReprojectRaster | ( | ) |
Creates a new raster file with a new projection.
Referenced by te::gdal::GetGDALRessamplingMethod(), and GribExample().
| void ReprojectRasterUsingDriver | ( | ) |
Reproject one raster using TerraLib implementation.
Definition at line 10 of file ReprojectRaster.cpp.
References te::rst::RasterFactory::open(), and te::rst::Raster::transform().
Referenced by main().
| void ReprojectRasterUsingFunction | ( | ) |
Reproject one raster using GDAL implementation.
Definition at line 74 of file ReprojectRaster.cpp.
References te::rst::RasterFactory::open(), and te::rst::Reproject().
Referenced by main().
| void ResampleRaster | ( | ) |
Resample one Raster based on user defined parameters.
Definition at line 13 of file ResampleRaster.cpp.
References te::rst::Bicubic, te::rst::Bilinear, te::rst::NearestNeighbor, te::rst::RasterFactory::open(), and te::rst::Raster::resample().
Referenced by main().
| void SplitComplexImage | ( | ) |
Test to open a complex image and split into real/imaginary rasters.
Definition at line 16 of file SplitComplexImage.cpp.
References te::dt::CHAR_TYPE, te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Raster::getValue(), te::sa::Grid, te::rst::RasterFactory::make(), te::rst::RasterFactory::open(), and te::rst::Raster::setValue().
Referenced by main().
| void VectorizeRaster | ( | ) |
This example shows how to use the vectorization method.
Definition at line 12 of file VectorizeRaster.cpp.
References te::rst::RasterFactory::open(), te::gm::Geometry::toString(), and te::rst::Raster::vectorize().
Referenced by main().