[feature](function)Add ST_Angle_Sphere function (#17919)

This commit is contained in:
Liqf
2023-03-27 10:14:46 +08:00
committed by GitHub
parent fd5dd9a391
commit bcf95cd920
17 changed files with 328 additions and 29 deletions

View File

@ -136,6 +136,27 @@ TEST(VGeoFunctionsTest, function_geo_st_distance_sphere) {
}
}
TEST(VGeoFunctionsTest, function_geo_st_angle_sphere) {
std::string func_name = "st_angle_sphere";
{
InputTypeSet input_types = {TypeIndex::Float64, TypeIndex::Float64, TypeIndex::Float64,
TypeIndex::Float64};
DataSet data_set = {
{{(double)116.35620117, (double)39.939093, (double)116.4274406433,
(double)39.9020987219},
(double)0.0659823452409903},
{{(double)116.35620117, (double)39.939093, (double)116.4274406433, Null()}, Null()},
{{(double)116.35620117, (double)39.939093, Null(), (double)39.9020987219}, Null()},
{{(double)116.35620117, Null(), (double)116.4274406433, (double)39.9020987219},
Null()},
{{Null(), (double)39.939093, (double)116.4274406433, (double)39.9020987219},
Null()}};
check_function<DataTypeFloat64, true>(func_name, input_types, data_set);
}
}
TEST(VGeoFunctionsTest, function_geo_st_contains) {
std::string func_name = "st_contains";
{