examples/raster/main.cpp
Go to the documentation of this file.
1 // Examples
2 #include "RasterExamples.h"
3 
4 // TerraLib
10 
11 // STL
12 #include <cstdlib>
13 #include <iostream>
14 
15 
16 int main()
17 {
18  try
19  {
21 
22 
23  LoadModules();
24 
31  // GribExample();
36  // GribPolygonExample();
37  Raster1Bit();
39  //PostGISRaster(); //Need to set specific parameters to work correctly.
40 
42 
43 
45  }
46  catch(const std::exception& e)
47  {
48  std::cout << std::endl << "An exception has occurred in Raster examples: " << e.what() << std::endl;
49 
50  return EXIT_FAILURE;
51  }
52  catch(...)
53  {
54  std::cout << std::endl << "An unexpected exception has occurred in Raster examples!" << std::endl;
55 
56  return EXIT_FAILURE;
57  }
58 
59  return EXIT_SUCCESS;
60 }
void ReprojectRasterUsingFunction()
Reproject one raster using GDAL implementation.
void VectorizeRaster()
This example shows how to use the vectorization method.
An utility class to control the startup and cleanup of the TerraLib Platform and its resources...
void ExemplifyDataAccess()
A set of examples using GDAL/raster/dataaccess support.
void SplitComplexImage()
Test to open a complex image and split into real/imaginary rasters.
void ExemplifyIterators()
An example to test iterators over Bands, Windows, and Rasters.
int main()
This file is a wrapper around platform specific include files.
General utilities for serializing plugin information.
void ArithmeticWithRaster()
Creates a new raster based on raster arithmetic operations.
static PluginManager & instance()
Access the singleton.
General utilities for plugins.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
void Raster1Bit()
This example shows how to create an 1bit Raster in memory, and how to save an 1bit Raster in Tiff for...
Definition: Raster1Bit.cpp:12
void RasterizePolygonSet()
Test to open a shapefile and save some polygons in a raster file.
void ResampleRaster()
Resample one Raster based on user defined parameters.
void initialize()
It initializes the TerraLib Platform.
These routines show how to use the raster module and the GDAL data source module. ...
void RasterInMemory()
An example to use the memory driver.
void MakeRasterCrop()
Creates an image crop with a providen envelope.
void clear()
Stop and unload all plugins, then clear the internal list of plugins.
void LoadModules()
Load terralib modules.
void ReprojectRasterUsingDriver()
Reproject one raster using TerraLib implementation.