Main Page
Modules
Namespaces
Classes
Files
File List
File Members
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
{
36
case
te::attributefill::VALUE
:
37
return
"Value"
;
38
case
te::attributefill::MIN_VALUE
:
39
return
"Minimum value"
;
40
case
te::attributefill::MAX_VALUE
:
41
return
"Maximum value"
;
42
case
te::attributefill::MEAN
:
43
return
"Mean"
;
44
case
te::attributefill::SUM
:
45
return
"Sum of values"
;
46
case
te::attributefill::COUNT
:
47
return
"Total number of values"
;
48
case
te::attributefill::VALID_COUNT
:
49
return
"Total not null values"
;
50
case
te::attributefill::STANDARD_DEVIATION
:
51
return
"Standard deviation"
;
52
case
te::attributefill::VARIANCE
:
53
return
"Variance"
;
54
case
te::attributefill::SKEWNESS
:
55
return
"Skewness"
;
56
case
te::attributefill::KURTOSIS
:
57
return
"Kurtosis"
;
58
case
te::attributefill::AMPLITUDE
:
59
return
"Amplitude"
;
60
case
te::attributefill::MEDIAN
:
61
return
"Median"
;
62
case
te::attributefill::VAR_COEFF
:
63
return
"Coefficient variation"
;
64
case
te::attributefill::MODE
:
65
return
"Mode"
;
66
case
te::attributefill::HIGHEST_OCCURRENCE
:
67
return
"Class with highest occurrence"
;
68
case
te::attributefill::HIGHEST_INTERSECTION
:
69
return
"Class with highest intersection area"
;
70
case
te::attributefill::PERCENT_CLASS
:
71
return
"Percentage per Class"
;
72
case
te::attributefill::MIN_DISTANCE
:
73
return
"Minimum Distance"
;
74
case
te::attributefill::PRESENCE
:
75
return
"Presence"
;
76
case
te::attributefill::WEIGHTED
:
77
return
"Weighted by Area"
;
78
case
te::attributefill::WEIGHTED_SUM
:
79
return
"Weighted Sum by Area"
;
80
case
te::attributefill::PERCENT_EACH_CLASS
:
81
return
"Percentage of each Class by Area"
;
82
case
te::attributefill::PERCENT_TOTAL_AREA
:
83
return
"Percentage of Total Area"
;
84
default
:
85
return
""
;
86
}
87
}
Config.h
Configuration flags for the Attribute Fill module of TerraLib.
te::attributefill::MIN_DISTANCE
Definition:
Enums.h:59
te::attributefill::HIGHEST_INTERSECTION
Definition:
Enums.h:57
te::attributefill::VALID_COUNT
Definition:
Enums.h:47
te::attributefill::MODE
Definition:
Enums.h:55
te::attributefill::MIN_VALUE
Definition:
Enums.h:42
te::attributefill::MEDIAN
Definition:
Enums.h:53
te::attributefill::PERCENT_TOTAL_AREA
Definition:
Enums.h:64
te::attributefill::STANDARD_DEVIATION
Definition:
Enums.h:48
te::attributefill::COUNT
Definition:
Enums.h:46
te::attributefill::MAX_VALUE
Definition:
Enums.h:43
te::attributefill::SUM
Definition:
Enums.h:45
te::attributefill::HIGHEST_OCCURRENCE
Definition:
Enums.h:56
te::attributefill::PERCENT_EACH_CLASS
Definition:
Enums.h:63
te::attributefill::SKEWNESS
Definition:
Enums.h:50
te::attributefill::PERCENT_CLASS
Definition:
Enums.h:58
te::attributefill::MEAN
Definition:
Enums.h:44
te::attributefill::WEIGHTED
Definition:
Enums.h:61
Enums.h
te::attributefill::AMPLITUDE
Definition:
Enums.h:52
te::attributefill::VARIANCE
Definition:
Enums.h:49
te::attributefill::PRESENCE
Definition:
Enums.h:60
te::attributefill::GetOperationFullName
TEATTRIBUTEFILLEXPORT std::string GetOperationFullName(const int &e)
Definition:
Utils.cpp:32
Utils.h
te::attributefill::VALUE
Definition:
Enums.h:41
te::attributefill::WEIGHTED_SUM
Definition:
Enums.h:62
te::attributefill::KURTOSIS
Definition:
Enums.h:51
te::attributefill::VAR_COEFF
Definition:
Enums.h:54
git_master
terralib5
src
terralib
attributefill
Utils.cpp
Generated on Tue Jan 12 2016 08:40:53 for TerraLib by
1.8.9.1