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 now! 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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Geospatial Development with QGIS 3.x

You're reading from   Mastering Geospatial Development with QGIS 3.x An in-depth guide to becoming proficient in spatial data analysis using QGIS 3.4 and 3.6 with Python

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781788999892
Length 466 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Authors (6):
Arrow left icon
Luigi Pirelli Luigi Pirelli
Author Profile Icon Luigi Pirelli
Luigi Pirelli
Richard Smith Jr., GISP Richard Smith Jr., GISP
Author Profile Icon Richard Smith Jr., GISP
Richard Smith Jr., GISP
Kurt Menke, GISP Kurt Menke, GISP
Author Profile Icon Kurt Menke, GISP
Kurt Menke, GISP
Shammunul Islam Shammunul Islam
Author Profile Icon Shammunul Islam
Shammunul Islam
John Van Hoesen, GISP John Van Hoesen, GISP
Author Profile Icon John Van Hoesen, GISP
John Van Hoesen, GISP
Simon Miles Simon Miles
Author Profile Icon Simon Miles
Simon Miles
+2 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Introduction FREE CHAPTER
2. A Refreshing Look at QGIS 3. Section 2: Getting Started
4. Styling Raster and Vector Data 5. Creating Spatial Databases 6. Preparing Vector Data for Processing 7. Preparing Raster Data for Processing 8. Section 3: Diving Deeper
9. Advanced Data Creation and Editing 10. Advanced Data Visualization 11. Section 4: Becoming a Master
12. The Processing Toolbox 13. Automating Workflows with the Graphical Modeler 14. Creating QGIS Plugins with PyQGIS and Problem Solving 15. PyQGIS Scripting 16. Other Books You May Enjoy

Converting rasters into vectors

Rasters can have limitations when it comes to querying them, and so it might be necessary to export a raster to a vector layer from time to time.

While this tool is very useful, we would urge you not to convert rasters that cover a large geographic area. It may be better to process individual tiles into vectors and then merge the vectors together at a later time.

Using the output from the previous section (if this is a temporary file, this will be called Clipped (Mask)), perform the following steps:

  1. Go to Raster | Conversion | Polygonize (Raster to vector).
  2. In the Polygonize (Raster to Vector) window, choose the Input Layer via the drop-down menu or Browser button. Choose Clipped (Mask).
  3. Choose the Band number (Band 1 (Gray)). You might want to experiment to see what the other bands produce.
  4. You can change the name of the field to be...
lock icon The rest of the chapter is locked
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 €18.99/month. Cancel anytime