Config.h
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/sa/Config.h
22 
23  \brief Configuration flags for the Terrralib Spatial Analysis module.
24  */
25 
26 #ifndef __TERRALIB_SA_CORE_INTERNAL_CONFIG_H
27 #define __TERRALIB_SA_CORE_INTERNAL_CONFIG_H
28 
29 #define TE_SA_MODULE_NAME "te.sa"
30 
31 /*! Defines the primary key name pk_id used in Generalized Proximity Matrix operation*/
32 #define TE_SA_GPM_ATTR_PK_NAME "pk_id"
33 
34 /*! Defines the attribute name used in gpm to identigy the distance information*/
35 #define TE_SA_DISTANCE_ATTR_NAME "distance"
36 
37 /*! Defines the attribute name used in gpm to identigy the distance information*/
38 #define TE_SA_WEIGHT_ATTR_NAME "weight"
39 
40 /*! Defines the attribute name used in gpm to identigy the distance information*/
41 #define TE_SA_GEOMETRY_ATTR_NAME "coord"
42 
43 /*! Defines the attribute name G used in GStatistics operation*/
44 #define TE_SA_G_ATTR_NAME "G"
45 
46 /*! Defines the attribute name G* used in GStatistics operation*/
47 #define TE_SA_GSTAR_ATTR_NAME "GStar"
48 
49 /*! Defines the attribute name LocalMean used in Local Mean operation*/
50 #define TE_SA_LOCALMEAN_ATTR_NAME "LocalMean"
51 
52 /*! Defines the attribute name NumNeighbors used in Local Mean operation*/
53 #define TE_SA_NUMNEIGHBORS_ATTR_NAME "NumNeighbors"
54 
55 /*! Defines the attribute name Standard Deviation Z used in ZAndWZ operation*/
56 #define TE_SA_STDDEVZ_ATTR_NAME "Z"
57 
58 /*! Defines the attribute name Local Mean of Z (WZ) used in ZAndWZ operation*/
59 #define TE_SA_LOCALMEANWZ_ATTR_NAME "WZ"
60 
61 /*! Defines the attribute name Moran Index used in MoranIndex operation*/
62 #define TE_SA_MORANINDEX_ATTR_NAME "MoranIndex"
63 
64 /*! Defines the attribute name LISA Significance used in LisaStatisticalSignificance operation*/
65 #define TE_SA_LISASIGNIFICANCE_ATTR_NAME "LISASig"
66 
67 /*! Defines the attribute name Box Map used in BoxMap operation*/
68 #define TE_SA_BOXMAP_ATTR_NAME "BoxMap"
69 
70 /*! Defines the attribute name Lisa Map used in LISAMap operation*/
71 #define TE_SA_LISAMAP_ATTR_NAME "LisaMap"
72 
73 /*! Defines the attribute name Moran Map used in MoranMap operation*/
74 #define TE_SA_MORANMAP_ATTR_NAME "MoranMap"
75 
76 /*! Defines the attribute name Bayes used in Bayes operation*/
77 #define TE_SA_BAYES_ATTR_NAME "Bayes"
78 
79 /*! Defines the attribute name NeighEvent used in Local Bayes operation*/
80 #define TE_SA_BAYESEVENT_ATTR_NAME "Neigh_Event"
81 
82 /*! Defines the attribute name NeighPop used in Local Bayes operation*/
83 #define TE_SA_BAYESPOP_ATTR_NAME "Neigh_Pop"
84 
85 /*! Defines the attribute name Id used in Sample Points Generator operation*/
86 #define TE_SA_SPG_ATTR_ID_NAME "id"
87 
88 /*! Defines the attribute name class used in Sample Points Generator operation*/
89 #define TE_SA_SPG_ATTR_CLASS_NAME "class"
90 
91 /*! Defines the attribute name Point used in Sample Points Generator operation*/
92 #define TE_SA_SPG_ATTR_GEOM_NAME "point"
93 
94 /*! Defines the primary key name pk_id used in Sample Points Generator operation*/
95 #define TE_SA_SPG_ATTR_PK_NAME "pk_id"
96 
97 /*! Defines the attribute name gpm_weight used in Skater operation*/
98 #define TE_SA_SKATER_ATTR_WEIGHT_NAME "gpm_weight"
99 
100 /*! Defines the attribute name SkaterClass used in Skater operation*/
101 #define TE_SA_SKATER_ATTR_CLASS_NAME "cluster"
102 
103 /** @name DLL/LIB Module
104  * Flags for building TerraLib as a DLL or as a Static Library
105  */
106 //@{
107 
108 /*!
109  \def TESAEXPORT
110 
111  \brief You can use this macro in order to export/import classes and functions from this module.
112 
113  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESADLL into the project's list of defines.
114 
115  \note If you want to compile TerraLib as an Static Library under Windows, remember to insert the TESASTATIC flag into the project list of defines.
116  */
117 #ifdef WIN32
118 
119  #ifdef _MSC_VER
120  #pragma warning( disable : 4251 )
121  #pragma warning( disable : 4275 )
122  #endif
123 
124 
125  #ifdef TESASTATIC
126  #define TESAEXPORT // Don't need to export/import... it is a static library
127  #elif TESADLL
128  #define TESAEXPORT __declspec(dllexport) // export DLL information
129  #else
130  #define TESAEXPORT __declspec(dllimport) // import DLL information
131  #endif
132 #else
133  #define TESAEXPORT
134 #endif
135 
136 //@}
137 
138 #endif // __TERRALIB_SA_CORE_INTERNAL_CONFIG_H
139