| TerraLib 4.1

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

Modules | Functions
Cells attributes generation
Cell Spaces

## Modules

| Fill cells auxiliary functions
| Non-spatial strategy hierarchy to compute cells attributes
| Spatial strategy hierarchy to compute cells attributes

## Functions

TLFUNCTIONS_DLL bool | TeFillCellDistanceOperation (TeTheme *input_theme, TeGeomRep rep, TeLayer *cell_layer, const string &cell_tablename, const string &output_columnname, TeTimeInterval time_interval=TeTimeInterval())
TLFUNCTIONS_DLL bool | TeFillCellCategoryCountPercentageRasterOperation (TeDatabase *database, string raster_layername, string cell_layername, const string &cell_tablename, const string attrName, TeTimeInterval t)
TLFUNCTIONS_DLL bool | TeFillCellCategoryAreaPercentageOperation (TeTheme *theme, const string attrName, TeLayer *cell_layer, const string &cell_tablename, TeTimeInterval t=TeTimeInterval())
TLFUNCTIONS_DLL bool | TeFillCellCategoryAreaPercentageOperation (TeTheme *input_theme, const string attr_name, TeLayer *cell_layer, const string &cell_tablename, map< string, string > &classesMap, TeTimeInterval time_interval=TeTimeInterval())
TLFUNCTIONS_DLL bool | TeFillCellSpatialOperation (TeDatabase *db, TeComputeSpatialStrategy *operation, const string &cell_layername, const string &cell_tablename, const string &output_columnname, TeTimeInterval time_interval=TeTimeInterval())
| Computes an attribute based on a TeComputeSpatialStrategy.
TLFUNCTIONS_DLL bool | TeFillCellNonSpatialOperation (TeDatabase *db, const string &input_layername, TeGeomRep rep, const string &input_tablename, const string &input_attrname, TeComputeAttrStrategy< TeSTElementSet::propertyIterator > *operation, const string &cell_layername, const string &cell_tablename, const string &output_columnName, TeTimeInterval time_interval=TeTimeInterval())
| Computes the cell attribute based on a non-spatial operation (TeComputeAttrStrategy) over a vector or cell input layer.
TLFUNCTIONS_DLL bool | TeFillCellNonSpatialOperation (TeTheme *theme, TeGeomRep rep, const string &input_attrname, TeComputeAttrStrategy< TeSTElementSet::propertyIterator > *operation, TeLayer *cell_layer, const string &cell_tablename, const string &output_columnName, TeTimeInterval time_interval=TeTimeInterval())
| Computes the cell attribute based on a non-spatial operation (TeComputeAttrStrategy) over a vector or cell input layer.
TLFUNCTIONS_DLL bool | TeFillCellNonSpatialRasterOperation (TeDatabase *db, const string &input_raster_layername, TeComputeAttrStrategy< TeBoxRasterIterator > *operation, const string &cell_layername, const string &cell_tablename, const string &output_columnName, TeTimeInterval time_interval=TeTimeInterval())
| Computes the cell attribute based on a non-spatial operation (TeComputeSpatialStrategy) over a raster input layer.
TLFUNCTIONS_DLL bool | TeFillCellConnectionOperation (TeDatabase *db, TeSTElementSet objects, TeGeomRep rep, TeGraphNetwork *net, const string &, TeTimeInterval t, const string &cell_layername, const string &cell_tablename, const string &, TeComputeAttrStrategy< TeSTElementSet::propertyIterator > *operation, double, double, double, double)
TLFUNCTIONS_DLL bool | TeFillCellAggregateOperation (TeDatabase *db, const string &input_layername, const string &input_tablename, TeComputeAttrStrategy< TeSTElementSet::propertyIterator > *operation, vector< string > &attrNames, const string &cell_layername, const string &cell_tablename, TeTimeInterval time_interval=TeTimeInterval())
| Computes a set of attributes for the output cell layer based on a non-spatial operation (TeComputeAttrSpatialStrategy) over an input cell layer.

## Detailed Description

Fill one attribute (or group of related attributes) for all cells in the output layer based on a single input layer attribute for a given time interval. Specific operation to be applied is a parameter (Strategy pattern).

## Function Documentation

TLFUNCTIONS_DLL bool TeFillCellAggregateOperation | ( | TeDatabase * | db,
|  | const string & | input_layername,
|  | const string & | input_tablename,
|  | TeComputeAttrStrategy< TeSTElementSet::propertyIterator > * | operation,
|  | vector< string > & | attrNames,
|  | const string & | cell_layername,
|  | const string & | cell_tablename,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Computes a set of attributes for the output cell layer based on a non-spatial operation (TeComputeAttrSpatialStrategy) over an input cell layer.

TLFUNCTIONS_DLL bool TeFillCellCategoryAreaPercentageOperation | ( | TeTheme * | theme,
|  | const string | attrName,
|  | TeLayer * | cell_layer,
|  | const string & | cell_tablename,
|  | TeTimeInterval | t = `TeTimeInterval()`
| ) |  |

TLFUNCTIONS_DLL bool TeFillCellCategoryAreaPercentageOperation | ( | TeTheme * | input_theme,
|  | const string | attr_name,
|  | TeLayer * | cell_layer,
|  | const string & | cell_tablename,
|  | map< string, string > & | classesMap,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

TLFUNCTIONS_DLL bool TeFillCellCategoryCountPercentageRasterOperation | ( | TeDatabase * | database,
|  | string | raster_layername,
|  | string | cell_layername,
|  | const string & | cell_tablename,
|  | const string | attrName,
|  | TeTimeInterval | t
| ) |  |

suppose that each cell is completely filled by the used geometry, and there is no overlapping geometries. Creates one attribute for each unique value, and this values are used in the name of the created attributes, in the form attrName concatenated with the value

TLFUNCTIONS_DLL bool TeFillCellConnectionOperation | ( | TeDatabase * | db,
|  | TeSTElementSet | objects,
|  | TeGeomRep | rep,
|  | TeGraphNetwork * | net,
|  | const string & | ,
|  | TeTimeInterval | t,
|  | const string & | cell_layername,
|  | const string & | cell_tablename,
|  | const string & | ,
|  | TeComputeAttrStrategy< TeSTElementSet::propertyIterator > * | operation,
|  | double | ,
|  | double | ,
|  | double | ,
|  | double |
| ) |  |

Computes the cell attribute based on a non-spatial operation (TeComputeSpatialStrategy) over a certain attribute of a set of objects connected to each cell by a network. This function will change in the next version of TerraLib

TLFUNCTIONS_DLL bool TeFillCellDistanceOperation | ( | TeTheme * | input_theme,
|  | TeGeomRep | rep,
|  | TeLayer * | cell_layer,
|  | const string & | cell_tablename,
|  | const string & | output_columnname,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Calculates an attribute based on the exact Euclidean distance. This strategy is separated from the others because it calculates the distance using an already calculated distance of one of its neighbours.

TLFUNCTIONS_DLL bool TeFillCellNonSpatialOperation | ( | TeTheme * | theme,
|  | TeGeomRep | rep,
|  | const string & | input_attrname,
|  | TeComputeAttrStrategy< TeSTElementSet::propertyIterator > * | operation,
|  | TeLayer * | cell_layer,
|  | const string & | cell_tablename,
|  | const string & | output_columnName,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Computes the cell attribute based on a non-spatial operation (TeComputeAttrStrategy) over a vector or cell input layer.

TLFUNCTIONS_DLL bool TeFillCellNonSpatialOperation | ( | TeDatabase * | db,
|  | const string & | input_layername,
|  | TeGeomRep | rep,
|  | const string & | input_tablename,
|  | const string & | input_attrname,
|  | TeComputeAttrStrategy< TeSTElementSet::propertyIterator > * | operation,
|  | const string & | cell_layername,
|  | const string & | cell_tablename,
|  | const string & | output_columnName,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Computes the cell attribute based on a non-spatial operation (TeComputeAttrStrategy) over a vector or cell input layer.

TLFUNCTIONS_DLL bool TeFillCellNonSpatialRasterOperation | ( | TeDatabase * | db,
|  | const string & | input_raster_layername,
|  | TeComputeAttrStrategy< TeBoxRasterIterator > * | operation,
|  | const string & | cell_layername,
|  | const string & | cell_tablename,
|  | const string & | output_columnName,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Computes the cell attribute based on a non-spatial operation (TeComputeSpatialStrategy) over a raster input layer.

TLFUNCTIONS_DLL bool TeFillCellSpatialOperation | ( | TeDatabase * | db,
|  | TeComputeSpatialStrategy * | operation,
|  | const string & | cell_layername,
|  | const string & | cell_tablename,
|  | const string & | output_columnname,
|  | TeTimeInterval | time_interval = `TeTimeInterval()`
| ) |  |

Computes an attribute based on a TeComputeSpatialStrategy.

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines