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 3. Editing Vector Data

In this chapter, we will cover the following recipes:

  • Creating a vector layer in memory

  • Adding a point feature to a vector layer

  • Adding a line feature to a vector layer

  • Adding a polygon feature to a vector layer

  • Adding a set of attributes to a vector layer

  • Adding a field to a vector layer

  • Joining a shapefile attribute table to a CSV file

  • Moving vector layer geometry

  • Changing a vector layer attribute

  • Deleting vector layer geometry

  • Deleting a vector layer field

  • Deleting vector layer attributes

  • Reprojecting a vector layer

  • Converting a shapefile to Keyhole Markup Language (KML)

  • Merging shapefiles

  • Splitting a shapefile

  • Generalizing a vector layer

  • Dissolving vector shapes

  • Performing a union on vector shapes

  • Rasterizing a vector layer