diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-04-04 12:24:12 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2020-04-04 19:23:53 +0200 |
| commit | 1f792e6b9c9b41c4da8f8996e3eb325e444b0099 (patch) | |
| tree | 6bd265cde3ea00eb45b688ae021aee4f5eb6d818 /src/proj_internal.h | |
| parent | 8aab6fd948a5e9c16a352fa34a4e8cde54d5d924 (diff) | |
| download | PROJ-1f792e6b9c9b41c4da8f8996e3eb325e444b0099.tar.gz PROJ-1f792e6b9c9b41c4da8f8996e3eb325e444b0099.zip | |
hgridshift/vgridshift: defer grid opening when grid has already been opened
Relates to #2115
With the fix of https://github.com/OSGeo/PROJ/pull/2128, transforming between
EPSG:4326+3855 and EPSG:4269+5703 leads to many operations with many grids,
and opening a file handle for each operation saturates the limit of 1024
file handles opened simunalteously. This fix defers grid opening when a
transformation has already been instanciated with the same grid.
Diffstat (limited to 'src/proj_internal.h')
| -rw-r--r-- | src/proj_internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proj_internal.h b/src/proj_internal.h index 4dc63e1d..a7c1ddc8 100644 --- a/src/proj_internal.h +++ b/src/proj_internal.h @@ -890,6 +890,9 @@ int pj_get_suggested_operation(PJ_CONTEXT *ctx, const PJ_UNITS *pj_list_linear_units(); const PJ_UNITS *pj_list_angular_units(); +void pj_clear_hgridshift_knowngrids_cache(); +void pj_clear_vgridshift_knowngrids_cache(); + /* classic public API */ #include "proj_api.h" |
