QgsOverlayAnalyzer Class Reference
[QGIS analysis library.]

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

#include <qgsoverlayanalyzer.h>

List of all members.

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.

Private Member Functions

void combineFieldLists (QgsFieldMap &fieldListA, QgsFieldMap fieldListB)
void intersectFeature (QgsFeature &f, QgsVectorFileWriter *vfw, QgsVectorLayer *dp, QgsSpatialIndex *index)
void combineAttributeMaps (QgsAttributeMap &attributeMapA, QgsAttributeMap attributeMapB)


Detailed Description

The QGis class provides vector overlay analysis functions.

Definition at line 38 of file qgsoverlayanalyzer.h.


Member Function Documentation

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:
layerA input vector layer
layerB input vector layer
shapefileName path to the output shp
onlySelectedFeatures if true, only selected features are considered, else all the features
p progress dialog (or 0 if no progress dialog is to be shown)
Note:
: added in version 1.4

Definition at line 31 of file qgsoverlayanalyzer.cpp.

References combineFieldLists(), QgsVectorLayer::dataProvider(), QgsVectorDataProvider::encoding(), QgsVectorLayer::featureAtId(), QgsVectorLayer::featureCount(), QgsVectorDataProvider::fields(), QgsVectorDataProvider::geometryType(), intersectFeature(), QgsVectorLayer::nextFeature(), QgsVectorLayer::pendingAllAttributesList(), QgsVectorLayer::select(), QgsVectorLayer::selectedFeaturesIds(), and QgsMapLayer::srs().

void QgsOverlayAnalyzer::combineFieldLists ( QgsFieldMap fieldListA,
QgsFieldMap  fieldListB 
) [private]

Definition at line 184 of file qgsoverlayanalyzer.cpp.

References QgsField::name(), and QgsField::type().

Referenced by intersection().

void QgsOverlayAnalyzer::intersectFeature ( QgsFeature f,
QgsVectorFileWriter vfw,
QgsVectorLayer dp,
QgsSpatialIndex *  index 
) [private]

void QgsOverlayAnalyzer::combineAttributeMaps ( QgsAttributeMap attributeMapA,
QgsAttributeMap  attributeMapB 
) [private]

Definition at line 214 of file qgsoverlayanalyzer.cpp.

Referenced by intersectFeature().


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

Generated on Sat Feb 4 19:17:42 2012 for Quantum GIS API Documentation by  doxygen 1.5.6