QGIS API Documentation
3.43.0-Master (c67cf405802)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Functions
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
w
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
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
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 Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
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
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
e
f
g
h
i
l
n
o
p
q
r
s
t
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
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
proj
qgscoordinatetransformcontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscoordinatetransformcontext.h
3
-------------------------------
4
begin : November 2017
5
copyright : (C) 2017 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 QGSCOORDINATETRANSFORMCONTEXT_H
19
#define QGSCOORDINATETRANSFORMCONTEXT_H
20
21
#include "qgis_core.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsdatumtransform.h
"
24
25
#include <QMetaType>
26
#include <QExplicitlySharedDataPointer>
27
class
QgsCoordinateReferenceSystem
;
28
class
QgsReadWriteContext
;
29
class
QgsCoordinateTransformContextPrivate;
30
class
QDomElement;
31
32
/***************************************************************************
33
* This class is considered CRITICAL and any change MUST be accompanied with
34
* full unit tests in testqgsfeature.cpp.
35
* See details in QEP #17
36
****************************************************************************/
37
56
class
CORE_EXPORT
QgsCoordinateTransformContext
57
{
58
public
:
59
63
QgsCoordinateTransformContext
();
64
65
~QgsCoordinateTransformContext
() ;
66
67
QgsCoordinateTransformContext
(
const
QgsCoordinateTransformContext
&rhs );
68
QgsCoordinateTransformContext
&operator=(
const
QgsCoordinateTransformContext
&rhs )
SIP_SKIP
;
69
70
bool
operator==
(
const
QgsCoordinateTransformContext
&rhs )
const
;
71
bool
operator!=
(
const
QgsCoordinateTransformContext
&rhs )
const
;
72
76
void
clear();
77
93
Q_DECL_DEPRECATED QMap< QPair< QString, QString>,
QgsDatumTransform::TransformPair
> sourceDestinationDatumTransforms() const
SIP_DEPRECATED
;
94
110
QMap< QPair< QString, QString>, QString > coordinateOperations() const;
111
126
Q_DECL_DEPRECATED
bool
addSourceDestinationDatumTransform( const
QgsCoordinateReferenceSystem
&sourceCrs, const
QgsCoordinateReferenceSystem
&destinationCrs,
int
sourceTransformId,
int
destinationTransformId )
SIP_DEPRECATED
;
127
159
bool
addCoordinateOperation( const
QgsCoordinateReferenceSystem
&sourceCrs, const
QgsCoordinateReferenceSystem
&destinationCrs, const QString &coordinateOperationProjString,
bool
allowFallback = true );
160
168
Q_DECL_DEPRECATED
void
removeSourceDestinationDatumTransform( const
QgsCoordinateReferenceSystem
&sourceCrs, const
QgsCoordinateReferenceSystem
&destinationCrs )
SIP_DEPRECATED
;
169
175
void
removeCoordinateOperation( const
QgsCoordinateReferenceSystem
&sourceCrs, const
QgsCoordinateReferenceSystem
&destinationCrs );
176
182
bool
hasTransform( const
QgsCoordinateReferenceSystem
&source,
183
const
QgsCoordinateReferenceSystem
&destination ) const;
184
195
Q_DECL_DEPRECATED
QgsDatumTransform
::TransformPair calculateDatumTransforms( const
QgsCoordinateReferenceSystem
&source, const
QgsCoordinateReferenceSystem
&destination ) const
SIP_DEPRECATED
;
196
216
QString calculateCoordinateOperation( const
QgsCoordinateReferenceSystem
&source, const
QgsCoordinateReferenceSystem
&destination ) const;
217
227
bool
allowFallbackTransform( const
QgsCoordinateReferenceSystem
&source, const
QgsCoordinateReferenceSystem
&destination ) const;
228
235
bool
mustReverseCoordinateOperation( const
QgsCoordinateReferenceSystem
&source, const
QgsCoordinateReferenceSystem
&destination ) const;
236
237
// TODO QGIS 4.0 - remove missingTransforms, not used for Proj >= 6.0 builds
238
247
bool
readXml( const QDomElement &element, const
QgsReadWriteContext
&context, QStringList &missingTransforms
SIP_OUT
);
248
253
void
writeXml( QDomElement &element, const
QgsReadWriteContext
&context ) const;
254
255
260
void
readSettings();
261
266
void
writeSettings();
267
268
269
private:
270
271
QExplicitlySharedDataPointer<QgsCoordinateTransformContextPrivate> d;
272
273
};
56
class
CORE_EXPORT
QgsCoordinateTransformContext
{
…
};
274
275
Q_DECLARE_METATYPE
(
QgsCoordinateTransformContext
)
276
277
#endif
// QGSCOORDINATETRANSFORMCONTEXT_H
278
279
280
281
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:201
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:57
QgsCoordinateTransformContext::~QgsCoordinateTransformContext
~QgsCoordinateTransformContext()
QgsDatumTransform
Contains methods and classes relating the datum transformations.
Definition
qgsdatumtransform.h:42
QgsReadWriteContext
A container for the context for various read/write operations on objects.
Definition
qgsreadwritecontext.h:34
qgis_sip.h
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:106
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
SIP_OUT
#define SIP_OUT
Definition
qgis_sip.h:58
qgsdatumtransform.h
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:433
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:438
QgsDatumTransform::TransformPair
Contains datum transform information.
Definition
qgsdatumtransform.h:51
Generated on Tue Apr 8 2025 15:57:40 for QGIS API Documentation by
1.9.8