-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sipify qgsoverlayanalyzer and qgsnewmemorylayer
- Loading branch information
Showing
4 changed files
with
89 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,46 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/vector/qgsoverlayanalyzer.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
/** \ingroup analysis | ||
* The Qgis class provides vector overlay analysis functions | ||
*/ | ||
|
||
class QgsOverlayAnalyzer | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsoverlayanalyzer.h> | ||
%Docstring | ||
The QGis class provides vector overlay analysis functions | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsoverlayanalyzer.h" | ||
%End | ||
public: | ||
|
||
/** Perform an intersection on two input vector layers and write output to a new shape file | ||
@param layerA input vector layer | ||
@param layerB input vector layer | ||
@param shapefileName path to the output shp | ||
@param onlySelectedFeatures if true, only selected features are considered, else all the features | ||
@param p progress dialog (or 0 if no progress dialog is to be shown) | ||
*/ | ||
bool intersection( QgsVectorLayer* layerA, QgsVectorLayer* layerB, | ||
const QString& shapefileName, bool onlySelectedFeatures = false, | ||
QProgressDialog* p = 0 ); | ||
bool intersection( QgsVectorLayer *layerA, QgsVectorLayer *layerB, | ||
const QString &shapefileName, bool onlySelectedFeatures = false, | ||
QProgressDialog *p = 0 ); | ||
%Docstring | ||
Perform an intersection on two input vector layers and write output to a new shape file | ||
\param layerA input vector layer | ||
\param layerB input vector layer | ||
\param shapefileName path to the output shp | ||
\param onlySelectedFeatures if true, only selected features are considered, else all the features | ||
\param p progress dialog (or 0 if no progress dialog is to be shown) | ||
:rtype: bool | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/analysis/vector/qgsoverlayanalyzer.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,66 @@ | ||
class QgsNewMemoryLayerDialog : QDialog | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsnewmemorylayerdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsNewMemoryLayerDialog: QDialog | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include <qgsnewmemorylayerdialog.h> | ||
#include "qgsnewmemorylayerdialog.h" | ||
%End | ||
|
||
public: | ||
|
||
/** Runs the dialoag and creates a new memory layer | ||
* @param parent parent widget | ||
* @returns new memory layer | ||
*/ | ||
static QgsVectorLayer* runAndCreateLayer( QWidget* parent = 0 ); | ||
static QgsVectorLayer *runAndCreateLayer( QWidget *parent = 0, const QgsCoordinateReferenceSystem &defaultCrs = QgsCoordinateReferenceSystem() ); | ||
%Docstring | ||
Runs the dialog and creates a new memory layer | ||
\param parent parent widget | ||
\param defaultCrs default layer CRS to show in dialog | ||
:return: new memory layer | ||
:rtype: QgsVectorLayer | ||
%End | ||
|
||
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags& fl = QgisGui::ModalDialogFlags ); | ||
QgsNewMemoryLayerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags ); | ||
~QgsNewMemoryLayerDialog(); | ||
|
||
/** Returns the selected geometry type*/ | ||
QgsWkbTypes::Type selectedType() const; | ||
%Docstring | ||
Returns the selected geometry type | ||
:rtype: QgsWkbTypes.Type | ||
%End | ||
|
||
void setCrs( const QgsCoordinateReferenceSystem &crs ); | ||
%Docstring | ||
Sets the ``crs`` value for the new layer in the dialog. | ||
.. versionadded:: 3.0 | ||
.. seealso:: crs() | ||
%End | ||
|
||
QgsCoordinateReferenceSystem crs() const; | ||
%Docstring | ||
Returns the selected CRS for the new layer. | ||
.. seealso:: setCrs() | ||
:rtype: QgsCoordinateReferenceSystem | ||
%End | ||
|
||
/** Returns the layer name*/ | ||
QString layerName() const; | ||
%Docstring | ||
Returns the layer name | ||
:rtype: str | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsnewmemorylayerdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters