FIX centroid definition and #569

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