Calculate center's coordinates of polygon in MapInfo?

1,516 views
Skip to first unread message

Nguyen Leanh

unread,
Oct 24, 2013, 5:28:34 AM10/24/13
to mapi...@googlegroups.com
How can i calculate coordinates of center point within polygon in MapInfo.

Brendan Stone

unread,
Oct 24, 2013, 8:22:19 AM10/24/13
to mapi...@googlegroups.com
The long way:

Create new X and Y columns for your polygon table (Table>Maintenance>Table Structure)
Then update the new columns with the centroid coordinates:
- Table>Update Column
- Select your polygon table and then the X column you previously created.
- Set "Get Value From Table" to your polygon table
- Set "Value" to "centroidx(obj)" (without the quotes)
- Press OK
- Repeat with the Y column ensuring you also change the centroidX(obj) to centroidY(obj)


The short way:

- Go to: Tools>Tool Manager
- Enable and then run the "Coordinate Extractor" Tool

Hope that helps
Reply all
Reply to author
Forward
0 new messages