QGIS API Documentation
3.10.0-A Coruña (6c816b4204)
src
core
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
57
class
CORE_EXPORT
QgsCoordinateTransformContext
58
{
59
public
:
60
64
QgsCoordinateTransformContext
();
65
66
~
QgsCoordinateTransformContext
() ;
67
71
QgsCoordinateTransformContext
(
const
QgsCoordinateTransformContext
&rhs );
72
76
QgsCoordinateTransformContext
&operator=(
const
QgsCoordinateTransformContext
&rhs )
SIP_SKIP
;
77
78
bool
operator==
(
const
QgsCoordinateTransformContext
&rhs )
const
;
79
83
void
clear();
84
100
Q_DECL_DEPRECATED QMap< QPair< QString, QString>,
QgsDatumTransform::TransformPair
> sourceDestinationDatumTransforms()
const
SIP_DEPRECATED
;
101
117
QMap< QPair< QString, QString>, QString > coordinateOperations()
const
;
118
133
Q_DECL_DEPRECATED
bool
addSourceDestinationDatumTransform(
const
QgsCoordinateReferenceSystem
&sourceCrs,
const
QgsCoordinateReferenceSystem
&destinationCrs,
int
sourceTransformId,
int
destinationTransformId )
SIP_DEPRECATED
;
134
153
bool
addCoordinateOperation(
const
QgsCoordinateReferenceSystem
&sourceCrs,
const
QgsCoordinateReferenceSystem
&destinationCrs,
const
QString &coordinateOperationProjString );
154
162
Q_DECL_DEPRECATED
void
removeSourceDestinationDatumTransform(
const
QgsCoordinateReferenceSystem
&sourceCrs,
const
QgsCoordinateReferenceSystem
&destinationCrs )
SIP_DEPRECATED
;
163
169
void
removeCoordinateOperation(
const
QgsCoordinateReferenceSystem
&sourceCrs,
const
QgsCoordinateReferenceSystem
&destinationCrs );
170
176
bool
hasTransform(
const
QgsCoordinateReferenceSystem
&source,
177
const
QgsCoordinateReferenceSystem
&destination )
const
;
178
189
Q_DECL_DEPRECATED
QgsDatumTransform::TransformPair
calculateDatumTransforms(
const
QgsCoordinateReferenceSystem
&source,
const
QgsCoordinateReferenceSystem
&destination )
const
SIP_DEPRECATED
;
190
206
QString calculateCoordinateOperation(
const
QgsCoordinateReferenceSystem
&source,
const
QgsCoordinateReferenceSystem
&destination )
const
;
207
208
// TODO QGIS 4.0 - remove missingTransforms, not used for Proj >= 6.0 builds
209
218
bool
readXml(
const
QDomElement &element,
const
QgsReadWriteContext
&context, QStringList &missingTransforms
SIP_OUT
);
219
224
void
writeXml( QDomElement &element,
const
QgsReadWriteContext
&context )
const
;
225
226
231
void
readSettings();
232
237
void
writeSettings();
238
239
240
private
:
241
242
QExplicitlySharedDataPointer<QgsCoordinateTransformContextPrivate> d;
243
244
};
245
246
Q_DECLARE_METATYPE
(
QgsCoordinateTransformContext
)
247
248
#endif // QGSCOORDINATETRANSFORMCONTEXT_H
249
250
251
252
QgsReadWriteContext
The class is used as a container of context for various read/write operations on other objects...
Definition:
qgsreadwritecontext.h:34
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition:
qgsfeatureiterator.h:399
qgsdatumtransform.h
SIP_SKIP
#define SIP_SKIP
Definition:
qgis_sip.h:126
qgis_sip.h
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition:
qgscoordinatetransformcontext.h:57
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition:
qgis_sip.h:106
QgsDatumTransform::TransformPair
Contains datum transform information.
Definition:
qgsdatumtransform.h:54
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
QgsCoordinateReferenceSystem
This class represents a coordinate reference system (CRS).
Definition:
qgscoordinatereferencesystem.h:198
Generated on Sun Oct 27 2019 00:43:28 for QGIS API Documentation by
1.8.13