-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgeoconvert.h
48 lines (37 loc) · 1.26 KB
/
geoconvert.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
#pragma once
#ifndef geoconvert_h__
#define geoconvert_h__
#if defined(_DLL_BUILD_)
#define GCONV_CALL __declspec(dllexport) int
#elif defined(_DLL_USE_)
#define GCONV_CALL extern "C" __declspec(dllimport) int
#else
#define GCONV_CALL int
#endif
#define GCONV_FAILURE 0
#define GCONV_SUCCESS 1
#ifdef __cplusplus
extern "C" {
#endif
GCONV_CALL gconv_wgs84_2_mgrs(char* MGRS,
double Latitude,
double Longitude);
GCONV_CALL gconv_mgrs_2_wgs84(double* Latitude,
double* Longitude,
const char* MGRS);
GCONV_CALL gconv_wgs84_2_utm(long *Zone,
char *Hemisphere,
double *Easting,
double *Northing,
double Latitude,
double Longitude);
GCONV_CALL gconv_utm_2_wgs84(double *Latitude,
double *Longitude,
long Zone,
char Hemisphere,
double Easting,
double Northing);
#ifdef __cplusplus
}
#endif
#endif