Gis is mainly used in geographical mapping. In fact, it is a relatively separate category. Usually in the face of map demand, we directly strong baidu, Autonavi API. However, the Internet is not available for certain industries and specific projects, so Gis is the only alternative. Qgis, which is more like CAD or PS, is a tool for processing Gis files. For example, now we need to draw the track of a highway on a map based on the longitude and latitude coordinates mapped. As shown below (the real path of a certain place in northeast China) :
You need to use Qgis. Below is a more detailed look at how to draw these paths on a map using Qgis.
1. Download and install QGIS
Official address: qgis.org/en/site/for… Select the latest version to download, as shown below:
Then brainless installation.
2. Set Chinese
Select “seeting” – “options” – “General” as shown below
3. Panel Introduction
Because of the powerful function of QGIS, only a few functions related to this case are introduced, and other needs are explored later.
3-1. Left browser
Browser starts with three parts (top to bottom) : 1. Local disk. This is where we can import the files we need. 2, WMS here can add services. For example, some geographical environment mapping information in the National Map of Heaven and Earth, which is a URL address. Right-click to open the Add interface. Map address:Service. Tianditu. Gov. Cn / #.
WMTS services can now be found in the Map:
Click in and you can see the service address:
Then enter QGIS, right-click WMS, and the following interface is displayed:
XYZ Tiles. This corresponds to older versions of the Layer plugin. Basically add some tile map services. Just call up some maps online. Google Map is very useful, but unfortunately, it doesn’t work. Therefore, it is itself from “OpenSoucemap”. If the requirements are not high, you can also use it, here I provide an autonavi unmarked version, but also welcome friends to provide better tile map service. Create a new connection from the shortcut menu as follows:
Amap Address:Wprd01.is.autonavi.com/appmaptile?…
3-2, layer
For those of you with photoshop experience, this is not hard to understand. There is only a difference in operation. All layer actions can be done by right clicking.
3-3 toolbox
A toolbox is displayed on the right. If not, don’t worry. The operation is as follows:
All right, knowing these three panels, that’s enough for now.
Import the shape file
What is a shape file? I couldn’t say a word or two. The suggestions are as follows:
Just be aware that it is a file that can be parsed by Qgis, just as PSD is for Photoshop.
Get the previous file data as follows:
A pile of papers. They’re one big family. One big family. If you just pull out the.shp file, Qgis will definitely report an error.
Then import it into QGIS, find the folder in the “Browser” panel, and double-click the.shp file. In the middle operation area, you can see the vector path of the highway recorded in the.shp file. As shown in the figure:
5. Prepare coordinate data
The vector path to the.shp file has been successfully seen above. But we need to add some new paths based on the new data. Take the table data, organize it into Excel, note, save it in CSV format. The format is as follows:
Longitude and latitude.
Note here the field name of each column. Because we’re going to use it when we import it later.
6. Import data drawing points
Click on the top layer and do the following:
Then, do the following:
Close this popover.
Not surprisingly, you should be able to see the dots on the canvas.
If you want to adjust the style of a dot, double-click on the layer of the dot to see the color of the dot and other style Settings.
7, connect the points into a line
This is where the toolbox panel comes in. Search point line:
Then, take the following three steps:
A new path will be generated.
8. Union of paths
Click on the top “vector” :
Select the two layers you want to combine:
Finally, a new layer file is generated.
Export the shape file
Right-click on the newly generated union layer and select “Export” :
Pop up a popover:
Format select shape file.
Finally, generate several files for the initial “big family”. The whole process, pay attention to more points, the proposal to use more grope.
- end