diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-16 21:32:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-16 21:32:28 +0100 |
| commit | f1209ff020cc9f5490f8e6c7edced6877f53da49 (patch) | |
| tree | 5ce7402568146013a623b8e92071c015c4d46c1c /data | |
| parent | 7040857c1fed53b0b896cd8f15bc34ff3c6161d3 (diff) | |
| parent | 19841f21f4319297b399bdc4f20c1c546a35e10e (diff) | |
| download | PROJ-f1209ff020cc9f5490f8e6c7edced6877f53da49.tar.gz PROJ-f1209ff020cc9f5490f8e6c7edced6877f53da49.zip | |
Merge pull request #1817 from rouault/rfc4_network_disk_cache
[RFC4_dev] Add a SQLite3 local cache of downloaded chunks
Diffstat (limited to 'data')
| -rw-r--r-- | data/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | data/proj.ini | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 8f3965f2..c664d6b8 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -2,6 +2,10 @@ # files containing dictionary of useful projection # +set(CONFIG_FILES + proj.ini +) + set(PROJ_DICTIONARY null world @@ -53,7 +57,7 @@ add_custom_command( add_custom_target(generate_proj_db ALL DEPENDS ${PROJ_DB}) if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") - foreach(FILE ${PROJ_DICTIONARY} ${GRIDSHIFT_FILES}) + foreach(FILE ${CONFIG_FILES} ${PROJ_DICTIONARY} ${GRIDSHIFT_FILES}) configure_file(${FILE} ${FILE} COPYONLY) endforeach() endif() @@ -62,6 +66,7 @@ endif() #install # set(ALL_DATA_FILE + ${CONFIG_FILES} ${PROJ_DICTIONARY} ${GRIDSHIFT_FILES} ${PROJ_DB} diff --git a/data/proj.ini b/data/proj.ini index f42bc940..2146ce41 100644 --- a/data/proj.ini +++ b/data/proj.ini @@ -8,3 +8,9 @@ ; Can be overriden with the PROJ_NETWORK_ENDPOINT environment variable. cdn_endpoint = https://cdn.proj.org + +cache_enabled = on + +cache_size_MB = 100 + +cache_ttl_sec = 86400 |
