-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgo-proj.c
More file actions
22 lines (19 loc) · 806 Bytes
/
go-proj.c
File metadata and controls
22 lines (19 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "go-proj.h"
#if PROJ_VERSION_MAJOR < 8
const char *proj_context_errno_string(PJ_CONTEXT *ctx, int err) {
return proj_errno_string(err);
}
#endif
#if PROJ_VERSION_MAJOR < 8 || \
(PROJ_VERSION_MAJOR == 8 && PROJ_VERSION_MINOR < 2)
int proj_trans_bounds(PJ_CONTEXT *context, PJ *P, PJ_DIRECTION direction,
double xmin, double ymin, double xmax, double ymax,
double *out_xmin, double *out_ymin, double *out_xmax,
double *out_ymax, int densify_pts) {
return 1;
}
#endif
#if PROJ_VERSION_MAJOR < 9 || \
(PROJ_VERSION_MAJOR == 9 && PROJ_VERSION_MINOR < 1)
PJ *proj_trans_get_last_used_operation(PJ *P) { return NULL; }
#endif