ClickHouse/dbms/src/Functions/registerFunctionsGeo.cpp

45 lines
1.3 KiB
C++
Raw Normal View History

2019-06-30 18:20:32 +00:00
#include "config_functions.h"
namespace DB
{
class FunctionFactory;
2019-12-08 23:41:34 +00:00
void registerFunctionGeoDistance(FunctionFactory & factory);
2019-06-30 18:20:32 +00:00
void registerFunctionPointInEllipses(FunctionFactory & factory);
void registerFunctionPointInPolygon(FunctionFactory & factory);
void registerFunctionGeohashEncode(FunctionFactory & factory);
void registerFunctionGeohashDecode(FunctionFactory & factory);
void registerFunctionGeohashesInBox(FunctionFactory & factory);
2019-06-30 18:20:32 +00:00
#if USE_H3
void registerFunctionGeoToH3(FunctionFactory &);
2019-12-05 13:22:10 +00:00
void registerFunctionH3EdgeAngle(FunctionFactory &);
2019-12-05 13:42:37 +00:00
void registerFunctionH3EdgeLengthM(FunctionFactory &);
2019-12-05 13:42:00 +00:00
void registerFunctionH3GetResolution(FunctionFactory &);
2019-12-04 17:57:02 +00:00
void registerFunctionH3IsValid(FunctionFactory &);
2019-12-05 09:42:11 +00:00
void registerFunctionH3KRing(FunctionFactory &);
2019-06-30 18:20:32 +00:00
#endif
2019-06-30 19:45:23 +00:00
void registerFunctionsGeo(FunctionFactory & factory)
2019-06-30 18:20:32 +00:00
{
2019-12-08 23:41:34 +00:00
registerFunctionGeoDistance(factory);
2019-06-30 18:20:32 +00:00
registerFunctionPointInEllipses(factory);
registerFunctionPointInPolygon(factory);
registerFunctionGeohashEncode(factory);
registerFunctionGeohashDecode(factory);
registerFunctionGeohashesInBox(factory);
2019-06-30 18:20:32 +00:00
#if USE_H3
registerFunctionGeoToH3(factory);
2019-12-05 13:22:10 +00:00
registerFunctionH3EdgeAngle(factory);
2019-12-05 13:42:37 +00:00
registerFunctionH3EdgeLengthM(factory);
2019-12-05 13:42:00 +00:00
registerFunctionH3GetResolution(factory);
2019-12-04 17:57:02 +00:00
registerFunctionH3IsValid(factory);
2019-12-05 09:42:11 +00:00
registerFunctionH3KRing(factory);
2019-06-30 18:20:32 +00:00
#endif
}
}