Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Learn QGIS
Learn QGIS

Learn QGIS: Your step-by-step guide to the fundamental of QGIS 3.4 , Fourth Edition

eBook
€8.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Learn QGIS

Data Creation and Editing

At the core of any GIS is data. Without it, we cannot create maps or perform spatial analysis. In this chapter, we will load, edit, and create data. We will look at the large range of formats and types and how QGIS 3.4 helps us to work with them.

If you are familiar with GIS, then you will already know that we often work with vector data, namely points, lines, polygons, and raster data, as pixels. Vector and raster data are the core data types that we use in a GIS. However, text files, databases, and web services can also be integrated into GIS. We can use a location associated with a file (such as a coordinate), or we can perform joins to extend or spatially enable our existing data.

In this chapter, we will explore all of the data options in QGIS. The topics covered in this chapter are as follows:

  • Data formats
  • Loading data
  • Interacting with data
  • Vector...

Data formats

QGIS supports many GIS data formats. It makes use of the OGR library for vector data and the GDAL library for raster data.

To see the latest list of OGR vector formats, check out http://www.gdal.org/ogr_formats.html, and to see a list of GDAL raster formats, visit http://www.gdal.org/formats_list.html. If you can't find your format on the list, it is probably not supported in QGIS at this time.

Shapefiles are the most common form of vector data today, and QGIS supports this format. Similarly, GeoTIFF are probably the most common form of raster data, and QGIS also supports these. In this book, we will work with and use these formats, as well as the new GeoPackage format.

GeoPackage

QGIS 3 has chosen GeoPackage...

Loading data

We are going to start by loading data into QGIS 3.4. You may have some of your own data that you wish to use, but all of the techniques are applicable to any GIS data you have. We will use the QGIS sample data for these examples. Over the following chapters, we will use the sample dataset to eventually build maps.

Download the QGIS sample data from https://qgis.org/downloads/data/ and look for the qgis_sample_data.zip file. Download and extract this data to a folder on your computer.

Getting data into QGIS

