Simply make a copy of your file then run from the MapBasicWindow :
update your_copy set obj=createpoint(centroidx(obj),centroidy(obj))
Make sure that you are working in the proper coordsys by running before
set coordsys table your_copy
I hope I am not too late!
Good luck
Jacques Paris
e-mail alternate
[EMAIL PROTECTED] [EMAIL PROTECTED]
paris PC Consult (mainly MapInfo app.)
www.total.net/~rparis/gisproducts.htm
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rodolphe Devillers
Sent: February 16, 2000 10:56 AM
To: [EMAIL PROTECTED]
Subject: MI Batch - Polygons to centroids
Hi everyone,
I want to transform a MapInfo file which contain 12 000 of polygones
(buildings)
in a file which would include only the centroids of theses polygons
(points).
Do you know if there is a macro which could do that kind of action?
thanks a lot,
Rodolphe
********************************************************************
Rodolphe Devillers
Centre de recherche en G�omatique (CRG)
Universit� Laval
0722 Pavillon Louis-Jacques-Casault
Qu�bec (Qu�bec), G1K 7P4 Canada
Canada
Tel: (418) 656-2131 #3203
Fax: (418) 656-3607
[EMAIL PROTECTED]
Site Web CRG: http://www.crg.ulaval.ca/
Page Web: http://www.marinegis.com/
**********************************************************************
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [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]