QGIS Python Programming Cookbook
eBook - ePub

QGIS Python Programming Cookbook

Joel Lawhead

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

QGIS Python Programming Cookbook

Joel Lawhead

Book details
Book preview
Table of contents
Citations

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 an online PDF/ePUB?
Yes, you can access QGIS Python Programming Cookbook by Joel Lawhead in PDF and/or ePUB format, as well as other popular books in Ciencia de la computación & Aplicaciones de escritorio. We have over one million books available in our catalogue for you to explore.

Information

QGIS Python Programming Cookbook


Table of Contents

QGIS Python Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Automating QGIS
Introduction
Installing QGIS 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 the 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
How to do it…
How it works…
Using the Python ScriptRunner plugin
Getting ready
How to do it…
How it works…
Setting up your QGIS IDE
Getting ready
How to do it…
Adding the QGIS Python interpreter on Windows
Adding the PyQGIS module paths to the interpreter
Adding the PyQGIS API to the IDE
Adding environment variables
How it works…
Debugging QGIS Python scripts
How to do it…
Configuring QGIS
Configuring Eclipse
Testing the debugger
How it works…
Navigating the PyQGIS API
Getting ready
How to do it…
How it works…
There's more…
Creating a QGIS plugin
Getting ready
How to do it…
How it works…
There's more…
Distributing a plugin
Getting ready
How to do it…
How it works…
Creating a standalone application
Getting ready
How to do it…
How it works…
There's more...
Storing and reading global preferences
Getting ready
How to do it…
How it works…
There's more…
Storing and reading project preferences
Getting ready
How to do it…
How it works…
There's more…
Accessing the script path from within your script
Getting ready
How to do it…
How it works…
There's more…
2. Querying Vector Data
Introduction
Loading a vector layer from a file sample
Getting ready
How to do it...
How it works...
Loading a vector layer from a spatial database
Getting ready
How to do it...
How it works...
Examining vector layer features
Getting ready
How to do it...
How it works...
Examining vector layer attributes
Getting ready
How to do it...
How it works...
There's more...
Filtering a layer by geometry
Getting ready
How to do it...
How it works...
Filtering a layer by attributes
Getting ready
How to do it...
How it works...
Buffering a feature intermediate
Getting ready
How to do it...
How it works...
Measuring the distance between two points
Getting ready
How to do it...
How it works...
Measuring the distance along a line sample
Getting ready
How to do it...
How it works...
Calculating the area of a polygon
Getting ready
How to do it...
How it works...
Creating a spatial index
Getting ready
How to do it...
How it works...
Calculating the bearing of a line
Getting ready
How to do it...
How it works...
Loading data from a spreadsheet
Getting ready
How to do it...
How it works...
There's more...
3. Editing Vector Data
Introduction
Creating a vector layer in memory
Getting ready
How to do it...
How it works...
There's more…
Adding a point feature to a vector layer
Getting ready
How to do it...
How it works...
Adding a line feature to a vector layer
Getting ready
How to do it...
How it works...
Adding a polygon feature to a vector layer
Getting ready
How to do it...
How it works...
Adding a set of attributes to a vector layer
Getting ready
How to do it...
How it works...
Adding a field to a vector layer
Getting ready
How to do it...
How it works...
Joining a shapefile attribute table to a CSV file
Getting ready
How to do it...
How it works...
There's more...

Table of contents