All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Utils.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib\attributefill\core\Utils.cpp
22 
23  \brief Utility functions for Attribute Fill.
24 */
25 
26 // TerraLib
27 #include "../common/Translator.h"
28 #include "Config.h"
29 #include "Enums.h"
30 #include "Utils.h"
31 
32 std::string te::attributefill::GetOperationFullName(const int& e)
33 {
34  switch(e)
35  {
37  return "Value";
39  return "Minimum value";
41  return "Maximum value";
43  return "Mean";
45  return "Sum of values";
47  return "Total number of values";
49  return "Total not null values";
51  return "Standard deviation";
53  return "Variance";
55  return "Skewness";
57  return "Kurtosis";
59  return "Amplitude";
61  return "Median";
63  return "Coefficient variation";
65  return "Mode";
67  return "Class with highest occurrence";
69  return "Class with highest intersection area";
71  return "Percentage per Class";
73  return "Minimum Distance";
75  return "Presence";
77  return "Weighted by Area";
79  return "Weighted Sum by Area";
81  return "Percentage of each Class by Area";
83  return "Percentage of Total Area";
84  default:
85  return "";
86  }
87 }
Configuration flags for the Attribute Fill module of TerraLib.
TEATTRIBUTEFILLEXPORT std::string GetOperationFullName(const int &e)
Definition: Utils.cpp:32