Quantum GIS API Documentation  1.8
Public Member Functions | Private Member Functions
QgsOverlayAnalyzer Class Reference

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 37 of file qgsoverlayanalyzer.h.

Member Function Documentation

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

Definition at line 213 of file qgsoverlayanalyzer.cpp.

Referenced by intersectFeature().

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

Definition at line 183 of file qgsoverlayanalyzer.cpp.

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

Referenced by intersection().

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.

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

Definition at line 30 of file qgsoverlayanalyzer.cpp.

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

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines