- Practical GIS
- Gábor Farkas
- 430字
- 2021-07-02 22:49:12
Accessing raster data
The first data type that we will use is raster data. It might be the most familiar to you, as it resembles traditional images. First of all, let's open QGIS. In the browser panel, we can immediately see our downloaded data if we navigate to our working directory. We can easily distinguish vector data from raster data by their icons. Raster layers have a dedicated icon of a 3x3 pixels image, while vector layers have an icon of a concave polygon:

We can drag and drop most of the data from the browser panel or, alternatively, use the Add Raster Layer button from the Add layer toolbar and browse the layer. The browser panel is more convenient for easily recognizable layers as it only lists the files we can open and hides auxiliary files with every kind of metadata. Let's drag one of the SRTM rasters to the canvas (or open one with Add Raster Layer). This is a traditional, single-band raster. It is displayed as a greyscale image with the minimum and maximum values displayed in the Layers Panel:

As you can see in the preceding screenshot, there is a regular grid with cells painted differently, just like an image. However, based on the maximum value of the data, its colors aren't hard coded into the file, like in an image. Furthermore, it has only a single band, not three or four bands for RGB(A). Let's examine the raster more carefully by zooming in until we can see individual cells. We can also query them for their values with the Identify Features tool by clicking on a cell (raster):

As you can see, we get a number for every cell, which can be quite out of the range of 0-255 representing color codes. These numbers seem arbitrary, and indeed, they are arbitrary. They usually represent some kind of real-world phenomenon, like in our case, the elevation from the mean sea level in meters.
- AngularJS入門與進階
- FreeSWITCH 1.8
- Reactive Programming with Swift
- Xcode 7 Essentials(Second Edition)
- Android NDK Beginner’s Guide
- Visual Basic程序設計實踐教程
- C語言程序設計上機指導與習題解答(第2版)
- 51單片機C語言開發教程
- 好好學Java:從零基礎到項目實戰
- INSTANT Silverlight 5 Animation
- WildFly Cookbook
- Test-Driven iOS Development with Swift
- Getting Started with Windows Server Security
- 深入理解C++11:C++11新特性解析與應用
- Java并發編程實戰