From e4f028223c773d3d60c6e59e00653ff22e538c90 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Tue, 16 Mar 2010 12:44:36 +0000 Subject: Rework the translation of nadgrids parameters into a list of gridshift files to avoid use of static "lastnadgrids" information which screws up multithreading. Changes the PJ structure. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1831 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/projects.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/projects.h') diff --git a/src/projects.h b/src/projects.h index dcd5b652..fcc9e48d 100644 --- a/src/projects.h +++ b/src/projects.h @@ -234,6 +234,8 @@ typedef struct PJconsts { int datum_type; /* PJD_UNKNOWN/3PARAM/7PARAM/GRIDSHIFT/WGS84 */ double datum_params[7]; + struct _pj_gi **gridlist; + int gridlist_count; double from_greenwich; /* prime meridian offset (in radians) */ double long_wrap_center; /* 0.0 for -180 to 180, actually in radians*/ int is_long_wrap_set; @@ -401,6 +403,13 @@ void nad_free(struct CTABLE *); /* higher level handling of datum grid shift files */ +int pj_apply_gridshift_2( PJ *defn, int inverse, + long point_count, int point_offset, + double *x, double *y, double *z ); +int pj_apply_gridshift_3( PJ_GRIDINFO **gridlist, int gridlist_count, + int inverse, long point_count, int point_offset, + double *x, double *y, double *z ); + PJ_GRIDINFO **pj_gridlist_from_nadgrids( const char *, int * ); void pj_deallocate_grids(); -- cgit v1.2.3