Book Image

Learning QGIS 2.0

By : Anita Graser
Book Image

Learning QGIS 2.0

By: Anita Graser

Overview of this book

QGIS is a user friendly open source geographic information system (GIS) that runs on Linux, Unix, Mac OSX, and Windows. The popularity of open source geographic information systems and QGIS in particular has been growing rapidly over the last few years. More and more companies and institutions are adopting QGIS and even switching to QGIS as their main GIS. Learning QGIS 2.0 is a practical, hands-on guide that provides you with clear, step-by-step exercises that will help you to apply your GIS knowledge to QGIS. Containing a number of clear, practical exercises, this book will introduce you to working with QGIS, quickly and painlessly. If you want to take advantage of the wide range of functionalities that QGIS offers, then this is the book for you. This book takes you from installing and configuring QGIS, through handling spatial data to creating great maps. You will learn how to load and visualize existing spatial data and how to create data from scratch. You will perform common geoprocessing and spatial analysis tasks and automate them. We will cover how to achieve great cartographic output and print maps. You will learn everything you need to know to handle spatial data management, processing, and visualization tasks in QGIS.
Table of Contents (12 chapters)

Accessing raster and vector layer statistics


Whenever we get a new dataset, it is useful to examine the layer statistics to get a feeling for the data. Raster layer statistics are readily available in the Layer Properties dialog, specifically in the following tabs:

  • Metadata shows the minimum and maximum cell value as well as the mean and the standard deviation

  • Histogram presents the distribution of raster values

  • For vector layers, we can get summary statistics using two tools in Vector | Analysis Tools:

    • Basics statistics is very useful for numeric fields. It calculates parameters such as mean and median, min and max, the feature count n and the number of unique values, and so on for all the features of a layer or for the selected features only.

    • List unique values is useful to get all the unique values of a certain field.

In both the tools, we can easily copy the results using Ctrl + C and paste them into a text file or spreadsheet. The following screenshots show examples exploring the contents...