~ubuntu-branches/ubuntu/wily/proj/wily

« back to all changes in this revision

Viewing changes to src/proj_api.h

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine, Jerome Villeneuve Larouche, Francesco Paolo Lovergine
  • Date: 2013-11-25 15:11:25 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20131125151125-mvcw144wvgep1hev
Tags: 4.8.0-1
[ Jerome Villeneuve Larouche ]
* New upstream release
* Modified libproj-dev.install to remove nad_list.h and projects.h
* Modified proj-bin.install to remove nad2nad
* Modified proj-bin.manpages to remove nad2nad man
* Added symbols for libproj0

[ Francesco Paolo Lovergine ]
* Properly merged with current git master and sid version 4.7.0-2.
* Removed proj transitional package and obsolete conflicts/replaces against
  series 4.6 and older.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 $
3
3
 *
4
4
 * Project:  PROJ.4
5
5
 * Purpose:  Public (application) include file for PROJ.4 API, and constants.
40
40
#endif
41
41
 
42
42
/* Try to update this every version! */
43
 
#define PJ_VERSION 470
 
43
#define PJ_VERSION 480
44
44
 
45
45
extern char const pj_release[]; /* global release id string */
46
46
 
55
55
    typedef void *projPJ;
56
56
    #define projXY projUV
57
57
    #define projLP projUV
 
58
    typedef void *projCtx;
58
59
#else
59
60
    typedef PJ *projPJ;
 
61
    typedef projCtx_t *projCtx;
60
62
#   define projXY       XY
61
63
#   define projLP       LP
62
64
#endif
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);
102
108
 
 
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 );
 
120
 
 
121
void pj_log( projCtx ctx, int level, const char *fmt, ... );
 
122
void pj_stderr_logger( void *, int, const char * );
 
123
 
 
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
 
128
 
103
129
#ifdef __cplusplus
104
130
}
105
131
#endif