- QGIS 2 Cookbook
- Alex Mandel Víctor Olaya Ferrero Anita Graser Alexander Bruy
- 494字
- 2021-07-16 11:12:34
Finding geospatial data on your computer
This recipe shows you how to use the QGIS browser to locate and open spatial data.
Getting ready
Before you start working, make sure that you have copied the sample dataset to your filesystem and you have it located.
How to do it…
There are several ways of locating and opening a data file to open it in QGIS, but the most convenient of these is the QGIS browser:
- To enable this, go to the View | Panels menu and enable the Browser checkbox in it. The browser will be shown by default in the left-hand side of the QGIS window, as shown in the following screenshot:
Browser contains a tree with all the available sources of spatial data. This includes data files in your filesystem, databases, and remote services.
- Navigate to the folder where you copied the sample dataset, and you will see a list of available data files, as shown in the following screenshot:
- To add a file to your project, just right-click on it and select Add Layer:
- Multiple selections are allowed. In that case, select the Add selected layer menu.
Another way of opening a file is by just dragging it and dropping it into the QGIS canvas. Dragging multiple files is allowed, as well, as shown in the following screenshot:
How it works…
The browser acts as a file explorer that is directly linked to QGIS, which only shows valid data files and can be used to easily add them to a QGIS project.
There's more…
There are a few more things that you need to know that are related to this recipe. They are explained in the following sections.
As an alternative to the browser, the Layer menu contains a set of entries. Each of them deals with a different type of data. They give you some additional options, and they might allow you to work with formats that are not directly supported by the browser.
Navigating to the folder where your data is located can be tedious. If you use a given folder regularly, you can right-click on it and select Add as favorite. The folder will appear on the Favorites section at the top of the browser tree.
The browser also shows non-file data, such as remote services. Services have to be defined before they appear on the corresponding section in the browser. To add a service, right-click on the service name and select New connection.... A dialog will appear to define the service connection parameters.
As an example, try adding the following WMS service, using the WMS entry in the browser, as shown in the following screenshot:

A new entry will appear, containing the layers offered by the service, as shown in the following screenshot:

- Oracle從入門到精通(第3版)
- Visual FoxPro程序設(shè)計教程(第3版)
- MATLAB 2020 從入門到精通
- Python Tools for Visual Studio
- Python GUI Programming Cookbook
- 云計算通俗講義(第3版)
- Data Analysis with Stata
- PhoneGap Mobile Application Development Cookbook
- AutoCAD VBA參數(shù)化繪圖程序開發(fā)與實戰(zhàn)編碼
- 概率成形編碼調(diào)制技術(shù)理論及應(yīng)用
- 前端HTML+CSS修煉之道(視頻同步+直播)
- Python High Performance Programming
- Vue.js 3應(yīng)用開發(fā)與核心源碼解析
- Python一行流:像專家一樣寫代碼
- JavaEE架構(gòu)與程序設(shè)計