diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-19 21:24:53 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-19 22:31:37 +0100 |
| commit | a06f4a258f618dbad2ce01feadab6908db00bda5 (patch) | |
| tree | 71497daf091671b478abf90bda5a3a222c5e91eb /src/open_lib.cpp | |
| parent | 2aeb122fb2720fa6809b9429aca5154f8eec5e6d (diff) | |
| download | PROJ-a06f4a258f618dbad2ce01feadab6908db00bda5.tar.gz PROJ-a06f4a258f618dbad2ce01feadab6908db00bda5.zip | |
Add proj_context_set_network_callbacks() with an empty implementation
Diffstat (limited to 'src/open_lib.cpp')
| -rw-r--r-- | src/open_lib.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/open_lib.cpp b/src/open_lib.cpp index e1572754..6bdd5510 100644 --- a/src/open_lib.cpp +++ b/src/open_lib.cpp @@ -53,6 +53,8 @@ PROJ_LIB; nullptr; #endif +using namespace NS_PROJ::internal; + /************************************************************************/ /* pj_set_finder() */ /************************************************************************/ @@ -238,7 +240,9 @@ pj_open_lib_internal(projCtx ctx, const char *name, const char *mode, else if (strchr(dir_chars,*name) || (*name == '.' && strchr(dir_chars,name[1])) || (!strncmp(name, "..", 2) && strchr(dir_chars,name[2])) - || (name[0] != '\0' && name[1] == ':' && strchr(dir_chars,name[2])) ) + || (name[0] != '\0' && name[1] == ':' && strchr(dir_chars,name[2])) + || starts_with(name, "http://") + || starts_with(name, "https://")) sysname = name; /* or try to use application provided file finder */ |
