-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGeoData.h
57 lines (48 loc) · 1.14 KB
/
GeoData.h
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
/*
* GeoData.h
*
* Created on: 2012. 1. 16.
* Author: HIST002
*/
#ifndef GEODATA_H_
#define GEODATA_H_
// this file contains some contstants related geo
const double PI = 3.14159265;
const double FOURTHPI = (PI / 4);
const double deg2rad = (PI / 180);
const double rad2deg = (180.0 / PI);
const double EarthRadius = 6371000; // meter earth's mean radius
const double EarthRadius_div_90 = (EarthRadius/90);
typedef struct tagGartesian {
double x;
double y;
double z;
}Cartesian;
//typedef struct tagCoordinate {
// QString lat;
// QString lon;
// QPointF p;
// QPointF screen_p; // convert p to screen point
// int bndry_idx;
// QChar bndry_via;
//}Coordinate;
//
//typedef struct QVector<Coordinate *> CoordList;
//
//typedef struct tagLayerId2 {
// QString id;
// QChar drawType;
// CoordList coordList;
//}Layer;
typedef struct tagCartesianXY {
Cartesian xyz;
double lat, lon;
QChar bndry_via;
QPoint mxy;
QPoint arc_centerxy;
double len;
double arc_dist;
double arc_bearing;
}CartesianXY;
//typedef struct QVector<Layer *> LayerList;
#endif /* GEODATA_H_ */