|
1 | 1 | #ifndef __PGS_PGSPHERE_H__
|
2 | 2 | #define __PGS_PGSPHERE_H__
|
3 | 3 |
|
4 |
| -/*! |
5 |
| - \file |
6 |
| - \brief Base declarations and includes |
7 |
| -*/ |
8 |
| - |
9 |
| - |
10 |
| -/*! |
11 |
| -\page index |
12 |
| -
|
13 |
| - <h2>pgSphere</h2> |
14 |
| - <p> |
15 |
| - pgSphere is an extra module for PostgreSQL which adds spherical data types. It provides: |
16 |
| - </p> |
17 |
| - <ul> |
18 |
| - <li> input and output of data</li> |
19 |
| - <li> containing, overlapping, and other operators</li> |
20 |
| - <li> various input and converting functions and operators |
21 |
| - <li> circumference and area of an object |
22 |
| - <li> spherical transformation |
23 |
| - <li> indexing of spherical data types |
24 |
| - <li> several input and output formats |
25 |
| - </ul> |
26 |
| - <p> |
27 |
| - Hence, you can do a fast search and analysis for objects with spherical |
28 |
| - attributes as used in geographical, astronomical, or other applications |
29 |
| - using PostgreSQL. For instance, you can manage data of geographical |
30 |
| - objects around the world and astronomical data like star and other |
31 |
| - catalogs conveniently using an SQL interface. |
32 |
| - </p> |
33 |
| - <p> |
34 |
| - The aim of pgSphere is to |
35 |
| - provide uniform access to spherical data. Because PostgreSQL itself |
36 |
| - supports a lot of software interfaces, you can now use the same database |
37 |
| - with different utilities and applications. |
38 |
| - </p> |
39 |
| -*/ |
40 |
| - |
| 4 | +/* Base declarations and includes */ |
| 5 | + |
| 6 | + |
| 7 | +/* |
| 8 | + * pgSphere is an extra module for PostgreSQL which adds spherical data types. It provides: |
| 9 | + * |
| 10 | + * - input and output of data |
| 11 | + * - containing, overlapping, and other operators |
| 12 | + * - various input and converting functions and operators |
| 13 | + * - circumference and area of an object |
| 14 | + * - spherical transformation |
| 15 | + * - indexing of spherical data types |
| 16 | + * - several input and output formats |
| 17 | + * |
| 18 | + * Hence, you can do a fast search and analysis for objects with spherical |
| 19 | + * attributes as used in geographical, astronomical, or other applications |
| 20 | + * using PostgreSQL. For instance, you can manage data of geographical |
| 21 | + * objects around the world and astronomical data like star and other |
| 22 | + * catalogs conveniently using an SQL interface. |
| 23 | + * |
| 24 | + * The aim of pgSphere is to |
| 25 | + * provide uniform access to spherical data. Because PostgreSQL itself |
| 26 | + * supports a lot of software interfaces, you can now use the same database |
| 27 | + * with different utilities and applications. |
| 28 | + */ |
41 | 29 |
|
42 | 30 | #include <stdlib.h>
|
43 | 31 | #include <stdio.h>
|
44 | 32 | #include <string.h>
|
45 | 33 | #include <math.h>
|
46 | 34 | #include <float.h>
|
47 | 35 |
|
48 |
| -#define PI 3.14159265358979323846 //!< pi |
49 |
| -#define PIH 1.57079632679489661923 //!< pi/2 |
50 |
| -#define PID 6.2831853071795864769 //!< 2*pi |
51 |
| -#define RADIANS 57.295779513082320877 //!< 180/pi |
52 |
| -#define PI_EPS 4.4408920985006261617e-16 /* 2 ** -51 */ |
| 36 | +#define PI 3.14159265358979323846 /* pi */ |
| 37 | +#define PIH 1.57079632679489661923 /* pi/2 */ |
| 38 | +#define PID 6.2831853071795864769 /* 2*pi */ |
| 39 | +#define RADIANS 57.295779513082320877 /* 180/pi */ |
| 40 | +#define PI_EPS 4.4408920985006261617e-16 /* 2 ** -51 */ |
53 | 41 |
|
54 |
| -#define Sqr(a) ( ( a ) * ( a ) ) /* square function as macro */ |
| 42 | +#define Sqr(a) ( (a) * (a) ) /* square function as macro */ |
55 | 43 |
|
56 | 44 | #include "postgres.h"
|
57 | 45 | #include "fmgr.h"
|
|
67 | 55 | #ifdef EPSILON
|
68 | 56 | #undef EPSILON
|
69 | 57 | #endif
|
70 |
| -#define EPSILON 1.0E-09 //!< Precision of floating point values |
| 58 | +#define EPSILON 1.0E-09 /* precision of floating point values */ |
71 | 59 |
|
72 |
| -void sphere_yyparse(void); |
| 60 | +void sphere_yyparse(void); |
73 | 61 |
|
74 | 62 | #endif
|
0 commit comments