My Account Log in

3 options

QGIS Python programming cookbook : master over 170 recipes that will help you turn QGIS from a desktop GIS tool into a powerful automated geospatial framework / Joel Lawhead.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Lawhead, Joel, author.
Language:
English
Subjects (All):
Python (Computer program language).
Physical Description:
1 online resource (458 pages) : illustrations (some color)
Edition:
Second edition.
Other Title:
Quantum geographic information systems Python programming cookbook
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt, 2017.
System Details:
Mode of access: World Wide Web.
text file
Biography/History:
Lawhead Joel: Joel Lawhead is a PMI-certified Project Management Professional (PMP), a certified GIS Professional (GISP), and vice president of NVision Solutions, Inc. , an award-winning firm specializing in geospatial technology integration and sensor engineering for NASA, FEMA, NOAA, the US Navy, and many other commercial and non-profit organizations. Joel began using Python in 1997 and started combining it with geospatial software development in 2000. He has authored multiple editions of Learning Geospatial Analysis with Python and QGIS Python Programming Cookbook, both from Packt. He is also the developer of the open source Python Shapefile Library (PyShp) and maintains a geospatial technical blog.
Summary:
Master over 170 recipes that will help you turn QGIS from a desktop GIS tool into a powerful automated geospatial framework About 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 recipes Who This Book Is For This 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 input In Detail QGIS 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 approach This book follows a recipe-based problem-solution approach to address and dispel challenges faced when implementing and using QGIS on a regular basis.
Contents:
Cover
Copyright
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Table of Contents
Preface
Chapter 1: Automating QGIS
Introduction
Installing QGIS 2.18 for development
Getting ready
How to do it...
Installing PyQGIS using the Debian package manager
Installing PyQGIS using the RPM package manager
Setting the environment variables
Setting the environment variables on Windows
Setting environment variables on Linux
How it works...
There's more...
Finding the PyQGIS path on Windows
Finding the location of the QGIS Python installation on other platforms
Using the QGIS Python console for interactive control
Automatically starting the Python console
Using the Python's Script Runner plugin
Setting up your QGIS IDE
Adding the Python interpreter to Windows
Adding the PyQGIS module paths to the interpreter
Adding the PyQGIS API to the IDE
Adding environment variables
Debugging QGIS Python scripts
Configuring QGIS
Configuring Eclipse
Testing the debugger
Navigating the PyQGIS API
Creating a traditional QGIS plugin
Creating a Processing Toolbox plugin
Distributing a plugin
Building a standalone application
There's more.
Storing and reading global preferences
Storing and reading project preferences
Accessing the script path from within your script
Chapter 2: Querying Vector Data
Loading a vector layer from a file sample
Loading a vector layer from a geodatabase
Examining vector layer features
Examining vector layer attributes
Filtering a layer by geometry
Filtering a layer by attributes
Buffering a feature
Measuring the distance between two points
Measuring distance along a line
Calculating the area of a polygon
Creating a spatial index
Calculating the bearing of a line
Loading data from a spreadsheet
Accessing layer metadata
Chapter 3: Editing Vector Data
Creating a vector layer in memory
How it works.
Adding a point feature to a vector layer
Adding a line feature to a vector layer
Adding a polygon feature to a vector layer
Adding a set of attributes to a vector layer
Getting ready...
Adding a field to a vector layer
Joining a shapefile attribute table to a CSV file
Changing vector layer geometry
Changing a vector layer feature's attribute
Removing data from a vector layer
How to do it....
Deleting a vector layer feature's attribute
Reprojecting a vector layer
Converting a shapefile to KML or GeoJSON
Merging shapefiles
Splitting a shapefile
Generalizing a vector layer
Dissolving vector features
Performing a union on vector shapes
Rasterizing a vector layer
Exporting a layer to the GeoPackage format
Chapter 4: Using Raster Data
Loading a raster layer
Loading a NetCDF file
Getting the cell size of a raster layer
Obtaining the width and height of a raster
Counting raster bands
Swapping raster bands
Querying the value of a raster at a specified point
Reprojecting a raster
Creating an elevation hillshade
Creating vector contours from elevation data
Sampling a raster dataset using a regular grid
Adding elevation data to a line vertices using a digital elevation model
Creating a common extent for rasters
Resampling raster resolution
Counting the unique values in a raster
Mosaicing rasters
Converting a TIFF image to a JPEG image
Creating pyramids for a raster
Converting a pixel location to a map coordinate.
Getting ready
Converting a map coordinate to a pixel location
Creating a KML image overlay for a raster
Classifying a raster
Converting a raster to a vector
Georeferencing a raster from control points
Clipping a raster using a shapefile
Chapter 5: Creating Dynamic Maps
Accessing the map canvas
Changing the map units
Iterating over layers
Symbolizing a vector layer
Setting a transparent layer fill
Using a filled marker symbol
Rendering a single band raster using a color ramp algorithm
Setting a feature's color using a column in a CSV file
Creating a complex vector layer symbol
Using icons as vector layer symbols
Using an outline for font markers
Using arrow symbols
Creating a graduated vector layer symbol renderer
Creating a categorized vector layer symbol.
Notes:
Includes index.
Includes bibliographical references and index.
Description based on online resource; title from PDF title page (ebrary, viewed March 27, 2017).
ISBN:
9781787121102
1787121100
OCLC:
983204812

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account