QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
+
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
u
v
w
z
+
Variables
a
b
c
d
e
g
h
i
l
n
o
p
q
r
s
t
u
w
+
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
22
#define SIP_NO_FILE
23
25
26
class
QgsFeatureSource
;
27
class
QgsFeatureSink
;
28
class
QgsFields
;
29
class
QgsProcessingContext
;
30
class
QgsProcessingFeedback
;
31
class
QgsGeometry
;
32
33
namespace
QgsOverlayUtils
34
{
35
37
enum
DifferenceOutput
38
{
39
OutputA,
40
OutputAB,
41
OutputBA,
42
};
43
44
void
difference(
const
QgsFeatureSource
&sourceA,
const
QgsFeatureSource
&sourceB,
QgsFeatureSink
&sink,
QgsProcessingContext
&context,
QgsProcessingFeedback
*feedback,
int
&count,
int
totalCount, DifferenceOutput outputAttrs );
45
46
void
intersection(
const
QgsFeatureSource
&sourceA,
const
QgsFeatureSource
&sourceB,
QgsFeatureSink
&sink,
QgsProcessingContext
&context,
QgsProcessingFeedback
*feedback,
int
&count,
int
totalCount,
const
QList<int> &fieldIndicesA,
const
QList<int> &fieldIndicesB );
47
49
bool
sanitizeIntersectionResult(
QgsGeometry
&geom,
QgsWkbTypes::GeometryType
geometryType );
50
60
void
resolveOverlaps(
const
QgsFeatureSource
&source,
QgsFeatureSink
&sink,
QgsProcessingFeedback
*feedback );
61
}
62
64
65
#endif // QGSOVERLAYUTILS_H
QgsProcessingFeedback
Base class for providing feedback from a processing algorithm.
Definition:
qgsprocessingfeedback.h:37
qgswkbtypes.h
QgsFeatureSink
An interface for objects which accept features via addFeature(s) methods.
Definition:
qgsfeaturesink.h:33
QgsFields
Container of fields for a vector layer.
Definition:
qgsfields.h:42
QgsGeometry
A geometry is the spatial representation of a feature.
Definition:
qgsgeometry.h:122
QgsWkbTypes::GeometryType
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Definition:
qgswkbtypes.h:139
QgsFeatureSource
An interface for objects which provide features via a getFeatures method.
Definition:
qgsfeaturesource.h:37
QgsProcessingContext
Contains information about the context in which a processing algorithm is executed.
Definition:
qgsprocessingcontext.h:43
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13