How to export the longitude and latitude information of the Mapinfo Layer

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.