By Erik Westra

Create your personal refined functions to investigate and reveal geospatial details utilizing QGIS and Python

About This Book

  • Make use of the geospatial services of QGIS inside your Python programs
  • Build whole standalone mapping purposes in response to QGIS and Python
  • Use QGIS as a Python geospatial improvement environment

Who This ebook Is For

If you're an skilled Python developer who desires to create your individual geospatial purposes with minimal fuss, this can be the e-book for you. whereas a few familiarity with mapping functions will be a bonus, no earlier wisdom of geospatial techniques is needed. whether you have by no means used QGIS earlier than, this ebook will fast get you as much as speed.

What you are going to Learn

  • Use the Python Console to discover and keep an eye on QGIS
  • Perform geospatial improvement projects utilizing the PyQGIS Python library
  • Create worthwhile geospatial purposes carried out as QGIS Python plugins
  • Use QGIS as a standalone geoprocessing library inside your Python programs
  • Build advanced interactive map-based GUIs inside of your personal Python programs
  • Understand how Python scripting can be utilized to customise the QGIS system
  • Utilize the real capability of Python and QGIS to create your personal entire mapping applications

In Detail

QGIS is likely one of the finest open resource Geographical details platforms. whereas constructing Python geospatial purposes may be tough, QGIS simplifies the method through combining the mandatory geoprocessing libraries with a cosmopolitan person interface, all of which are without delay managed utilizing Python code.

Starting with an advent to QGIS and the way to take advantage of the integrated QGIS Python Console, we'll educate you the way to write down Python code that uses the geospatial services of QGIS. construction in this, you are going to finally easy methods to create your personal subtle standalone mapping purposes outfitted on most sensible of QGIS. you'll easy methods to use the Python Console as a window into the QGIS programming atmosphere, after which use that atmosphere to create your personal Python scripts and plugins to customise QGIS. As your wisdom of the PyQGIS library grows, you are going to use it to accomplish a number of real-world geospatial programming projects, culminating within the production of your personal advanced standalone functions to load, examine, and demonstrate geospatial data.

Show description

Read Online or Download Building Mapping Applications with QGIS PDF

Best python books

Learning BeagleBone Python Programming

BeagleBone is a barebone laptop that may be configured and customised for various functions and is sort of part the cost of a customary computing device. This booklet will conceal the fundamentals of the way BeagleBone Black's interface subsystems paintings, and will be managed utilizing well known Python libraries for BeagleBone Black.

Instant OpenCV Starter

Start with OpenCV utilizing sensible, hands-on tasks with this publication and booklet evaluate research whatever new right away! a quick, quick, centred advisor providing fast effects step-by-step set up of OpenCV in home windows and Linux Examples and code in response to real-life implementation of OpenCV to assist the reader comprehend the significance of this expertise Codes and algorithms with specified reasons intimately within the electronic age of photograph and video sharing, the necessity for computing device imaginative and prescient is at an all time excessive.

Data Analysis with Open Source Tools: A hands-on guide for programmers and data scientists

Gathering facts is comparatively effortless, yet turning uncooked details into whatever precious calls for that you simply know the way to extract accurately what you would like. With this insightful ebook, intermediate to skilled programmers attracted to info research will examine ideas for operating with facts in a company atmosphere.

Data Structures and Algorithms Using Python and C++

THIS e-book is meant to be used in a conventional college-level information constructions direction (commonly referred to as CS2). This publication assumes that scholars have discovered the elemental syntax of Python and been uncovered to using current periods. most standard CS1 classes that use Python may have lined all of the important issues, and a few could have coated many of the subject matters lined during this e-book.

Additional info for Building Mapping Applications with QGIS

Sample text

As mentioned earlier, we have to tell PyQGIS where to find the various QGIS resources. environ['QGIS_PREFIX'], True) This uses the QGIS_PREFIX environment variable we set earlier to tell QGIS where to find its resources. initQgis() [ 22 ] Chapter 1 We can now use PyQGIS to do whatever we want in our application. initQgis() # ... exitQgis() Of course, this application doesn't do anything useful yet—it simply starts up and shuts down the PyQGIS libraries. " line with some useful code that displays a basic map widget.

InitQgis() # ... exitQgis() Of course, this application doesn't do anything useful yet—it simply starts up and shuts down the PyQGIS libraries. " line with some useful code that displays a basic map widget. To do this, we need to define a QMainWindow subclass, which displays the map widget, and then create and use a QApplication object to display this window and handle the various user-interface events while the application is running. Both QMainWindow and QApplication are PyQt classes. We will be working extensively with the various PyQt classes as we develop our own external applications using QGIS and Python.

The Python Shell has been designed to make it easier to work with Python interactively. The following features are currently supported: • Pressing the up and down arrow keys will move through the command history, making it easy to re-enter the Python commands you typed earlier. • You can display a list of previously-entered commands by pressing Ctrl + Shift + Space (command + Shift + Space on Mac). • If you select some text in the Interpreter Log, you can use the Enter Selected command to move that text to the shell and execute it.

Download PDF sample

Rated 4.67 of 5 – based on 21 votes