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

Method append_points

sql/spatial.cc:945–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943*/
944
945const char *Geometry::append_points(String *txt, uint32 n_points,
946 const char *data, uint32 offset) const
947{
948 while (n_points--)
949 {
950 double x,y;
951 data+= offset;
952 get_point(&x, &y, data);
953 data+= POINT_DATA_SIZE;
954 txt->qs_append(x);
955 txt->qs_append(' ');
956 txt->qs_append(y);
957 txt->qs_append(',');
958 }
959 return data;
960}
961
962
963static void append_json_point(String *txt, uint max_dec, const char *data)

Callers

nothing calls this directly

Calls 2

get_pointFunction · 0.85
qs_appendMethod · 0.45

Tested by

no test coverage detected