1
1
/******************************************************************************
2
* $Id: proj_api.h 1631 2009-09-24 02:26:05Z warmerdam $
2
* $Id: proj_api.h 2160 2012-02-15 23:51:45Z warmerdam $
5
5
* Purpose: Public (application) include file for PROJ.4 API, and constants.
77
79
long point_count, int point_offset,
78
80
double *x, double *y, double *z );
79
81
int pj_compare_datums( projPJ srcdefn, projPJ dstdefn );
80
int pj_apply_gridshift( const char *, int,
82
int pj_apply_gridshift( projCtx, const char *, int,
81
83
long point_count, int point_offset,
82
84
double *x, double *y, double *z );
83
85
void pj_deallocate_grids(void);
86
void pj_clear_initcache(void);
84
87
int pj_is_latlong(projPJ);
85
88
int pj_is_geocent(projPJ);
89
void pj_get_spheroid_defn(projPJ defn, double *major_axis, double *eccentricity_squared);
86
90
void pj_pr_list(projPJ);
87
91
void pj_free(projPJ);
88
92
void pj_set_finder( const char *(*)(const char *) );
89
93
void pj_set_searchpath ( int count, const char **path );
90
94
projPJ pj_init(int, char **);
91
95
projPJ pj_init_plus(const char *);
96
projPJ pj_init_ctx( projCtx, int, char ** );
97
projPJ pj_init_plus_ctx( projCtx, const char * );
92
98
char *pj_get_def(projPJ, int);
93
99
projPJ pj_latlong_from_proj( projPJ );
94
100
void *pj_malloc(size_t);
100
106
void pj_release_lock(void);
101
107
void pj_cleanup_lock(void);
109
projCtx pj_get_default_ctx(void);
110
projCtx pj_get_ctx( projPJ );
111
void pj_set_ctx( projPJ, projCtx );
112
projCtx pj_ctx_alloc(void);
113
void pj_ctx_free( projCtx );
114
int pj_ctx_get_errno( projCtx );
115
void pj_ctx_set_errno( projCtx, int );
116
void pj_ctx_set_debug( projCtx, int );
117
void pj_ctx_set_logger( projCtx, void (*)(void *, int, const char *) );
118
void pj_ctx_set_app_data( projCtx, void * );
119
void *pj_ctx_get_app_data( projCtx );
121
void pj_log( projCtx ctx, int level, const char *fmt, ... );
122
void pj_stderr_logger( void *, int, const char * );
124
#define PJ_LOG_NONE 0
125
#define PJ_LOG_ERROR 1
126
#define PJ_LOG_DEBUG_MAJOR 2
127
#define PJ_LOG_DEBUG_MINOR 3
103
129
#ifdef __cplusplus