Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QgsCoordinateTransformContext is implicitly shared
- Loading branch information
1 parent
f7b315f
commit 5131258
Showing
5 changed files
with
176 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/*************************************************************************** | ||
qgscoordinatetransformcontext_p.h | ||
------------------------------- | ||
begin : November 2017 | ||
copyright : (C) 2017 by Nyall Dawson | ||
email : nyall dot dawson at gmail dot com | ||
***************************************************************************/ | ||
|
||
/*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H | ||
#define QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H | ||
|
||
/// @cond PRIVATE | ||
|
||
// | ||
// W A R N I N G | ||
// ------------- | ||
// | ||
// This file is not part of the QGIS API. It exists purely as an | ||
// implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||
// | ||
|
||
/*************************************************************************** | ||
* This class is considered CRITICAL and any change MUST be accompanied with | ||
* full unit tests in testqgsfeature.cpp. | ||
* See details in QEP #17 | ||
****************************************************************************/ | ||
|
||
#include "qgscoordinatereferencesystem.h" | ||
|
||
|
||
class QgsCoordinateTransformContextPrivate : public QSharedData | ||
{ | ||
|
||
public: | ||
|
||
QgsCoordinateTransformContextPrivate() = default; | ||
|
||
QgsCoordinateTransformContextPrivate( const QgsCoordinateTransformContextPrivate &other ) | ||
: QSharedData( other ) | ||
, mSourceDestDatumTransforms( other.mSourceDestDatumTransforms ) | ||
, mSourceDatumTransforms( other.mSourceDatumTransforms ) | ||
, mDestDatumTransforms( other.mDestDatumTransforms ) | ||
{ | ||
} | ||
|
||
/** | ||
* Mapping for datum transforms to use for source/destination CRS pairs. | ||
* Matching records from this map will take precedence over other transform maps. | ||
*/ | ||
QMap< QPair< QString, QString >, QPair< int, int > > mSourceDestDatumTransforms; | ||
|
||
//! Mapping for datum transforms to use for source CRS | ||
QMap< QString, int > mSourceDatumTransforms; | ||
|
||
//! Mapping for datum transforms to use for destination CRS | ||
QMap< QString, int > mDestDatumTransforms; | ||
|
||
}; | ||
|
||
|
||
/// @endcond | ||
|
||
|
||
#endif // QGSCOORDINATETRANSFORMCONTEXT_PRIVATE_H | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters