We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21d385a commit a88e29cCopy full SHA for a88e29c
src/proj.cpp
@@ -188,6 +188,10 @@ Rcpp::CharacterVector CPL_get_data_dir(bool b = false) {
188
// [[Rcpp::export]]
189
Rcpp::LogicalVector CPL_is_network_enabled(bool b = false) {
190
#if PROJ_VERSION_MAJOR >= 7
191
+#if GDAL_VERSION_NUM >= 3040000
192
+ if (OSRGetPROJEnableNetwork() != proj_context_is_network_enabled(PJ_DEFAULT_CTX))
193
+ Rcpp::warning("GDAL and PROJ have different settings for network enablement; use sf_use_network() to sync them");
194
+#endif
195
return Rcpp::LogicalVector::create(proj_context_is_network_enabled(PJ_DEFAULT_CTX));
196
#else
197
return Rcpp::LogicalVector::create(false);
0 commit comments