QGIS API Documentation  2.3.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private 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=0)
 Perform an intersection on two input vector layers and write output to a new shape file. More...
 

Private Member Functions

void combineFieldLists (QgsFields &fieldListA, const QgsFields &fieldListB)
 
void intersectFeature (QgsFeature &f, QgsVectorFileWriter *vfw, QgsVectorLayer *dp, QgsSpatialIndex *index)
 
void combineAttributeMaps (QgsAttributes &attributesA, const QgsAttributes &attributesB)
 

Detailed Description

The QGis class provides vector overlay analysis functions.

Definition at line 37 of file qgsoverlayanalyzer.h.

Member Function Documentation

void QgsOverlayAnalyzer::combineAttributeMaps ( QgsAttributes attributesA,
const QgsAttributes attributesB 
)
private

Definition at line 205 of file qgsoverlayanalyzer.cpp.

Referenced by intersectFeature().

void QgsOverlayAnalyzer::combineFieldLists ( QgsFields fieldListA,
const QgsFields fieldListB 
)
private
void QgsOverlayAnalyzer::intersectFeature ( QgsFeature f,
QgsVectorFileWriter vfw,
QgsVectorLayer dp,
QgsSpatialIndex index 
)
private
bool QgsOverlayAnalyzer::intersection ( QgsVectorLayer layerA,
QgsVectorLayer layerB,
const QString &  shapefileName,
bool  onlySelectedFeatures = false,
QProgressDialog *  p = 0 
)

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)
Note
: added in version 1.4

Definition at line 30 of file qgsoverlayanalyzer.cpp.

References combineFieldLists(), QgsMapLayer::crs(), QgsVectorLayer::dataProvider(), QgsVectorDataProvider::encoding(), QgsVectorLayer::featureCount(), QgsVectorDataProvider::geometryType(), QgsVectorLayer::getFeatures(), index, QgsSpatialIndex::insertFeature(), intersectFeature(), QgsFeatureIterator::nextFeature(), QgsVectorLayer::pendingFields(), and QgsVectorLayer::selectedFeaturesIds().


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