~ubuntu-branches/ubuntu/trusty/qgis/trusty

« back to all changes in this revision

Viewing changes to python/analysis/qgsoverlayanalyzer.sip

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** polyline is just a list of points */
 
2
typedef QMap<int, QgsField> QgsFieldMap;
 
3
 
 
4
/** \ingroup analysis
 
5
 * The QGis class provides vector geometry analysis functions
 
6
 */
 
7
 
 
8
class QgsOverlayAnalyzer
 
9
{
 
10
%TypeHeaderCode
 
11
#include <qgsoverlayanalyzer.h>
 
12
%End
 
13
 
 
14
  public:
 
15
 
 
16
    /**Perform an intersection on two input vector layers and write output to a new shape file
 
17
    */
 
18
    bool intersection( QgsVectorLayer* layerA, QgsVectorLayer* layerB,
 
19
                       const QString& shapefileName, bool onlySelectedFeatures = false,
 
20
                       QProgressDialog* p = 0 );
 
21
 
 
22
  private:
 
23
    void combineFieldLists( QgsFieldMap fieldListA, QgsFieldMap fieldListB );
 
24
    void intersectFeature( QgsFeature& f, QgsVectorFileWriter* vfw, QgsVectorLayer* dp,
 
25
                           QgsSpatialIndex* index );
 
26
};