Hi,
I am trying to execute a query that calculates the centroid of a polygon in geospatial data. I have already tested all the queries mentioned in the Geospatial Queries - MongoDB Manual v8.0 However, the Polygon::centroid()
function in shapes.cpp
is not being invoked. I confirmed this by adding logs to the function.
Could someone provide a specific query that triggers this function or clarify why it is not being called?