【译】QGIS培训手册-添加第一个图层

2.2. 添加第一个图层(Lesson: Adding your first layer)

我们将启动该应用程序,并创建一个基本的地图,用来示范和练习。(We will start the application, and create a basic map to use for examples and exercises.)

本课目标:从示例地图开始学(The goal for this lesson: To get started with an example map.)

Note

在开始这项工作之前, 你的计算机上必须已经安装有QGIS。另外,你可以从QGIS data downloads area下载training_manual_exercise_data.zip文件,用于本次练习。(Before starting this exercise, QGIS must be installed on your computer. Also, download thetraining_manual_exercise_data.zip file from the QGIS data downloads area.)

根据你具体的安装情况,从桌面或者开始菜单中启动QGIS。(Launch QGIS from its desktop shortcut, menu item, etc., depending on how you configured its installation.)

Note

本次课程的截图来自MacOS版本的QGIS 2.0,根据你的电脑的实际情况,你看到的操作界面可能与此不同。但是所有按钮的样式是相同的,所有的操作在任何操作系统上都是可以实现的。你需要安装QGIS2.0来使用本教程。【译者注:截止到2015年8月4日,QGIS最新版本为2.10.1,不管你安装哪个版本,都可以使用本教程】The screenshots for this course were taken in QGIS 2.0 running on MacOS. Depending on your setup, the screens you encounter may well appear somewhat different. However, all the same buttons will still be available, and the instructions will work on any OS. You will need QGIS 2.0 (the latest version at time of writing) to use this course.

让我们立马开始吧!(Let’s get started right away!)

 

2.2.1. basic 跟我做:准备一张地图(Follow Along: Prepare a map)

  • 打开QGIS,你会看到一个新建的空白地图。(Open QGIS. You will have a new, blank map.)
  • 找到添加矢量图层按钮mActionNewVectorLayer。(Look for the Add Vector Layer button: mActionNewVectorLayer
  • 点击它打开以下对话框:(Click on it to open the following dialog:)

../../../_images/add_vector_dialog.png

  • 点击浏览按钮,导航到 exercise_data/epsg4326/roads.shp 这个文件(在示例数据集的目录下)。选中该文件后,点击打开。你会看到刚刚那个对话框,但是文件路径填写在数据源的文本框里了。继续点击打开。你指定的数据将被加载到窗口中。(Click on the Browse button and navigate to the file exercise_data/epsg4326/roads.shp (in your course directory). With this file selected, click Open. You will see the original dialog, but with the file path filled in. Click Open here as well. The data you specified will now load.)

恭喜你!你现在完成了一个基本的地图。现在让我们来保存一下当前的工作。(Congratulations! You now have a basic map. Now would be a good time to save your work.)

  • 点击另存为按钮:mActionFileSaveAs。(Click on the Save As button: mActionFileSaveAs
  • 将地图保存在 exercise_data/ 路径下,并取名为 basic_map.qgs 。(Save the map under exercise_data/ and call it basic_map.qgs.)

检查结果(通过发表评论,检查你是否做对了):

——————————————————-

你会看到许多的线条,各式各样的道路。这些线条都来自你刚刚加载的图层。(You should see a lot of lines, symbolizing roads. All these lines are in the vector layer that you just loaded to create a basic map.)

——————————————————-

2.2.2. 小结(In Conclusion)

你已经学会了如何添加一个图层,并创建一个基本的地图!(You’ve learned how to add a layer and create a basic map!)

2.2.3. 接下来学什么?(What’s Next?)

现在你已经知道了如何使用添加矢量图层按钮但是所有其他的按钮是干啥的?这个操作界面是如何工作的呢?在我们学习更多内容之前让我们好好 QGIS 操作界面总体布局这就下一主题。(Now you’re familiar with the function of the Add Vector Layer button, but what about all the others? How does this interface work? Before we go on with the more involved stuff, let’s first take a good look at the general layout of the QGIS interface. This is the topic of the next lesson.)

原作者:Linfiniti Consulting CC.   翻译:数据地图博客

《【译】QGIS培训手册-添加第一个图层》有17个想法

发表评论

邮箱地址不会被公开。 必填项已用*标注

填写验证码: *