1#include "config_functions.h"
2
3namespace DB
4{
5
6class FunctionFactory;
7
8void registerFunctionGeoDistance(FunctionFactory & factory);
9void registerFunctionPointInEllipses(FunctionFactory & factory);
10void registerFunctionPointInPolygon(FunctionFactory & factory);
11void registerFunctionGeohashEncode(FunctionFactory & factory);
12void registerFunctionGeohashDecode(FunctionFactory & factory);
13void registerFunctionGeohashesInBox(FunctionFactory & factory);
14
15#if USE_H3
16void registerFunctionGeoToH3(FunctionFactory &);
17void registerFunctionH3EdgeAngle(FunctionFactory &);
18void registerFunctionH3EdgeLengthM(FunctionFactory &);
19void registerFunctionH3GetResolution(FunctionFactory &);
20void registerFunctionH3IsValid(FunctionFactory &);
21void registerFunctionH3KRing(FunctionFactory &);
22#endif
23
24
25void registerFunctionsGeo(FunctionFactory & factory)
26{
27 registerFunctionGeoDistance(factory);
28 registerFunctionPointInEllipses(factory);
29 registerFunctionPointInPolygon(factory);
30 registerFunctionGeohashEncode(factory);
31 registerFunctionGeohashDecode(factory);
32 registerFunctionGeohashesInBox(factory);
33
34#if USE_H3
35 registerFunctionGeoToH3(factory);
36 registerFunctionH3EdgeAngle(factory);
37 registerFunctionH3EdgeLengthM(factory);
38 registerFunctionH3GetResolution(factory);
39 registerFunctionH3IsValid(factory);
40 registerFunctionH3KRing(factory);
41#endif
42}
43
44}
45