Building Mapping Applications with QGIS by Erik Westra

By Erik Westra

Create your personal refined purposes to investigate and demonstrate geospatial info utilizing QGIS and Python

About This Book

  • Make use of the geospatial features 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 e-book Is For

If you're an skilled Python developer who desires to create your personal geospatial purposes with minimal fuss, this is often the publication for you. whereas a few familiarity with mapping purposes will be a bonus, no earlier wisdom of geospatial recommendations is needed. whether you've got by no means used QGIS earlier than, this booklet will speedy get you as much as speed.

What you are going to Learn

  • Use the Python Console to discover and keep watch over QGIS
  • Perform geospatial improvement projects utilizing the PyQGIS Python library
  • Create priceless geospatial functions applied as QGIS Python plugins
  • Use QGIS as a standalone geoprocessing library inside your Python programs
  • Build complicated interactive map-based GUIs inside your personal Python programs
  • Understand how Python scripting can be utilized to customise the QGIS system
  • Utilize the genuine strength of Python and QGIS to create your individual whole mapping applications

In Detail

QGIS is without doubt one of the preferable open resource Geographical info platforms. whereas constructing Python geospatial functions will be not easy, QGIS simplifies the method through combining the mandatory geoprocessing libraries with a cosmopolitan consumer interface, all of which might be 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 train you the way to jot down Python code that uses the geospatial features of QGIS. development in this, you are going to finally create your individual refined standalone mapping purposes equipped on most sensible of QGIS. you'll find out how to use the Python Console as a window into the QGIS programming surroundings, after which use that surroundings to create your personal Python scripts and plugins to customise QGIS. As your wisdom of the PyQGIS library grows, you'll use it to accomplish quite a few real-world geospatial programming initiatives, culminating within the construction of your individual complicated standalone purposes to load, study, and demonstrate geospatial data.

Show description

Read Online or Download Building Mapping Applications with QGIS PDF

Best python books

Beginning Python: From Novice to Professional (2nd Edition)

Achieve a basic realizing of Python's syntax and lines with the second one version of starting Python, an up–to–date creation and useful reference. protecting a wide range of Python–related programming themes, together with addressing language internals, database integration, community programming, and net providers, you'll be guided via sound improvement rules.

Bioinformatics Programming Using Python: Practical Programming for Biological Data

Powerful, versatile, and simple to take advantage of, Python is a perfect language for construction software program instruments and functions for all times technology study and improvement. This special ebook exhibits you the way to application with Python, utilizing code examples taken at once from bioinformatics. very quickly, you'll be utilizing refined strategies and Python modules which are quite potent for bioinformatics programming.

Bioinformatics Programming utilizing Python is ideal for a person concerned with bioinformatics -- researchers, help employees, scholars, and software program builders drawn to writing bioinformatics purposes. You'll locate it important even if you already use Python, write code in one other language, or haven't any programming event in any respect. It's an exceptional self-instruction software, in addition to a convenient reference while dealing with the demanding situations of real-life programming tasks.
* get to grips with Python's basics, together with how one can enhance easy purposes
* the way to use Python modules for trend matching, based textual content processing, on-line information retrieval, and database entry
* detect generalized styles that hide a wide share of the way Python code is utilized in bioinformatics
* the right way to follow the rules and methods of object-oriented programming
* enjoy the "tips and traps" part in every one bankruptcy

Programming in Python 3: A Complete Introduction to the Python Language (2nd Edition)

A absolutely Revised version that includes New fabric on Coroutines, Debugging, trying out, Parsing, String Formatting, and extra


Python three is the simplest model of the language but: it's extra strong, handy, constant, and expressive than ever ahead of. Now, major Python programmer Mark Summerfield demonstrates the best way to write code that takes complete good thing about Python 3's good points and idioms. Programming in Python three, moment variation, brings jointly all of the wisdom you must write any application, use any ordinary or third-party Python three library, and create new library modules of your own.


Summerfield attracts on his decades of Python event to proportion deep insights into Python three improvement you won't locate wherever else. He starts via illuminating Python's "beautiful heart": the 8 key components of Python you want to write strong, high-performance courses. development on those middle components, he introduces new issues designed to bolster your functional expertise-one inspiration and hands-on instance at a time. assurance contains
* constructing in Python utilizing procedural, objectoriented, and useful programming paradigms
* growing customized applications and modules
* Writing and examining binary, textual content, and XML documents, together with non-compulsory compression, random entry, and textual content and XML parsing
* Leveraging complex info kinds, collections, keep an eye on buildings, and services
* Spreading application workloads throughout a number of methods and threads
* Programming SQL databases and key--value DBM documents
* Debugging techniques-and utilizing try pushed improvement to prevent insects within the first position
* using Python's average expression mini-language and module
* Parsing thoughts, together with find out how to use the third-party PyParsing and PLY modules
* development usable, effective, GUI-based functions
* complicated programming thoughts, together with turbines, functionality and sophistication decorators, context managers, descriptors, summary base sessions, metaclasses, coroutines, and extra


Programming in Python three, moment variation, serves as either instructional and language reference. It assumes a few earlier programming adventure, and is observed through broad downloadable instance code-all of it validated with Python three on home windows, Linux, and Mac OS X. This variation covers Python three. zero and three. 1, and thanks to the Python language moratorium it's also legitimate for Python three. 2 which has an analogous language as Python three. 1.

Extra info for Building Mapping Applications with QGIS

Example text

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. This command is available in the console's pop-up menu, or it can be accessed by pressing Ctrl + E (command + E if you are running Mac OS X).

We will also use the console as a looking-glass to examine the world of QGIS programming. In particular, we will learn the following: • Explore the ways in which the console can be used to develop and execute Python code • Learn how to write Python scripts using the console's built-in source code editor • Discover various tips and techniques to work with the QGIS Console • Figure out how to manipulate the current project within QGIS using Python commands • Access geospatial data and perform geospatial calculations using the console • Use various QGIS user-interface elements within our Python programs Using the console While you briefly used the QGIS Console in the previous chapter, it is worth examining the QGIS Console window in more detail, so that you are aware of the various features that are available.

However, let's use what we've learned to build a simple program that calculates and displays information about the contents of a shapefile. Shapefiles hold geospatial features such as polygons, lines and points, and each feature can have any number of attributes associated with it. We'll write a program that opens and scans through a shapefile, identifying the features and calculating the length of each line feature and the area of each polygon feature. We'll also calculate the total length and area across all the features.

Download PDF sample

Rated 4.78 of 5 – based on 11 votes