QGIS Python Programming Cookbook - Second Edition
eBook - ePub

QGIS Python Programming Cookbook - Second Edition

Joel Lawhead

Share book
  1. 464 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

QGIS Python Programming Cookbook - Second Edition

Joel Lawhead

Book details
Book preview
Table of contents
Citations

About This Book

Master over 170 recipes that will help you turn QGIS from a desktop GIS tool into a powerful automated geospatial frameworkAbout This Book• Delve into the undocumented features of the QGIS API• Get a set of user-friendly recipes that can automate entire geospatial workflows by connecting Python GIS building blocks into comprehensive processes• This book has a complete code upgrade to QGIS 2.18 and 30 new, valuable recipesWho This Book Is ForThis book is for geospatial analysts who want to learn more about automating everyday GIS tasks as well as programmers responsible for building GIS applications. The short, reusable recipes make concepts easy to understand and combine so you can build larger applications that are easy to maintain.What You Will Learn• Use Python and QGIS to produce captivating GIS visualizations and build complex map layouts• Find out how to effectively use the poorly-documented and undocumented features of the QGIS Python API• Automate entire geospatial workflows by connecting Python GIS building blocks into comprehensive processes• Create, import, and edit geospatial data on disk or in-memory• Change QGIS settings programmatically to control default behavior • Automatically generate PDF map books • Build dynamic forms for field inputIn DetailQGIS is a desktop geographic information system that facilitates data viewing, editing, and analysis. Paired with the most efficient scripting language—Python, we can write effective scripts that extend the core functionality of QGIS. Based on version QGIS 2.18, this book will teach you how to write Python code that works with spatial data to automate geoprocessing tasks in QGIS. It will cover topics such as querying and editing vector data and using raster data. You will also learn to create, edit, and optimize a vector layer for faster queries, reproject a vector layer, reduce the number of vertices in a vector layer without losing critical data, and convert a raster to a vector. Following this, you will work through recipes that will help you compose static maps, create heavily customized maps, and add specialized labels and annotations. As well as this, we'll also share a few tips and tricks based on different aspects of QGIS.Style and approachThis book follows a recipe-based problem-solution approach to address and dispel challenges faced when implementing and using QGIS on a regular basis.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is QGIS Python Programming Cookbook - Second Edition an online PDF/ePUB?
Yes, you can access QGIS Python Programming Cookbook - Second Edition by Joel Lawhead in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Python. We have over one million books available in our catalogue for you to explore.

Information

Year
2017
ISBN
9781787121102
Edition
2

QGIS Python Programming Cookbook - Second Edition


QGIS Python Programming Cookbook - Second Edition

Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2015
Second edition: March 2017
Production reference: 1030317
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78712-483-7
www.packtpub.com

Credits

Author
Joel Lawhead
Copy Editor
Muktikant Garimella
Reviewer
Joshua Arnott
Project Coordinator
Sheejal Shah
Commissioning Editor
Kunal Parikh
Proofreader
Safis Editing
Acquisition Editor
Chaitanya Nair
Indexer
Francy Puthiry
C ontent De velopment Editor
Vikas Tiwari
Graphics
Abhinash Sahu
Technical Editor
Subhalaxmi Nadar
Production Coordinator
Deepika Naik

About the Author

Joel Lawhead is a PMI-certified Project Management Professional (PMP), a certified Geographic Information Systems Professional, and the Chief Information Officer (CIO) for http://www.nvisionsolutions.com/, an award-winning firm specializing in geospatial technology integration and harsh-environment engineering. Joel builds geospatial systems for US government agencies, including NASA, NOAA, the US Department of Homeland Security, and the military. He also works with private organizations, including the National Oceans and Applications Research Center (NOARC) and The Ocean Cleanup. He has authored other books with Packt Publishing, including Learning Geospatial Analysis with Python, QGIS Python Programming Cookbook, and Learning Geospatial Analysis with Python, Second Edition. His cookbook recipes have been featured in two editions of the O’Reilly Python Cookbook. Joel began using Python in 1997 and combined it with geospatial software development in 2000. He is also the developer of the widely used open source Python Shapefile Library (PyShp) and maintains the geospatial technical blog, http://geospatialpython.com/, and Twitter feed, @SpatialPython, discussing the use of Python within the geospatial industry. In 2011, Joel reverse-engineered and published the undocumented shapefile spatial indexing format and assisted fellow geospatial Python developer, Marc Pfister, in reversing the compression algorithm, allowing developers around the world to create better integrated and more robust geospatial applications involving shapefiles. In 2002, Joel received the international Esri Special Achievement in GIS award for his work on the Real-Time Emergency Action Coordination Tool (REACT) for emergency management using geospatial analysis.
This book would not be possible without the support of my beautiful family, including my wife, Julie, and four children, Lauren, Will, Lillie, and Lainie, who inspire everything I do. I would also like to acknowledge my employers and coworkers at http://www.nvisionsolutions.com/, a bright, dynamic team of people dedicated to working together at the exciting bleeding-edge of geospatial technology. And finally, thank you to the excellent reviewers for this and my other books, especially Joshua Arnott, who patiently and faithfully burned clumsy sentences to the ground so that a more technically-correct phoenix could rise up the ranks of the Amazon category Top 100 list.

About the Reviewer

Joshua Arnott is an environmental scientist with over five years of experience working in water management consultancy. His expertise lies in environmental modeling, with a focus on hydrology, water resources, and geoinformatics. He has contributed to several GIS-related open source projects, including QGIS and Shapely. He maintains a blog about programming and GIS at https://snorfalorpagus.net/, and he likes cats just as much as everyone else on the Internet.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
www.PacktPub.com
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Why subscribe?

  • Fully searchable across every book published by Packt
  • Copy and paste, print, and bookmark content
  • On demand and accessible via a web browser

Customer Feedback

Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest re...

Table of contents