QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
analysis
processing
qgsoverlayutils.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsoverlayutils.h
3
---------------------
4
Date : April 2018
5
Copyright : (C) 2018 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSOVERLAYUTILS_H
17
#define QGSOVERLAYUTILS_H
18
19
#include <QList>
20
#include "
qgswkbtypes.h
"
21
#include "
qgsgeometry.h
"
22
#define SIP_NO_FILE
23
25
26
class
QgsFeatureSource
;
27
class
QgsFeatureSink
;
28
class
QgsFields
;
29
class
QgsProcessingContext
;
30
class
QgsProcessingFeedback
;
31
32
namespace
QgsOverlayUtils
33
{
34
36
enum
DifferenceOutput
37
{
38
OutputA,
39
OutputAB,
40
OutputBA,
41
};
42
43
49
enum
SanitizeFlag
50
{
51
DontPromotePointGeometryToMultiPoint = 1 << 0,
52
};
53
59
Q_DECLARE_FLAGS( SanitizeFlags, SanitizeFlag )
60
61
62
void
difference(
const
QgsFeatureSource
&sourceA,
const
QgsFeatureSource
&sourceB,
QgsFeatureSink
&sink,
QgsProcessingContext
&context,
QgsProcessingFeedback
*feedback,
long
&count,
long
totalCount, DifferenceOutput outputAttrs,
const
QgsGeometryParameters
¶meters =
QgsGeometryParameters
(),
63
SanitizeFlags flags = SanitizeFlags() );
64
65
void
intersection(
const
QgsFeatureSource
&sourceA,
const
QgsFeatureSource
&sourceB,
QgsFeatureSink
&sink,
QgsProcessingContext
&context,
QgsProcessingFeedback
*feedback,
long
&count,
long
totalCount,
const
QList<int> &fieldIndicesA,
const
QList<int> &fieldIndicesB,
const
QgsGeometryParameters
¶meters =
QgsGeometryParameters
() );
66
68
bool
sanitizeIntersectionResult(
QgsGeometry
&geom,
Qgis::GeometryType
geometryType, SanitizeFlags flags = SanitizeFlags() );
69
80
void
resolveOverlaps(
const
QgsFeatureSource
&source,
QgsFeatureSink
&sink,
QgsProcessingFeedback
*feedback,
const
QgsGeometryParameters
¶meters =
QgsGeometryParameters
(), SanitizeFlags flags = SanitizeFlags() );
81
}
82
83
Q_DECLARE_OPERATORS_FOR_FLAGS
( QgsOverlayUtils::SanitizeFlags )
84
85
86
87
#endif
// QGSOVERLAYUTILS_H
Qgis::GeometryType
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Definition
qgis.h:337
QgsFeatureSink
An interface for objects which accept features via addFeature(s) methods.
Definition
qgsfeaturesink.h:33
QgsFeatureSource
An interface for objects which provide features via a getFeatures method.
Definition
qgsfeaturesource.h:37
QgsFields
Container of fields for a vector layer.
Definition
qgsfields.h:46
QgsGeometryParameters
Encapsulates parameters under which a geometry operation is performed.
Definition
qgsgeometry.h:109
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:162
QgsProcessingContext
Contains information about the context in which a processing algorithm is executed.
Definition
qgsprocessingcontext.h:45
QgsProcessingFeedback
Base class for providing feedback from a processing algorithm.
Definition
qgsprocessingfeedback.h:38
qgsgeometry.h
Q_DECLARE_OPERATORS_FOR_FLAGS
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)
qgswkbtypes.h
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8