2018-09-06 17:30:56 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsGeometryCheckerUtils
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
2018-10-15 13:54:07 +02:00
|
|
|
Contains utilities required for geometry checks.
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
This class is a technology preview and unstable API.
|
2018-09-06 17:30:56 +02:00
|
|
|
|
2018-10-15 13:54:07 +02:00
|
|
|
.. versionadded:: 3.4
|
2018-09-06 17:30:56 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgeometrycheckerutils.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-12-22 11:54:43 +01:00
|
|
|
|
2018-09-06 17:30:56 +02:00
|
|
|
class LayerFeature
|
|
|
|
{
|
2018-12-22 11:54:43 +01:00
|
|
|
%Docstring
|
|
|
|
|
|
|
|
A layer feature combination to uniquely identify and access a feature in
|
|
|
|
a set of layers.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
2018-09-06 17:30:56 +02:00
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgeometrycheckerutils.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2018-09-24 14:51:53 -04:00
|
|
|
LayerFeature( const QgsFeaturePool *pool, const QgsFeature &feature, const QgsGeometryCheckContext *context, bool useMapCrs );
|
2018-09-06 17:30:56 +02:00
|
|
|
%Docstring
|
|
|
|
Create a new layer/feature combination.
|
|
|
|
The layer is defined by ``pool``, ``feature`` needs to be from this layer.
|
2019-02-26 19:54:09 +10:00
|
|
|
If ``useMapCrs`` is ``True``, geometries will be reprojected to the mapCrs defined
|
2018-09-06 17:30:56 +02:00
|
|
|
in ``context``.
|
|
|
|
%End
|
|
|
|
|
2019-03-01 13:20:42 +01:00
|
|
|
QgsFeature feature() const;
|
2018-09-06 17:30:56 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the feature.
|
|
|
|
The geometry will not be reprojected regardless of useMapCrs.
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
QString layerId() const;
|
|
|
|
%Docstring
|
|
|
|
The layer id.
|
|
|
|
%End
|
|
|
|
|
2019-03-01 13:20:42 +01:00
|
|
|
QgsGeometry geometry() const;
|
2018-09-06 17:30:56 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the geometry of this feature.
|
|
|
|
If useMapCrs was specified, it will already be reprojected into the
|
|
|
|
CRS specified in the context specified in the constructor.
|
|
|
|
%End
|
2018-12-22 10:57:53 +01:00
|
|
|
|
2018-09-06 17:30:56 +02:00
|
|
|
QString id() const;
|
2018-12-22 10:57:53 +01:00
|
|
|
%Docstring
|
|
|
|
Returns a combination of the layerId and the feature id.
|
|
|
|
%End
|
2018-10-05 01:36:40 +02:00
|
|
|
bool operator==( const QgsGeometryCheckerUtils::LayerFeature &other ) const;
|
|
|
|
bool operator!=( const QgsGeometryCheckerUtils::LayerFeature &other ) const;
|
2018-09-06 17:30:56 +02:00
|
|
|
|
|
|
|
bool useMapCrs() const;
|
|
|
|
%Docstring
|
|
|
|
Returns if the geometry is reprojected to the map CRS or not.
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class LayerFeatures
|
|
|
|
{
|
2018-12-22 11:54:43 +01:00
|
|
|
%Docstring
|
|
|
|
|
|
|
|
Contains a set of layers and feature ids in those layers to pass to a geometry check.
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
2018-09-06 17:30:56 +02:00
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsgeometrycheckerutils.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
private:
|
|
|
|
LayerFeatures();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}; // QgsGeometryCheckerUtils
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/vector/geometry_checker/qgsgeometrycheckerutils.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|