What problem does it solve?
PyQGIS enables developers and analysts to automate repetitive GIS tasks, perform spatial analysis at scale, and render or export maps programmatically without relying on manual QGIS desktop interaction.
Core Features & Use Cases
- Programmatic layer I/O and project management for Shapefile, GeoPackage, PostGIS, GeoJSON and other providers.
- Geometry creation and spatial operations (buffer, intersection, union, distance, centroid) and efficient spatial queries with spatial indexes.
- Coordinate reference system management and reliable coordinate transformations for reprojection workflows.
- Integration with the Processing framework to run algorithms (native and GDAL) for batch analysis and raster/vector workflows.
- Map rendering and export to image or PDF for automated map production and report generation.
- Use case: run a headless Python script to load many input files, reproject and buffer features, run dissolve and export results to a GeoPackage for downstream analysis.
Quick Start
Initialize a standalone PyQGIS application in a Python script, load your vector layer, run a processing algorithm such as native:buffer, and save the result to an output file.