Spatially referenced layer of Core::FMTDevelopment representing the forest.
More...
#include <FMTForest.h>
Spatially referenced layer of Core::FMTDevelopment representing the forest.
FMTForest is a FMTLayer mapping each spatial cell to a FMTDevelopment and provides growth, area aggregation and preSolve / postsolve operations on the forest.
◆ FMTForest() [1/3]
| Spatial::FMTForest::FMTForest |
( |
| ) |
|
◆ FMTForest() [2/3]
| Spatial::FMTForest::FMTForest |
( |
const FMTForest & |
rhs | ) |
|
◆ FMTForest() [3/3]
Construct a FMTForest from a layer of developments.
- Parameters
-
| [in] | rhs | the layer of developments to construct from. |
◆ getAge()
| FMTLayer< int > Spatial::FMTForest::getAge |
( |
| ) |
const |
Return a layer with the age of each development.
- Returns
- an int layer of ages.
◆ getArea()
Return the actual developments of the forest, aggregating the area of identical developments by cell size.
- Returns
- the actual developments of the forest.
◆ getCopy()
| FMTForest Spatial::FMTForest::getCopy |
( |
bool |
copyData = true | ) |
const |
Return a copy of the forest layer.
- Parameters
-
| [in] | copyData | if true copies the development data, otherwise returns an empty layer with the same spatial reference. |
- Returns
- the copied forest.
◆ getLock()
| FMTLayer< std::string > Spatial::FMTForest::getLock |
( |
| ) |
const |
Return a string layer with the lock of each locked development.
- Returns
- a string layer of locks.
◆ getThemes()
| std::vector< FMTLayer< std::string > > Spatial::FMTForest::getThemes |
( |
const std::vector< Core::FMTTheme > & |
themes | ) |
const |
Return one string layer per theme with the attribute value of each development.
- Parameters
-
| [in] | themes | the themes to extract. |
- Returns
- a vector of string layers, one per theme.
◆ grow()
Grow every development of the forest by one period.
- Returns
- a new grown forest.
◆ operator=()
◆ postSolve()
Return a postsolved copy of the forest by postsolving each development mask.
- Parameters
-
| [in] | filter | the mask filter to apply. |
| [in] | originalbasethemes | the original base themes. |
- Returns
- the postsolved forest.
◆ preSolve()
Return a presolved copy of the forest by presolving each development with the mask filter.
- Parameters
-
| [in] | filter | the mask filter to apply. |
| [in] | presolvedthemes | the presolved themes. |
- Returns
- the presolved forest.
◆ setLastThemeWithArea()
Set the last theme attribute of each development from the area developments matching the other themes.
Raises FMTinvalid_theme if the mask of a development is missing from the area developments.
- Parameters
-
| [in] | p_devs | the actual developments holding the last theme attribute per mask subset. |
| [in] | p_themes | the themes of the model. |
◆ setPeriod()
| void Spatial::FMTForest::setPeriod |
( |
int |
period | ) |
|
Set the period of every development of the forest.
- Parameters
-
| [in] | period | the period to set. |
◆ boost::serialization::access
| friend class boost::serialization::access |
|
friend |
The documentation for this class was generated from the following file: