MCPcopy Create free account
hub / github.com/MariaDB/server / append_json_point

Function append_json_point

sql/spatial.cc:963–977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961
962
963static void append_json_point(String *txt, uint max_dec, const char *data)
964{
965 double x,y;
966 get_point(&x, &y, data);
967 if (max_dec < FLOATING_POINT_DECIMALS)
968 {
969 x= my_double_round(x, max_dec, FALSE, FALSE);
970 y= my_double_round(y, max_dec, FALSE, FALSE);
971 }
972 txt->qs_append('[');
973 txt->qs_append(x);
974 txt->qs_append(", ", 2);
975 txt->qs_append(y);
976 txt->qs_append(']');
977}
978
979
980/*

Callers 2

append_json_pointsFunction · 0.85
get_data_as_jsonMethod · 0.85

Calls 3

get_pointFunction · 0.85
my_double_roundFunction · 0.85
qs_appendMethod · 0.45

Tested by

no test coverage detected