Skip to content

Commit

Permalink
createFromUserInput(): add capability to import PROJJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Aug 9, 2019
1 parent 89f2cc7 commit 740be1b
Show file tree
Hide file tree
Showing 9 changed files with 23,771 additions and 5 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ dnl Generate files
dnl ---------------------------------------------------------------------------

AC_CONFIG_FILES([Makefile cmake/Makefile src/Makefile include/Makefile include/proj/Makefile include/proj/internal/Makefile
include/proj/internal/nlohmann/Makefile
test/Makefile test/cli/Makefile test/gie/Makefile test/gigs/Makefile test/unit/Makefile
man/Makefile man/man1/Makefile man/man3/Makefile data/Makefile
jniwrap/Makefile jniwrap/org.osgeo.proj/Makefile jniwrap/org.osgeo.proj/org/Makefile jniwrap/org.osgeo.proj/org/proj4/Makefile])
Expand Down
2 changes: 2 additions & 0 deletions include/proj/internal/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SUBDIRS = nlohmann

noinst_HEADERS = \
coordinateoperation_constants.hpp \
coordinateoperation_internal.hpp \
Expand Down
2 changes: 2 additions & 0 deletions include/proj/internal/nlohmann/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
noinst_HEADERS = \
json.hpp
18 changes: 18 additions & 0 deletions include/proj/internal/nlohmann/include_json.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#if defined(__GNUC__)
#pragma GCC system_header
#endif

// clang-format off
#define and &&
#define or ||
#define not !
// clang-format on

// to avoid any clash if PROJ users have another version of nlohmann/json.hpp
#define nlohmann proj_nlohmann

#include "json.hpp"

#undef and
#undef or
#undef not
Loading

0 comments on commit 740be1b

Please sign in to comment.