aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt7
-rw-r--r--data/proj.ini6
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