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

Method centroid

sql/spatial.cc:2589–2595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2587
2588
2589int Gis_polygon::centroid(String *result) const
2590{
2591 double x, y;
2592 if (centroid_xy(&x, &y))
2593 return 1;
2594 return create_point(result, x, y);
2595}
2596
2597
2598int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const

Callers 1

val_strMethod · 0.45

Calls 5

uint4korrFunction · 0.85
set_data_ptrMethod · 0.80
centroid_xyMethod · 0.80
create_pointFunction · 0.70
areaMethod · 0.45

Tested by

no test coverage detected