1Centroid - polygonZM (problem case - GEOS throws away the Z and M coordinates) 2:memory: #use in-memory database 3SELECT astext(centroid(geomFromText('POLYGONZM((0 0 1 4, 0 2 1 4, 2 2 1 4, 2 0 1 4, 0 0 1 4))'))) 41 # rows (not including the header row) 51 # columns 6astext(centroid(geomFromText('POLYGONZM((0 0 1 4, 0 2 1 4, 2 2 1 4, 2 0 1 4, 0 0 1 4))'))) 7POINT(1 1) 8 9