QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
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
3
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
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
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
c
l
s
t
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
analysis
georeferencing
qgsgcpgeometrytransformer.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgcpgeometrytransformer.h
3
----------------------
4
begin : February 2021
5
copyright : (C) 2021 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSGCPGEOMETRYTRANSFORMER_H
19
#define QGSGCPGEOMETRYTRANSFORMER_H
20
21
#include "qgis_analysis.h"
22
#include "
qgsgeometrytransformer.h
"
23
#include "
qgsgcptransformer.h
"
24
#include <memory>
25
26
class
QgsGeometry
;
27
35
class
ANALYSIS_EXPORT
QgsGcpGeometryTransformer
:
public
QgsAbstractGeometryTransformer
36
{
37
public
:
38
45
QgsGcpGeometryTransformer
(
QgsGcpTransformerInterface
*gcpTransformer
SIP_TRANSFER
);
46
51
QgsGcpGeometryTransformer
(
QgsGcpTransformerInterface::TransformMethod
method,
const
QVector<QgsPointXY> &sourceCoordinates,
const
QVector<QgsPointXY> &destinationCoordinates );
52
53
~
QgsGcpGeometryTransformer
()
override
;
54
56
QgsGcpGeometryTransformer
(
const
QgsGcpGeometryTransformer
&other ) =
delete
;
57
59
QgsGcpGeometryTransformer
&operator=(
const
QgsGcpGeometryTransformer
&other ) =
delete
;
60
61
bool
transformPoint
(
double
&x
SIP_INOUT
,
double
&y
SIP_INOUT
,
double
&z
SIP_INOUT
,
double
&m
SIP_INOUT
)
override
;
62
73
QgsGeometry
transform(
const
QgsGeometry
&geometry,
bool
&ok
SIP_OUT
,
QgsFeedback
*feedback =
nullptr
);
74
80
QgsGcpTransformerInterface
*gcpTransformer()
const
;
81
89
void
setGcpTransformer(
QgsGcpTransformerInterface
*transformer
SIP_TRANSFER
);
90
91
private
:
92
#ifdef SIP_RUN
93
QgsGcpGeometryTransformer
(
const
QgsGcpGeometryTransformer
&other );
94
#endif
95
96
std::unique_ptr< QgsGcpTransformerInterface > mGcpTransformer;
97
98
};
99
100
#endif // QGSGCPGEOMETRYTRANSFORMER_H
qgsgeometrytransformer.h
QgsGcpGeometryTransformer
A geometry transformer which uses an underlying Ground Control Points (GCP) based transformation to m...
Definition:
qgsgcpgeometrytransformer.h:35
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
qgsgcptransformer.h
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition:
qgsfeedback.h:44
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
SIP_INOUT
#define SIP_INOUT
Definition:
qgis_sip.h:71
QgsGeometry
A geometry is the spatial representation of a feature.
Definition:
qgsgeometry.h:124
QgsAbstractGeometryTransformer
An abstract base class for classes which transform geometries by transforming input points to output ...
Definition:
qgsgeometrytransformer.h:32
QgsGcpTransformerInterface::TransformMethod
TransformMethod
Available transformation methods.
Definition:
qgsgcptransformer.h:55
QgsGcpTransformerInterface
An interface for Ground Control Points (GCP) based transformations.
Definition:
qgsgcptransformer.h:33
QgsAbstractGeometryTransformer::transformPoint
virtual bool transformPoint(double &x, double &y, double &z, double &m)=0
Transforms the point defined by the coordinates (x, y, z) and the specified m value.
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17