aboutsummaryrefslogtreecommitdiff
path: root/src/proj_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/proj_internal.h')
-rw-r--r--src/proj_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proj_internal.h b/src/proj_internal.h
index 6edb6aec..2b2fb959 100644
--- a/src/proj_internal.h
+++ b/src/proj_internal.h
@@ -573,6 +573,9 @@ struct PJconsts {
mutable bool gridsNeededAsked = false;
mutable std::vector<NS_PROJ::operation::GridDescription> gridsNeeded{};
+ // cache pj_get_type() result to help for repeated calls to proj_factors()
+ mutable PJ_TYPE type = PJ_TYPE_UNKNOWN;
+
/*************************************************************************************
proj_create_crs_to_crs() alternative coordinate operations
**************************************************************************************/