In daily work, you sometimes need to export the information of the Mapinfo layer and the longitude and latitude. If you follow the normal method to directly press "table"-> "transfer out" on the toolbar ", you cannot export the longitude and latitude information. The following methods can solve this problem:
1. Select "table"> "maintain table structure"> select the table to be exported> Add two fields "x" and "y" to the table ", select the "Floating Point" data type for all the new fields. Then, the table is automatically disabled and then opened again manually.
2. Select "option"> "Open MapBasic window"> enter the following code in the MapBasic window and press "enter ".
"Set x = centroidx (OBJ), Y = centroidy (OBJ )"
Now, the latitude and longitude information is saved in the two newly added fields "X, Y". You can directly press "table"> "transfer out ", export all desired information along with the longitude and latitude.