RasterExamples.h File Reference

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...
 

Detailed Description

These routines show how to use the raster module and the GDAL data source module.

Definition in file RasterExamples.h.

Function Documentation

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 ( )
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 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 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().