QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsOverlayAnalyzer Class Reference

The QGis class provides vector overlay analysis functions. More...

#include <qgsoverlayanalyzer.h>

Public Member Functions

bool intersection (QgsVectorLayer *layerA, QgsVectorLayer *layerB, const QString &shapefileName, bool onlySelectedFeatures=false, QProgressDialog *p=nullptr)
 Perform an intersection on two input vector layers and write output to a new shape file. More...
 

Detailed Description

The QGis class provides vector overlay analysis functions.

Definition at line 36 of file qgsoverlayanalyzer.h.

Member Function Documentation

◆ intersection()

bool QgsOverlayAnalyzer::intersection ( QgsVectorLayer layerA,
QgsVectorLayer layerB,
const QString shapefileName,
bool  onlySelectedFeatures = false,
QProgressDialog p = nullptr 
)

Perform an intersection on two input vector layers and write output to a new shape file.

Parameters
layerAinput vector layer
layerBinput vector layer
shapefileNamepath to the output shp
onlySelectedFeaturesif true, only selected features are considered, else all the features
pprogress dialog (or 0 if no progress dialog is to be shown)

Definition at line 30 of file qgsoverlayanalyzer.cpp.


The documentation for this class was generated from the following files: