ToolMap
Loading...
Searching...
No Matches
tmcoordconvert.h
1/***************************************************************************
2 tmcoordconvert
3 -------------------
4 copyright : (C) 2013 Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15#ifndef _TMCOORDCONVERT_H_
16#define _TMCOORDCONVERT_H_
17
18#include <wx/wxprec.h>
19
20#ifndef WX_PRECOMP
21#include <wx/wx.h>
22#endif
23
24#include <gdalwarper.h>
25#include <ogr_spatialref.h>
26#include <wx/stdpaths.h>
27
28#include "../components/geodesic/geodesic.h"
29#include "projectdefmemory.h"
30
31class tmRealRect;
32
34 private:
35 PRJDEF_PROJ_TYPE m_ProjType;
36
37 OGRSpatialReference* _CreateSpatialRef(PRJDEF_PROJ_TYPE proj);
38
39 OGRSpatialReference* _CreateSpatialRefGoogle();
40
41 wxRealPoint _Transform(OGRSpatialReference* refin, OGRSpatialReference* refout, const wxRealPoint& in);
42
43 wxRealPoint _GetPointLocalFromWGS(const wxRealPoint& pt);
44
45 public:
46 tmCoordConvert(PRJDEF_PROJ_TYPE projtype);
47
48 virtual ~tmCoordConvert();
49
50 wxRealPoint GetPointWGS(const wxRealPoint& in);
51
52 wxRealPoint GetPointGoogle(const wxRealPoint& in);
53
54 wxBitmap* GetProjectGoogleRaster(wxBitmap* web_raster, tmRealRect* coord_web, tmRealRect* coord_local);
55
56 double GetDistance(const wxRealPoint& p1, const wxRealPoint& p2);
57
58 wxRealPoint GetPointAtDistance(const wxRealPoint& p1, double distance, double azimut);
59
60 wxString GetDistanceHuman(double distanceM);
61
62 char* GetWKTProjectionGoogle();
63
64 char* GetWKTProjectionLocal();
65
66 char* GetESRIWKTProjectionLocal();
67};
68
69#endif
Definition tmcoordconvert.h:33
Class representing real rectangle.
Definition tmgisscale.h:44
Storing project properties in memory.