Skip to content

Commit

Permalink
oops, forgot the sip file :-p: Python bindings for QgsOverlayAnalyzer…
Browse files Browse the repository at this point in the history
… (current only supports intersections)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12042 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
cfarmer committed Nov 8, 2009
1 parent 16a2cf3 commit 77feb05
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions python/analysis/qgsoverlayanalyzer.sip
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/** polyline is just a list of points */
typedef QMap<int, QgsField> QgsFieldMap;

/** \ingroup analysis
* The QGis class provides vector geometry analysis functions
*/

class QgsOverlayAnalyzer
{
%TypeHeaderCode
#include <qgsoverlayanalyzer.h>
%End

public:

/**Perform an intersection on two input vector layers and write output to a new shape file
*/
bool intersection( QgsVectorLayer* layerA, QgsVectorLayer* layerB,
const QString& shapefileName, bool onlySelectedFeatures = false,
QProgressDialog* p = 0 );

private:
void combineFieldLists( QgsFieldMap fieldListA, QgsFieldMap fieldListB );
void intersectFeature( QgsFeature& f, QgsVectorFileWriter* vfw, QgsVectorLayer* dp,
QgsSpatialIndex* index );
};

0 comments on commit 77feb05

Please sign in to comment.