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)

Creating new vector layers


In this exercise, we'll create a new layer from scratch. QGIS offers a wide range of functionalities to create different layers. The Layer | New menu lists functions to create new Shapefile and SpatiaLite layers, but we can also create new database tables using the DB Manager plugin. The interfaces differ slightly to accommodate the features supported by each format.

Let's create a new Shapefile to see how it works. A new Shapefile layer, which can be accessed by going to Layer | New or Ctrl + Shift + N, opens the New Vector Layer dialog with options for different geometry types, CRS, and attributes. The process itself is really fast because all mandatory fields already have default values. By default, it will create a new point layer with WGS84 CRS (unless specified otherwise in Settings | Options | CRS) and one integer field called id. We can simply click on OK, specify a filename, and a new layer appears in the layer list.

Next, we also create one line and one...