Skip to content

Commit 77feb05

Browse files
author
cfarmer
committed
oops, forgot the sip file :-p: Python bindings for QgsOverlayAnalyzer (current only supports intersections)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12042 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 16a2cf3 commit 77feb05

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
};

0 commit comments

Comments
 (0)