Renamed KKJ class to KKJGridCoordinate
[ptas] / src / coordinatesystemtransformer.h
1 #ifndef COORDINATESYSTEMTRANSFORMER_H
2 #define COORDINATESYSTEMTRANSFORMER_H
3
4 #include "kkjgridcoordinate.h"
5 #include <QGeoCoordinate>
6
7 /**
8  * A utility class for transforming coordinates from one coordinate system to another.
9  */
10 class CoordinateSystemTransformer
11 {
12 public:
13     /**
14      * Makes a coordinate transformation from WGS84 coordinate system to KKJ rectangular
15      * grid coordinates.
16      * @param fromCoordinate the WGS84 coordinate that will be transformed.
17      * @return the transformed coordinate in KKJ coordinate system.
18      */
19     static KKJGridCoordinate transformToKKJ(const QTM_NAMESPACE::QGeoCoordinate &fromCoordinate);
20
21     /**
22      * Makes a coordinate transformation from KKJ rectangular grid coordinate system
23      * to WGS84 coordinate system.
24      * @param fromCoordinate the KKJ coordinate that will be transformed.
25      * @return the transformed coordinate in WGS84 coordinate system.
26      */
27     static QTM_NAMESPACE::QGeoCoordinate transformToWGS84(const KKJGridCoordinate &fromCoordinate);
28 };
29
30 #endif // COORDINATESYSTEMTRANSFORMER_H