FIX centroid definition and #569

This PR changes the term centroid by interior to be coherent with the algorithm used by renderer. 

Note that the same problem appears for units of measure. It will be fixed asap but some changes are needed before in the legend API.

Fixes #569.