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

Adding plugins with Python dependencies


While the most common and widely-used Python packages are shipped with QGIS, and they can be used by plugins without any additional actions, some QGIS plugins need third-party Python packages, which are not available with the default QGIS installation.

This recipe shows you how to add missing Python packages to the QGIS installation.

Getting ready

To follow this recipe, you may need administrator rights if you are a Windows user, and QGIS is installed in the system drive.

How to do it…

This steps will install pip — a Python package management tool:

  1. Download the get-pip.py file from https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py and save it somewhere on your hard drive, for example in D:\Downloads.

  2. Open the OSGeo4W command prompt as administrator. Right-click on the OSGeo4W Shell shortcut on your Desktop and select Run as Administrator from the context menu. If you cannot find this shortcut on your Desktop, look for it in the Windows...