Hello all,

I use this method to calculate centroid:

For each region:
1. Calculate MBR (Xmin, Xmax, Ymin, Ymax)
2. Set an horizontal (or vertical) line in (Ymax - Ymin)/2
3. Calculate intersection between the previous line and all the segments of
the region
(at least there are two intersection: X1, X2)
4. Xcentroid = (X2 - X1)/2  and  Ycentroid = (Ymax - Ymin)/2

This is only one method.

CIAO

Ing. Massimo Corinaldesi
Regione Marche
Ufficio Cartografia e Informazioni Territoriali
tel. 071-8063529
[EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to