| 1 | #include "config_functions.h" |
|---|---|
| 2 | |
| 3 | namespace DB |
| 4 | { |
| 5 | |
| 6 | class FunctionFactory; |
| 7 | |
| 8 | void registerFunctionGeoDistance(FunctionFactory & factory); |
| 9 | void registerFunctionPointInEllipses(FunctionFactory & factory); |
| 10 | void registerFunctionPointInPolygon(FunctionFactory & factory); |
| 11 | void registerFunctionGeohashEncode(FunctionFactory & factory); |
| 12 | void registerFunctionGeohashDecode(FunctionFactory & factory); |
| 13 | void registerFunctionGeohashesInBox(FunctionFactory & factory); |
| 14 | |
| 15 | #if USE_H3 |
| 16 | void registerFunctionGeoToH3(FunctionFactory &); |
| 17 | void registerFunctionH3EdgeAngle(FunctionFactory &); |
| 18 | void registerFunctionH3EdgeLengthM(FunctionFactory &); |
| 19 | void registerFunctionH3GetResolution(FunctionFactory &); |
| 20 | void registerFunctionH3IsValid(FunctionFactory &); |
| 21 | void registerFunctionH3KRing(FunctionFactory &); |
| 22 | #endif |
| 23 | |
| 24 | |
| 25 | void 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 |