QGIS Python Programming Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

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
  • Changing vector layer geometry
  • Changing a vector layer feature's attribute
  • Removing data from a vector layer
  • Deleting vector layer feature's attributes
  • Reprojecting a vector layer
  • Converting a shapefile to KML or GeoJSON
  • Merging shapefiles
  • Splitting a shapefile
  • Generalizing a vector layer
  • Dissolving vector features
  • Performing a union on vector shapes
  • Rasterizing a vector layer
  • Exporting a layer to the GeoPackage format