Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Mapping Applications with QGIS

You're reading from   Building Mapping Applications with QGIS Create your own sophisticated applications to analyze and display geospatial information using QGIS and Python

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher Packt
ISBN-13 9781783984664
Length 264 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Erik Westra Erik Westra
Author Profile Icon Erik Westra
Erik Westra
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with QGIS FREE CHAPTER 2. The QGIS Python Console 3. Learning the QGIS Python API 4. Creating QGIS Plugins 5. Using QGIS in an External Application 6. Mastering the QGIS Python API 7. Selecting and Editing Features in a PyQGIS Application 8. Building a Complete Mapping Application using Python and QGIS 9. Completing the ForestTrails Application Index

About QGIS

QGIS is a popular, free, and open source Geographic Information System (GIS), which runs on all major operating systems. People often use QGIS to view, edit, and analyze geospatial data. For our purposes, however, QGIS is more than just a GIS system; it is also a geospatial programming environment, which we can use to build our own geospatial applications using Python.

QGIS has a comprehensive website (http://qgis.org), which makes it easy to download, install, and use.

Before reading further, you should spend 15 minutes looking through the website and getting familiar with the application and the documentation available online. In particular, you should check out the Documentation page, where three important manuals are available: QGIS User guide/Manual, QGIS Training manual, and PyQGIS cookbook.

QGIS User guide/Manual provides in-depth user documentation, which you might find useful. QGIS Training manual is a detailed introduction to GIS systems and concepts based on QGIS; you might find it useful to work through this course if you aren't already familiar with geospatial data and techniques. Finally, PyQGIS cookbook will be an essential reference to use as you develop your own mapping applications built on top of QGIS.

Installing and running QGIS

If you haven't already installed QGIS, click on the Download Now button on the main QGIS web page to download the QGIS software. What you do next depends on which operating system you are running on your computer:

  • For MS Windows, you can download a double-clickable installer that installs QGIS and all the required libraries in one go. Make sure you use the OSGeo4W installer, which includes the Python interpreter, QGIS itself, and all the required libraries.
  • For Mac OS X, you'll need to visit the Kyngchaos website (http://www.kyngchaos.com/software/qgis) to download and install the GDAL and matplotlib libraries before installing a version of QGIS specially built for your operating system. All the required packages are available from the Kyngchaos site.
  • For Unix-like systems, you'll use a package manager to download, compile, and install QGIS and the required libraries from an appropriate package repository. More information about installing on a Unix-like system can be found at http://qgis.org/en/site/forusers/alldownloads.html#linux.

Once you have installed the QGIS system, you can run it just like any other application on your computer, for example, by double-clicking on the QGIS icon in your Applications folder.

If everything goes well, the QGIS application will start up and you will be greeted with the following window:

Installing and running QGIS

Note

The exact appearance of the window might vary depending on your operating system. Don't worry, as long as a window appears, which looks something like the one shown in the previous screenshot, you are running QGIS.

You don't need to worry too much about the QGIS user interface right now; the QGIS User Guide describes the interface and various options in great detail. Rather than duplicating this information, let's take a look under the hood to see how QGIS works.

Understanding QGIS concepts

To understand QGIS, you will have to become familiar with the following basic terms and concepts:

  • QGIS works with geospatial information loaded from a variety of data sources. These data sources can include vector and raster data files on a disk, a variety of spatial databases, and even web services such as Web Map Service (WMS) servers that provide geospatial data from the Internet.
  • Wherever the data comes from, it is retrieved by QGIS and displayed as a map layer. Map layers can be shown or hidden, and also customized in various ways to affect the way the data is displayed on the map.
  • The map layers are then combined and displayed on a map.
  • Finally, the various map layers, the map, and the other settings, all make up a project. QGIS always has one and only one project that it is working with. The project consists of all the map layers, the map display options, and the various settings that are currently loaded into QGIS.

These concepts are related in the following manner:

Understanding QGIS concepts

Note

Note that the data sources are outside QGIS. While the map layer refers to a data source, the data itself is stored somewhere else, for example, in a file on a disk or within a database.

Whenever you are working with QGIS, you are always working within the current project. You can save projects and reload them later, or start a new project to reset QGIS back to its original state.

You have been reading a chapter from
Building Mapping Applications with QGIS
Published in: Dec 2014
Publisher: Packt
ISBN-13: 9781783984664
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image