-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathGlobalVars.h
More file actions
67 lines (59 loc) · 1.94 KB
/
GlobalVars.h
File metadata and controls
67 lines (59 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include <math.h>
#include <map>
#include <vector>
#include <deque>
#include <afxmt.h>
#include "gdal_priv.h"
#include "geos_c.h"
#include "ogr_geometry.h"
#include "ogr_spatialref.h"
#include "MapWinGis.h"
#include "structures.h"
#include "UtilityFunctions.h"
#include "ShapeUtility.h"
#include "GdalHelper.h"
#include "ComHelper.h"
#include "Utilities\Debugging\ReferenceCounter.h"
#include "GlobalSettingsInfo.h"
#include "Logger.h"
#include "Extent.h"
#include "VarH.h"
#include "MapViewCallback.h"
#include "DebugHelper.h"
#include "CallbackHelper.h"
#include "macros.h"
#pragma warning(disable:4482) // non-standard extension used - for names of enumerations
#pragma warning(disable:4099) // missing program database
extern GEOSContextHandle_t _geosContextHandle;
extern IUtils* m_utils;
extern IShapefile* m_shapefile;
extern ReferenceCounter gReferenceCounter;
extern GlobalSettingsInfo m_globalSettings;
extern char* UTF8_ENCODING_MARKER;
IUtils* GetUtils();
IShapefile* GetTempShapefile();
GEOSContextHandle_t getGeosHandle();
// constants to be available in the whole program
const double pi_ = 3.1415926535897932384626433832795;
const double pi_2 = 1.5707963267948966192313216916398;
const double METERS_PER_DEGREE = 110899.999942;
const double MAX_LAYER_VISIBLE_SCALE = 100000000.0;
const double MERCATOR_MAX_VAL = 20037508.342789244; // in GMercator for bot long and lat
const double MAX_LATITUDE = 85.05112878; // in WGS84
const double MAX_LONGITUDE = 180.0;
const int EPSG_AMERSFOORT = 28992;
const double SNAP_TOLERANCE = 20; // pixels
const double MOUSE_CLICK_TOLERANCE = 20; // pixels
const double POINT_INSERT_TOLERANCE = 10; // pixels
const int MAX_LABEL_SIZE = 108;
#define MAX_BUFFER 512
#ifdef VLD_FORCE_ENABLE
#include <vld.h>
#endif
// comment these lines to turn off the memory leaking detection tools
#ifdef _DEBUG
#include "../debugging/MemLeakDetect.h"
#pragma warning(disable:4100)
extern CMemLeakDetect gMemLeakDetect;
#endif