Book Image

QGIS 2 Cookbook

By : Alex Mandel, Víctor Olaya Ferrero, Anita Graser, Alexander Bruy
Book Image

QGIS 2 Cookbook

By: Alex Mandel, Víctor Olaya Ferrero, Anita Graser, Alexander Bruy

Overview of this book

QGIS is a user-friendly, cross-platform desktop geographic information system used to make maps and analyze spatial data. QGIS allows users to understand, question, interpret, and visualize spatial data in many ways that reveal relationships, patterns, and trends in the form of maps. This book is a collection of simple to advanced techniques that are needed in everyday geospatial work, and shows how to accomplish them with QGIS. You will begin by understanding the different types of data management techniques, as well as how data exploration works. You will then learn how to perform classic vector and raster analysis with QGIS, apart from creating time-based visualizations. Finally, you will learn how to create interactive and visually appealing maps with custom cartography. By the end of this book, you will have all the necessary knowledge to handle spatial data management, exploration, and visualization tasks in QGIS.
Table of Contents (19 chapters)
QGIS 2 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Extracting vectors


Clipping is great, except when you don't want to alter the original geometries, such as when you want to select overlapping features. Or, in other cases, you just want filter the geometries based on nonspatial attributes. To achieve both of these results, you can utilize the Selection tools in combination with Save Layer As.. to extract just the features of interest. This recipe uses spatial selection methods to extract a subset of original polygons without altering them.

Getting ready

We'll use the same data as the previous recipe, geology.shp and census_wake2000.shp.

How to do it…

  1. Select polygons from geology.shp that overlap with Wake County (census_wake2000.shp) by navigating to Vector | Research Tools | Select by location.

  2. Select the feature in geology.

  3. Intersect the features in census_wake2000.

  4. Modify the current selection by creating new selection.

  5. Click on OK:

  6. Now, you will see the matching features highlighted (by default in yellow):

  7. If the selection looks good, use the...