Practical tutorial! Use Python to obtain data and mark them in batches on the map

We want to mark a large number of points of a certain type on the map in batches, how should we operate? Without its coordinate data, there is no way to batch label. Today, I would like to introduce to you the original tutorial from Tuxin Earth user Wang Ze-using Python to obtain data and mark it in batches on the map!

Take Chengdu Library as an example, use Python to obtain latitude and longitude data
1. Use Python to grab AutoNavi api to obtain library location latitude and longitude

2. LSV (Picture New Earth) export kml annotation file

Process latitude and longitude, export kml annotation file:
export the latitude and longitude file to the kml file, and use the position to be marked
1. Click "Tools" on the top menu of LSV, and select "Excel to KML"
2. Click "Open XLS" in the pop-up dialog box to import After the Excel file, it displays as shown in Figure
3. The red box is the content that needs to be selected, where the latitude and longitude start line, if the first line is the title, select the second line
4. Click "Generate point" and preview the generated result

3. Download the Chengdu map data:
1. In the LSV search box, select "Search by place name" to search for Chengdu
. 2. Select the appropriate image or map from the online map.
3. In the pop-up download area settings, click "Select surface" , And select the Chengdu area
. 4. Select the output format "MBT offline map package" to download.
5. The download level is selected according to your needs. It is recommended that the level is below 14.

4. Global mapper label style setting
(1) Import the file in Global mapper, right-click the Chengdu library file, and select "options" to set the label point style.

(2) Select a style, click "Feature Types", click the drop-down box, and choose among the available styles.

5.
Global mapper file export Select PDF or picture format in Global mapper to export the file.

Output: Thematic map of the geographical location visualization of Chengdu Library.

Software used:

Figure new earth official download

GlobalMapper please search and download by yourself

Guess you like

Origin blog.csdn.net/wanqiu1112/article/details/108007967