All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Config.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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 Config.h
22 
23  \brief Configuration flags for the TerraLib SRS module.
24  */
25 
26 #ifndef __TERRALIB_SRS_INTERNAL_CONFIG_H
27 #define __TERRALIB_SRS_INTERNAL_CONFIG_H
28 
29 // TerraLib
30 #include "../Config.h"
31 
32 /*!
33  \def TE_SRS_MODULE_NAME
34 
35  \brief It defines the module name.
36  */
37 #define TE_SRS_MODULE_NAME "te.srs"
38 
39 /** @name Internationalization Defines
40  * Flags for TerraLib code internationalization.
41  */
42 //@{
43 
44 /*!
45  \def TE_SRS_TEXT_DOMAIN
46 
47  \brief It contains the name of the text domain used in the translation of messages in the TerraLib srs module.
48  */
49 #define TE_SRS_TEXT_DOMAIN "tesrs"
50 
51 /*!
52  \def TE_SRS_TEXT_DOMAIN_DIR
53 
54  \brief It contains the translation catalog directory.
55  */
56 #define TE_SRS_TEXT_DOMAIN_DIR "locale"
57 
58 /*!
59  \def TR_SRS
60 
61  \brief It marks a string in order to get translated. This is a special mark used in the SRS module of TerraLib.
62  */
63 #define TR_SRS(message) TR(message, TE_SRS_TEXT_DOMAIN)
64 
65 //@}
66 
67 /*!
68  \def TE_UNKNOWN_SRS
69 
70  \brief A numeric value to represent a unknown SRS identification in TerraLib.
71  */
72 #define TE_UNKNOWN_SRS 0
73 
74 /** @name EPSG codes
75  * Some commonly used numeric codes for Spatial Reference Systems as defined in the EPSG database.
76  *
77  */
78 //@{
79 
80 /*!\def TE_SRS_SAD69
81  Geographic coordinate reference system based on SAD69 Datum.
82  */
83 #define TE_SRS_SAD69 4618
84 
85 /*!\def TE_SRS_CORREGO_ALEGRE
86  Geographic coordinate reference system based on Brazilian Corrego Alegre Datum.
87  */
88 #define TE_SRS_CORREGO_ALEGRE 4225
89 
90 /*!
91  \def TE_SRS_WGS84
92  Geographic coordinate reference system based on WGS84 Datum.
93  */
94 #define TE_SRS_WGS84 4326
95 
96 /*!\def TE_SRS_SIRGAS2000
97  Geographic coordinate reference system based on SIRGAS 2000 Datum.
98  */
99 #define TE_SRS_SIRGAS2000 4674
100 
101 /*!\def TE_SRS_CORREGO_ALEGRE_UTM_ZONE_21S
102  Projected coordinate reference system: UTM projection, Datum Corrego Alegre Datum, Zone 21 South.
103  */
104 #define TE_SRS_CORREGO_ALEGRE_UTM_ZONE_21S 22521
105 
106 /*!\def TE_SRS_CORREGO_ALEGRE_UTM_ZONE_22S
107  Projected coordinate reference system: UTM projection, Datum Corrego Alegre Datum, Zone 22 South.
108  */
109 #define TE_SRS_CORREGO_ALEGRE_UTM_ZONE_22S 22522
110 
111 /*!\def TE_SRS_CORREGO_ALEGRE_UTM_ZONE_23S
112  Projected coordinate reference system: UTM projection, Datum Corrego Alegre Datum, Zone 23 South.
113  */
114 #define TE_SRS_CORREGO_ALEGRE_UTM_ZONE_23S 22523
115 
116 /*!\def TE_SRS_CORREGO_ALEGRE_UTM_ZONE_24S
117  Projected coordinate reference system: UTM projection, Datum Corrego Alegre Datum, Zone 24 South.
118  */
119 #define TE_SRS_CORREGO_ALEGRE_UTM_ZONE_24S 22524
120 
121 /*!\def TE_SRS_CORREGO_ALEGRE_UTM_ZONE_25S
122  Projected coordinate reference system: UTM projection, Datum Corrego Alegre Datum, Zone 25 South.
123  */
124 #define TE_SRS_CORREGO_ALEGRE_UTM_ZONE_25S 22525
125 
126 /*!\def TE_SRS_SAD69_POLYCONIC
127  Projected coordinate reference system: Brazil Polyconic, Datum SAD69.
128  */
129 #define TE_SRS_SAD69_POLYCONIC 29101
130 
131 /*!\def TE_SRS_SAD69_UTM_ZONE_18N
132  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 18 North.
133  */
134 #define TE_SRS_SAD69_UTM_ZONE_18N 29168
135 
136 /*!\def TE_SRS_SAD69_UTM_ZONE_19N
137  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 19 North.
138  */
139 #define TE_SRS_SAD69_UTM_ZONE_19N 29169
140 
141 /*!\def TE_SRS_SAD69_UTM_ZONE_20N
142  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 20 North.
143  */
144 #define TE_SRS_SAD69_UTM_ZONE_20N 29170
145 
146 /*!\def TE_SRS_SAD69_UTM_ZONE_21N
147  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 21 North.
148  */
149 #define TE_SRS_SAD69_UTM_ZONE_21N 29171
150 
151 /*!\def TE_SRS_SAD69_UTM_ZONE_22N
152  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 22 North.
153  */
154 #define TE_SRS_SAD69_UTM_ZONE_22N 29172
155 
156 
157 /*!\def TE_SRS_SAD69_UTM_ZONE_17S
158  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 17 South.
159  */
160 #define TE_SRS_SAD69_UTM_ZONE_17S 29187
161 
162 /*!\def TE_SRS_SAD69_UTM_ZONE_18S
163  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 18 South.
164  */
165 #define TE_SRS_SAD69_UTM_ZONE_18S 29188
166 
167 /*!\def TE_SRS_SAD69_UTM_ZONE_19S
168  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 19 South.
169  */
170 #define TE_SRS_SAD69_UTM_ZONE_19S 29189
171 
172 /*!\def TE_SRS_SAD69_UTM_ZONE_20S
173  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 20 South.
174  */
175 #define TE_SRS_SAD69_UTM_ZONE_20S 29190
176 
177 /*!\def TE_SRS_SAD69_UTM_ZONE_21S
178  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 21 South.
179  */
180 #define TE_SRS_SAD69_UTM_ZONE_21S 29191
181 
182 /*!\def TE_SRS_SAD69_UTM_ZONE_22S
183  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 22 South.
184  */
185 #define TE_SRS_SAD69_UTM_ZONE_22S 29192
186 
187 /*!\def TE_SRS_SAD69_UTM_ZONE_23S
188  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 23 South.
189  */
190 #define TE_SRS_SAD69_UTM_ZONE_23S 29193
191 
192 /*!\def TE_SRS_SAD69_UTM_ZONE_24S
193  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 24 South.
194  */
195 #define TE_SRS_SAD69_UTM_ZONE_24S 29194
196 
197 /*!\def TE_SRS_SAD69_UTM_ZONE_25S
198  Projected coordinate reference system: UTM projection, Datum SAD69 Datum, Zone 25 South.
199  */
200 #define TE_SRS_SAD69_UTM_ZONE_25S 29195
201 
202 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_17N
203  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 17 North.
204  */
205 #define TE_SRS_SIRGAS2000_UTM_ZONE_17N 31971
206 
207 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_18N
208  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 18 North.
209  */
210 #define TE_SRS_SIRGAS2000_UTM_ZONE_18N 31972
211 
212 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_19N
213  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 19 North.
214  */
215 #define TE_SRS_SIRGAS2000_UTM_ZONE_19N 31973
216 
217 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_20N
218  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 20 North.
219  */
220 #define TE_SRS_SIRGAS2000_UTM_ZONE_20N 31974
221 
222 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_21N
223  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 21 North.
224  */
225 #define TE_SRS_SIRGAS2000_UTM_ZONE_21N 31975
226 
227 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_22N
228  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 22 North.
229  */
230 #define TE_SRS_SIRGAS2000_UTM_ZONE_22N 31976
231 
232 
233 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_17S
234  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 17 South.
235  */
236 #define TE_SRS_SIRGAS2000_UTM_ZONE_17S 31977
237 
238 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_18S
239  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 18 South.
240  */
241 #define TE_SRS_SIRGAS2000_UTM_ZONE_18S 31978
242 
243 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_19S
244  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 19 South.
245  */
246 #define TE_SRS_SIRGAS2000_UTM_ZONE_19S 31979
247 
248 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_20S
249  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 20 South.
250  */
251 #define TE_SRS_SIRGAS2000_UTM_ZONE_20S 31980
252 
253 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_21S
254  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 21 South.
255  */
256 #define TE_SRS_SIRGAS2000_UTM_ZONE_21S 31981
257 
258 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_22S
259  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 22 South.
260  */
261 #define TE_SRS_SIRGAS2000_UTM_ZONE_22S 31982
262 
263 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_23S
264  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 23 South.
265  */
266 #define TE_SRS_SIRGAS2000_UTM_ZONE_23S 31983
267 
268 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_24S
269  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 24 South.
270  */
271 #define TE_SRS_SIRGAS2000_UTM_ZONE_24S 31984
272 
273 /*!\def TE_SRS_SIRGAS2000_UTM_ZONE_25S
274  Projected coordinate reference system: UTM projection, Datum SIRGAS2000 Datum, Zone 25 South.
275  */
276 #define TE_SRS_SIRGAS2000_UTM_ZONE_25S 31985
277 
278 
279 /*!\def TE_SRS_WGS84_UTM_ZONE_18N
280  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 18 North.
281  */
282 #define TE_SRS_WGS84_UTM_ZONE_18N 32618
283 
284 /*!\def TE_SRS_WGS84_UTM_ZONE_19N
285  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 19 North.
286  */
287 #define TE_SRS_WGS84_UTM_ZONE_19N 32619
288 
289 /*!\def TE_SRS_WGS84_UTM_ZONE_20N
290  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 20 North.
291  */
292 #define TE_SRS_WGS84_UTM_ZONE_20N 32620
293 
294 /*!\def TE_SRS_WGS84_UTM_ZONE_21N
295  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 21 North.
296  */
297 #define TE_SRS_WGS84_UTM_ZONE_21N 32621
298 
299 /*!\def TE_SRS_WGS84_UTM_ZONE_22N
300  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 22 North.
301  */
302 #define TE_SRS_WGS84_UTM_ZONE_22N 32622
303 
304 
305 /*!\def TE_SRS_WGS84_UTM_ZONE_17S
306  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 17 South.
307  */
308 #define TE_SRS_WGS84_UTM_ZONE_17S 32717
309 
310 /*!\def TE_SRS_WGS84_UTM_ZONE_18S
311  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 18 South.
312  */
313 #define TE_SRS_WGS84_UTM_ZONE_18S 32718
314 
315 /*!\def TE_SRS_WGS84_UTM_ZONE_19S
316  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 19 South.
317  */
318 #define TE_SRS_WGS84_UTM_ZONE_19S 32719
319 
320 /*!\def TE_SRS_WGS84_UTM_ZONE_20S
321  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 20 South.
322  */
323 #define TE_SRS_WGS84_UTM_ZONE_20S 32720
324 
325 /*!\def TE_SRS_WGS84_UTM_ZONE_21S
326  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 21 South.
327  */
328 #define TE_SRS_WGS84_UTM_ZONE_21S 32721
329 
330 /*!\def TE_SRS_WGS84_UTM_ZONE_22S
331  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 22 South.
332  */
333 #define TE_SRS_WGS84_UTM_ZONE_22S 32722
334 
335 /*!\def TE_SRS_WGS84_UTM_ZONE_23S
336  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 23 South.
337  */
338 #define TE_SRS_WGS84_UTM_ZONE_23S 32723
339 
340 /*!\def TE_SRS_WGS84_UTM_ZONE_24S
341  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 24 South.
342  */
343 #define TE_SRS_WGS84_UTM_ZONE_24S 32724
344 
345 /*!\def TE_SRS_WGS84_UTM_ZONE_25S
346  Projected coordinate reference system: UTM projection, Datum WGS84 Datum, Zone 25 South.
347  */
348 #define TE_SRS_WGS84_UTM_ZONE_25S 32725
349 
350 
351 /*!\def TE_SRS_WGS84_ANTARTIC_POLAR_STEREOGRAPHIC
352  Projected coordinate reference system: Antartic Polar Stereographic, Datum WGS84 Datum.
353  */
354 #define TE_SRS_WGS84_ANTARTIC_POLAR_STEREOGRAPHIC 3031
355 //@}
356 
357 /*!
358  \def TE_SRS_TEXT_DOMAIN
359 
360  \brief It contains the name of the text domain used in the translation of messages in the TerraLib srs module.
361  */
362 #define TE_SRS_TEXT_DOMAIN "tesrs"
363 
364 /** @name DLL/LIB Module
365  * Flags for building TerraLib as a DLL or as a Static Library
366  */
367 //@{
368 
369 //@}
370 
371 /*!
372  \def TESRSEXPORT
373 
374  \brief You can use this macro in order to export/import classes and functions from this module.
375 
376  \note If you want to compile TerraLib as DLL in Windows, remember to insert TESRSDLL into the project's list of defines.
377 
378  \note If you want to compile TerraLib as an Static Library under Windows, remember to insert the TESRSSTATIC flag into the project list of defines.
379  */
380 
381 #ifdef WIN32
382 
383 #ifdef _MSC_VER
384 #pragma warning( disable : 4251 )
385 #endif
386 
387 #ifdef TESRSSTATIC
388 #define TESRSEXPORT // Don't need to export/import... it is a static library
389 #elif TESRSDLL
390 #define TESRSEXPORT __declspec(dllexport) // export DLL information
391 #else
392 #define TESRSEXPORT __declspec(dllimport) // import DLL information
393 #endif
394 #else
395 #define TESRSEXPORT
396 #endif
397 
398 //@}
399 
400 #endif // __TERRALIB_SRS_INTERNAL_CONFIG_H
401