FMT 0.9.8
Forest management tools for forest planning
|
#include <FMTlayer.hpp>
Public Types | |
typedef std::map< FMTcoordinate, T >::value_type | value_type |
Value typedef of the FMTlayer. | |
typedef std::map< FMTcoordinate, T >::iterator | iterator |
Iterator typedef of the FMTlayer. | |
typedef std::map< FMTcoordinate, T >::const_iterator | const_iterator |
Const_Iterator typedef of the FMTlist. | |
Public Member Functions | |
T & | operator[] (const FMTcoordinate &coordinate) |
const T & | at (const FMTcoordinate &coordinate) const |
bool | empty () const |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | find (const FMTcoordinate &coordinate) const |
iterator | find (const FMTcoordinate &coordinate) |
FMTlayer () | |
virtual | ~FMTlayer ()=default |
FMTlayer (FMTlayer &&rhs) noexcept | |
FMTlayer (const std::vector< double > &lgeotransform, const unsigned int &lmaxx, const unsigned int &lmaxy, const std::string &lSRS_WKT, const double &lcellsize) | |
FMTlayer (const std::map< FMTcoordinate, T > &lmapping, const std::vector< double > &lgeotransform, const unsigned int &lmaxx, const unsigned int &lmaxy, const std::string &lSRS_WKT, const double &lcellsize) | |
FMTlayer (const FMTlayer &rhs) | |
FMTlayer< T > & | operator= (const FMTlayer< T > &rhs) |
void | swap (FMTlayer< T > &rhs) |
void | setextentfrom (const FMTlayer< T > &rhs) |
template<typename newtype > | |
FMTlayer< newtype > | copyextent () const |
FMTlayer< T > & | operator+= (const FMTlayer< T > &rhs) |
unsigned int | GetXSize () const |
unsigned int | GetYSize () const |
std::vector< double > | getgeotransform () const |
std::string | getprojection () const |
std::map< FMTcoordinate, T > | getmapping () const |
double | area () const |
double | getcellsize () const |
std::vector< T > | getattributes () const |
size_t | size () const |
void | replace (typename std::map< FMTcoordinate, T >::const_iterator first, typename std::map< FMTcoordinate, T >::const_iterator last) |
FMTlayer< std::string > & | operator+= (const FMTlayer< std::string > &rhs) |
Public Member Functions inherited from Core::FMTobject | |
FMTobject () | |
virtual | ~FMTobject () |
FMTobject (const std::shared_ptr< Exception::FMTexceptionhandler > exhandler) | |
FMTobject (const FMTobject &rhs) | |
FMTobject & | operator= (const FMTobject &rhs) |
virtual void | passinlogger (const std::shared_ptr< Logging::FMTlogger > &logger) |
void | passinexceptionhandler (const std::shared_ptr< Exception::FMTexceptionhandler > &exhandler) |
void | redirectlogtofile (const std::string &location) |
virtual void | setdefaultlogger () |
virtual void | setquietlogger () |
virtual void | settasklogger () |
virtual void | setdebuglogger () |
void | setdefaultexceptionhandler () |
void | setquietexceptionhandler () |
void | setdebugexceptionhandler () |
void | setfreeexceptionhandler () |
void | disablenestedexceptions () |
void | enablenestedexceptions () |
void | seterrorstowarnings (const std::vector< Exception::FMTexc > &errors) |
void | setmaxwarningsbeforesilenced (const size_t &maxwarningcount) |
Protected Attributes | |
std::vector< double > | geotransform |
Geotransform of the map (see GDAL for more information about Geotransform) | |
unsigned int | maxx |
Maximal x value in the map. | |
unsigned int | maxy |
Maximal y value in the map. | |
std::string | SRS_WKT |
Projection string of the raster (see GDAL for more information about Geotransform) | |
double | cellsize |
Size of the pixel in the unit used by the map (SRS_WKT) | |
std::map< FMTcoordinate, T > | mapping |
std::map keeping the information of each pixel. | |
Friends | |
class | boost::serialization::access |
Additional Inherited Members | |
Static Public Member Functions inherited from Core::FMTobject | |
static std::string | getruntimelocation () |
static unsigned long long | getavailablememory () |
Protected Member Functions inherited from Core::FMTobject | |
template<class Archive > | |
void | forcesave (Archive &ar, const unsigned int version) const |
template<class Archive > | |
void | forceload (Archive &ar, const unsigned int version) |
void | checksignals () const |
void | setCPLhandler () |
Static Protected Member Functions inherited from Core::FMTobject | |
static std::chrono::time_point< std::chrono::high_resolution_clock > | getclock () |
template<class chrono > | |
static double | getduration (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
static std::string | getdurationinseconds (const std::chrono::time_point< std::chrono::high_resolution_clock > &startclock) |
Static Protected Attributes inherited from Core::FMTobject | |
static std::shared_ptr< Exception::FMTexceptionhandler > | _exhandler |
A shared pointer to the exception handler. | |
static std::shared_ptr< Logging::FMTlogger > | _logger |
A shared pointer to the logger. | |
FMTlayer is a simple template class made to be used like a single raster file. It hold the coordinates of each pixel using a map, it also have information about the projection of the raster. It is mostly generated using the FMTareaparser.
typedef std::map<FMTcoordinate,T>::const_iterator Spatial::FMTlayer< T >::const_iterator |
Const_Iterator typedef of the FMTlist.
typedef std::map<FMTcoordinate,T>::iterator Spatial::FMTlayer< T >::iterator |
Iterator typedef of the FMTlayer.
typedef std::map<FMTcoordinate,T>::value_type Spatial::FMTlayer< T >::value_type |
Value typedef of the FMTlayer.
|
inline |
Default constructor for FMTlayer.
|
default |
Default destructor for FMTlayer.
|
inlinenoexcept |
Default move constructor for FMTlayer.
|
inline |
Constructor for the FMTlayer taking a geotransform, max x, max y, projection string and cell size.
|
inline |
Constructor for the FMTlayer used to copy information from an other layer.
|
inline |
Default copy constructor for FMTlayer.
|
inline |
Returns the whole area of the FMTlayer using the size of a pixel.
|
inline |
At for FMTlayer accessing std::map (mapping).
|
inline |
Returns an iterator at the beginning of the FMTlayer.
|
inline |
Returns an const iterator at the beginning of the FMTlayer.
|
inline |
|
inline |
Check if the FMTlayer is empty.
|
inline |
Returns an iterator at the end of the FMTlayer.
|
inline |
Returns an const iterator at the end of the FMTlayer.
|
inline |
Find the layer element at a given coordinate.
|
inline |
Find the layer element at a given coordinate.
|
inline |
Returns a vector of unique attributes present in the FMTlayer.
|
inline |
Get the cell size for a single coordinate of the map.
|
inline |
Returns the geotransform of the layer.
|
inline |
Returns the underlying map of the FMTlayer.
|
inline |
Returns the projection of the FMTlayer.
|
inline |
Returns the maximal x value of the FMTlayer.
|
inline |
Returns the maximal y value of the FMTlayer.
|
inline |
|
inline |
Template specification for adding strings from a layer to a string layer using std::string operator+=.
|
inline |
Default copy assignment for FMTlayer.
|
inline |
Operator [] for FMTlayer accessing std::map (mapping).
|
inline |
Replaces values of a layer using iterators coming from an other FMTlayer.
|
inline |
Using an other layer (rhs) it's going to set the informations (other than the main map) to this.
|
inline |
Returns the size of the FMTlayer.
|
inline |
Swap operator for FMTlayer.
|
friend |
|
protected |
Size of the pixel in the unit used by the map (SRS_WKT)
|
protected |
Geotransform of the map (see GDAL for more information about Geotransform)
|
protected |
std::map keeping the information of each pixel.
|
protected |
Maximal x value in the map.
|
protected |
Maximal y value in the map.
|
protected |
Projection string of the raster (see GDAL for more information about Geotransform)