Book Image

Building Mapping Applications with QGIS

By : Erik Westra
Book Image

Building Mapping Applications with QGIS

By: Erik Westra

Overview of this book

Table of Contents (16 chapters)
Building Mapping Applications with QGIS
About the Author
About the Reviewers
Free Chapter
Getting Started with QGIS


In this chapter, we explored the QGIS Python Console, and how to use it for a variety of programming tasks. We also used the console to delve more deeply into the QGIS Python programming environment.

As we worked through this chapter, we learned what the various toolbar buttons and controls do within the QGIS Console, and how to enter commands using the Python Shell. We looked at how we can use the Python Interpreter Log to view the previous output and re-enter commands you executed earlier. We saw the ways in which you can use autocompletion to enter your Python code more quickly, and also learned about the parameters that the various PyQGIS functions and methods accept.

We then looked at how to enter and execute Python scripts using the built-in source code editor. We discovered that the Python Console is itself written in Python, allowing you to explore the source code and manipulate the console itself using the Python code.

We learned how to create a startup script that is run automatically...