MapInfo Products KnowledgeBase
Product:
MapInfo
Version:
6.0
Platform:
Win9x\NT\2000
Category:
Tools
Summary:
CoordinateExtractor.mbx - A MapBasic program to extract coordinates from a table.
Question:
Is there a MapBasic program that will automatically update columns with X and Y coordinates in a table’s native projection?
Answer:
The CoordinateExtractor.mbx will add two columns to a selected table and update the columns with X and Y coordinate values in the table’s native projection as opposed to the default projection of Longitude/Latitude.
For example, if a table is in UTM Zone 16, the coordinates will be in UTM values. If a table is in the default Longitude/Latitude projection, the coordinates will be in decimal degrees.
For objects other than points (such as polygons, lines), the X and Y coordinates will represent CentroidX and CentroidY values of the object.
To install and run the program:
1. Un-attach the MBX and place it inside the MapInfo\Professional\Tools directory.
2. Inside of MapInfo, choose File>Run MapBasic Program and select the CoordinateExtractor.mbx.
3. Go to the Tools menu and CoordinateExtractor should be listed. Start the program from there.
Last Modified:
04/05/2002 11:54:58 AM
Document URL:
http://testdrive.mapinfo.com/techsupp/miprod.nsf/kbase_by_product/0F4CE61B4508BEA9852569D6006E3B70
CoordinateExtractor.mbx - A MapBasic program to extract coordinates from a table.^0F4CE61B4508BEA9852569D6006E3B70^Y