| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

Functions
Functions to deal with raster data

## Functions

TL_DLL TeLayer * | TeImportRaster (const string &layerName, TeRaster *rasterIn, TeDatabase *database)
| Imports a TeRaster object to a database creationg a new TeLayer.
TL_DLL bool | TeImportRaster (TeLayer *layer, TeRaster *rasterIn, unsigned int bWidth=512, unsigned int bHeight=512, TeRasterParams::TeRasterCompressionMode compress=TeRasterParams::TeNoCompression, const string &objectId="", double dummy=255, bool useDummy=false, TeRasterParams::TeRasterTilingType indext=TeRasterParams::TeNoExpansible)
| Imports a TeRaster object to a TeLayer.
TL_DLL bool | TeMosaicRaster (TeRaster *rasterIn, TeLayer *layer, const string &objectId="")
| This function mosaics an input raster to one previsously existing in a TerraLib layer.
TL_DLL bool | TeBuildLowerResolution (TeLayer *layer, TeRaster *rasterIn, int resFac, const string &objectId="")
| Builds a degraded resolution of a raster data.
TL_DLL bool | TeBuildMultiResolutionPyramid (TeRaster *rst, int nLevels, const bool &showProgress=false)
| Builds the multi resolution pyramid for a given raster.
TL_DLL bool | TeBuildAverageResolution (TeLayer *layer, int maxRes, const string &objectId="")
| Builds the multi resolution pyramid for a given raster.

## Function Documentation

TL_DLL bool TeBuildAverageResolution | ( | TeLayer * | layer,
|  | int | maxRes,
|  | const string & | objectId = `""`
| ) |  |

Builds the multi resolution pyramid for a given raster.

TL_DLL bool TeBuildLowerResolution | ( | TeLayer * | layer,
|  | TeRaster * | rasterIn,
|  | int | resFac,
|  | const string & | objectId = `""`
| ) |  |

Builds a degraded resolution of a raster data.

Parameters:

  layer | pointer to a layer already created
  rasterIn | a raster representation
  resFac | value to multiply the original resolution
  objectId | object identification associated to this raster

Returns:
  true or false whether the raster was imported successfully

TL_DLL bool TeBuildMultiResolutionPyramid | ( | TeRaster * | rst,
|  | int | nLevels,
|  | const bool & | showProgress = `false`
| ) |  |

Builds the multi resolution pyramid for a given raster.

TL_DLL bool TeImportRaster | ( | TeLayer * | layer,
|  | TeRaster * | rasterIn,
|  | unsigned int | bWidth = `512`,
|  | unsigned int | bHeight = `512`,
|  | TeRasterParams::TeRasterCompressionMode | compress = `TeRasterParams::TeNoCompression`,
|  | const string & | objectId = `""`,
|  | double | dummy = `255`,
|  | bool | useDummy = `false`,
|  | TeRasterParams::TeRasterTilingType | indext = `TeRasterParams::TeNoExpansible`
| ) |  |

Imports a TeRaster object to a TeLayer.

This function imports a raster as a geometry of an object of a layer.

Parameters:

  layer | pointer to a layer already created
  rasterIn | a raster representation
  bWidth | width of the blocks used to store the raster
  bHeight | height of the blocks used to store the raster
  compress | compression type
  objectId | object identification associated to this raster
  dummy | value to be used as a no data value when importing
  useDummy | flag used to indicate that imported raster will have a dummy value
  indext | type of tiling used to import raster

Returns:
  true or false whether the raster was imported successfully

TL_DLL TeLayer* TeImportRaster | ( | const string & | layerName,
|  | TeRaster * | rasterIn,
|  | TeDatabase * | database
| ) |  |

Imports a TeRaster object to a database creationg a new TeLayer.

This function imports a raster to the database, generating a new layer.

Parameters:

  layerName | name of the layer to be created
  rasterIn | a pointer to the raster representation to be imported
  database | a pointer to the database where the raster will be imported

Returns:
  a pointer to the generated layer

TL_DLL bool TeMosaicRaster | ( | TeRaster * | rasterIn,
|  | TeLayer * | layer,
|  | const string & | objectId = `""`
| ) |  |

This function mosaics an input raster to one previsously existing in a TerraLib layer.

Parameters:

  rasterIn | a raster representation
  layer | pointer to an existing layer
  objectId | object identification associated to this raster

Returns:
  true or false whether the mosaic operation was successfull

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines