diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-08-17 10:58:08 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-08-17 12:15:53 +0200 |
| commit | cad1c5cf61fc00759bf4ad17b0b34f57f4945de6 (patch) | |
| tree | 764439efa0cd35a6f1040838ea669d463a07c4bc /test/unit/test_c_api.cpp | |
| parent | 8d0500b325d12b047797a60e3c13d4b473fae987 (diff) | |
| download | PROJ-cad1c5cf61fc00759bf4ad17b0b34f57f4945de6.tar.gz PROJ-cad1c5cf61fc00759bf4ad17b0b34f57f4945de6.zip | |
PROJJSON: rename file as projjson.schema.json, and add versionning to it and to exported PROJJSON strings
Diffstat (limited to 'test/unit/test_c_api.cpp')
| -rw-r--r-- | test/unit/test_c_api.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/test_c_api.cpp b/test/unit/test_c_api.cpp index 5649ca9f..97440796 100644 --- a/test/unit/test_c_api.cpp +++ b/test/unit/test_c_api.cpp @@ -3503,6 +3503,8 @@ TEST_F(CApi, proj_as_projjson) { ASSERT_NE(projjson, nullptr); EXPECT_EQ(std::string(projjson), "{\n" + " \"$schema\": " + "\"https://proj.org/schemas/v0.1/projjson.schema.json\",\n" " \"type\": \"Ellipsoid\",\n" " \"name\": \"WGS 84\",\n" " \"semi_major_axis\": 6378137,\n" @@ -3514,7 +3516,8 @@ TEST_F(CApi, proj_as_projjson) { "}"); } { - const char *const options[] = {"INDENTATION_WIDTH=4", nullptr}; + const char *const options[] = {"INDENTATION_WIDTH=4", "SCHEMA=", + nullptr}; auto projjson = proj_as_projjson(m_ctxt, obj, options); ASSERT_NE(projjson, nullptr); EXPECT_EQ(std::string(projjson), @@ -3530,7 +3533,7 @@ TEST_F(CApi, proj_as_projjson) { "}"); } { - const char *const options[] = {"MULTILINE=NO", nullptr}; + const char *const options[] = {"MULTILINE=NO", "SCHEMA=", nullptr}; auto projjson = proj_as_projjson(m_ctxt, obj, options); ASSERT_NE(projjson, nullptr); EXPECT_EQ(std::string(projjson), |
