Or if you a a recent Mapinfo version, you can use the tool Coordinate Extractor

It will extract the centroids and update your table with native OR non native 
projection into existing column or ask the tools to create them for you.

This mean that you can just make a copy of your table (leaving your polygons intacts, 
extract the coordinates, use either the table manager to remove "table is mappable" or 
select all objects from table making sure that your copy is editable, go in menu edit 
and clear all map objects. Other means by saving the file in a non map format like 
dbf... Whatever you do, you'll just now have a table with the data and lon/lat in your 
favorite projection

Afterward, use your copy to create points
 

Gilbert

-----Original Message-----
From: Spencer Simpson [mailto:[EMAIL PROTECTED] 
Sent: May 4, 2004 13:49
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: MI-L Centroids


Michael:

You need to set MapInfo's "current coordinate system" to an appropriate projection 
before extracting coordinates.

Alternative 1:

1a. Open any map.

1b. Select "Options" -> "Show MapBasic Window" from MapInfo's menu. 
(if "Hide MapBasic Window" appears in that menu, skip this step)

1c. Select "Map" -> Options" to change the map window projection to what you want (UTM)

1d. Select "Window" -> "MapBasic" to bring the MapBasic window to the front.

1e. You will see that MapInfo printed a "Set Map Coordsys" statement in the MapBasic 
Window.  Delete the word "Map" from this statement and hit ENTER.



Alternative 2 assumes your table's native projection is the one you want:

1a. Make sure the table is open.

1b. Select "Options" -> "Show MapBasic Window" from MapInfo's menu. 
(if "Hide MapBasic Window" appears in that menu, skip this step).

1c. Select "Window" -> "MapBasic" to bring the MapBasic window to the front.

1d. Type "Set Coordsys table xxxxxxx" (where "xxxxxx" is 
the name of the table) in the MapBasic window and hit ENTER.


Once you've followed one of the above sets of instructions, run your SQL Select 
routine again (extracting CentroidX(obj) and CentroidY(obj) from the table). You'll 
notice that the coordinates magically turn into the UTM Coordinates you want. 

Hope this helps
Spencer 


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, 
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11633


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11634

Reply via email to