how can i get the centroid of a multipolygon, i guess it is with nettopology api but i cant figure out how?
thanks in advance.
how can i get the centroid of a multipolygon, i guess it is with nettopology api but i cant figure out how?
thanks in advance.
Sebastien,
If there is no misunderstanding, you can easily get it by calling “multipolygon.GetCenterPoint ()”.
Let me know if you have any questions.
Thanks,
Howard
ok i thought it was the center of the multishape bounding box, it works very well.
thank you very much
Sebastien,
I think this might be the center of the bounding box. There are actually many ‘centers’ to a multipolygon. There are many mathmatical ways to calculate them. For example is it the center of the bounding box, is it the center of the mass of the polygons, is it theass center where the center is within the polygon etc. I think in the future we may supper more types of center. I just wanted to throw this in to give you am idea that there are Manu centers and it isn’t as straight forward of question as manyay think :-)
David