Book Image

QGIS Python Programming Cookbook

Book Image

QGIS Python Programming Cookbook

Overview of this book

Table of Contents (16 chapters)
QGIS Python Programming Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 2. Querying Vector Data

In this chapter, we will cover the following recipes:

  • Loading a vector layer from a file

  • 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 the distance along a line

  • Calculating the area of a polygon

  • Creating a spatial index

  • Calculating the bearing of a line