Loading data into QGIS can be done in several ways. The three most common ways are as follows:

  • You can drag data directly from a folder straight into the map.
  • You can drag data from the browser panel (shown...

Interacting with data

When you loaded the Alaska layer, you probably noticed that the data appeared as a relatively small object. In this section, we will cover some of the basic interactions we can perform with data. Let's start with zooming in.

Navigation

Later, we will show you how to zoom in on a layer to look at it in more detail. But first, let's remind ourselves of the project and navigation toolbar:

Project and Navigation toolbar

These tools are the workhorse of the GIS. They allow us to move around, inspect, measure, and select data. All are critical in any GIS, and if you have used mapping software before, you should be familiar with them.

Start by clicking on the zoom-in icon (a magnifying glass icon...

Vector data

Now that we have become more familiar with inspecting, selecting, and interacting with data within QGIS, it's time to create data. In this section, we are going to edit attribute data, create vector data, and join data.

Editing attribute data

With the AREA_MI <= 1000 selection, let's add a field and populate it with a marker based on this selection.

Click on the Field Calculator button in the attributes toolbar to open up the field calculator.

This window contains considerable information; there is a great deal of power within the field calculator. In our case, we want to create a new field called small_area and assign yes if it is =< 1000, or no if it is >1000. As with many of the tools in GIS...

Raster data

Raster data is not created like vector data. Quite often, raster data is created from other raster data, such as creating a slope raster from a topographic raster. Raster data can also be created from vector data, which can be done by gridding a series of coordinates/points. QGIS has the ability to perform all of these functions. We will further explore raster visualization in Chapter 4, Creating Great Maps, and processing rasters in Chapter 6, Extending QGIS with Python.

In this section, we will convert our Canada_Provinces.shp to a raster. In the menu, click Raster | Conversion | Rasterize (vector to raster), as shown in the following screenshot:

Vector to raster

In the following dialog box, enter these parameters:

  • Input Layer: Canada_Provinces.
  • Burn-in value: id.
  • Output raster size units: Pixels.
  • Width: 10 (this will create a raster with a width of 10 pixels...

Other data

Finally, we will take a look at databases and the process of creating data in the new GeoPackage format.

Creating a GeoPackage

At the start of this chapter, we looked at data formats and the GeoPackage format. Remember that, in QGIS 3, the GeoPackage format is the default format. So, let's finish this chapter by creating data in the GeoPackage format:

Create a new GeoPackage layer by clicking Layer | Create Layer | New GeoPackage Layer...:

Create a New GeoPackage Layer

Now fill in the resulting dialog box. Let's create a GeoPackage called My_first_GeoPackage, set the Geometry type as a Point, and add the ID and Name fields.

It should look similar to the following screenshot:

New GeoPackage Layer dialog...

Summary

In this chapter, you learned the basics of using data in a GIS. QGIS 3.4 supports all the formats in OGR and GDAL. The default format for QGIS 3.4 is the GeoPackage. We also looked at creating and editing Vector data, as well as attribute tables and geometries. Furthermore, we joined data and used snapping tools to preserve topology. Don't ignore Raster data though; we will use it many times throughout this book. In this chapter, we briefly reviewed its creation and hinted at the powerful GDAL tools built into QGIS. Finally, we looked at spatial databases in QGIS 3.4 and connected to them in DB Manager.

In the next chapter, we will look at styling and visualizing this data.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Leverage the power of QGIS to add professionalism to your maps
  • Explore and work with the newly released features like Python 3, GeoPackage, 3D views, Print layouts in QGIS 3.4
  • Build your own plugins and customize maps using QT designer

Description

QGIS 3.4 is the first LTR (long term release) of QGIS version 3. This is a giant leap forward for the project with tons of new features and impactful changes. Learn QGIS is fully updated for QGIS 3.4, covering its processing engine update, Python 3 de-facto coding environment, and the GeoPackage format. This book will help you get started on your QGIS journey, guiding you to develop your own processing pathway. You will explore the user interface, loading your data, editing, and then creating data. QGIS often surprises new users with its mapping capabilities; you will discover how easily you can style and create your first map. But that’s not all! In the final part of the book, you’ll learn about spatial analysis and the powerful tools in QGIS, and conclude by looking at Python processing options. By the end of the book, you will have become proficient in geospatial analysis using QGIS and Python.

Who is this book for?

If you are a developer or consultant familiar with the basic functions and processes of GIS and want to learn how to use QGIS to analyze geospatial data and create rich mapping applications, this book is for you. You’ll also find this book useful if you’re new to QGIS and wish to grasp its fundamentals

What you will learn

  • Explore various ways to load data into QGIS
  • Understand how to style data and present it in a map
  • Create maps and explore ways to expand them
  • Get acquainted with the new processing toolbox in QGIS 3.4
  • Manipulate your geospatial data and gain quality insights
  • Understand how to customize QGIS 3.4
  • Work with QGIS 3.4 in 3D

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 27, 2018
Length: 272 pages
Edition : 4th
Language : English
ISBN-13 : 9781788998864
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 27, 2018
Length: 272 pages
Edition : 4th
Language : English
ISBN-13 : 9781788998864
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 116.97
Mastering Geospatial Analysis with Python
€41.99
Learn QGIS
€32.99
Hands-On Geospatial Analysis with R and QGIS
€41.99
Total 116.97 Stars icon
Banner background image

Table of Contents

7 Chapters
Where Do I Start? Chevron down icon Chevron up icon
Data Creation and Editing Chevron down icon Chevron up icon
Visualizing Data Chevron down icon Chevron up icon
Creating Great Maps Chevron down icon Chevron up icon
Spatial Analysis Chevron down icon Chevron up icon
Extending QGIS with Python Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
(1 Ratings)
5 star 0%
4 star 0%
3 star 0%
2 star 100%
1 star 0%
fsdbm Jan 22, 2021
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
As far as I could tell, "Learning QGIS" was written quickly, with very poor editing. I found it riddled with inaccurate descriptions and omissions, and most particularly, it's very poorly indexed, so answers aren't easily found. The first round of QGIS sample data can be downloaded easily, but the promised "extra material," was not available at the publisher's web page (which turned out to be nothing more than a promotional list of additional books). This left unanswered the question, why force more than one download in the first place? The author also takes liberties with oddly misplaced or non-standard terminology that is unexplained, and leads to unnecessary frustration. Finally, the book is obsolete. It is written for version 3.4, but QGIS is already up to version 3.16. The poorly printed B&W illustrations are bad enough, but changes in the software through version 3.16 make some of the book's instructions impossible to follow. Unfortunately, the appalling price of most instructional books about QGIS leaves few options available. All I can offer is, choose wisely.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.