diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-04-10 20:15:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-10 20:15:34 +0200 |
| commit | 34ea13913717b20982778d5e5f13b4a5ee8288ab (patch) | |
| tree | c16c443866a0eec19c488e415fc75815a090327e /test/unit/test_factory.cpp | |
| parent | 84a679954b1fa4c41c7bdbac87013be78b64bea4 (diff) | |
| parent | a77ce5cf343c00fc95b5f3d9b2c27e02b6205fd3 (diff) | |
| download | PROJ-34ea13913717b20982778d5e5f13b4a5ee8288ab.tar.gz PROJ-34ea13913717b20982778d5e5f13b4a5ee8288ab.zip | |
Merge pull request #2656 from rouault/createFromUserInput_improvements
createFromUserInput(): various enhancements
Diffstat (limited to 'test/unit/test_factory.cpp')
| -rw-r--r-- | test/unit/test_factory.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp index c67f1490..edc8b190 100644 --- a/test/unit/test_factory.cpp +++ b/test/unit/test_factory.cpp @@ -4244,4 +4244,27 @@ TEST(factory, objectInsertion) { } } +// --------------------------------------------------------------------------- + +TEST(factory, ogc_timecrs) { + auto ctxt = DatabaseContext::create(); + auto factory = AuthorityFactory::create(ctxt, Identifier::OGC); + factory->createCoordinateReferenceSystem("AnsiDate"); + factory->createCoordinateReferenceSystem("JulianDate"); + factory->createCoordinateReferenceSystem("UnixTime"); +} + +// --------------------------------------------------------------------------- + +TEST(factory, ogc_crs) { + auto ctxt = DatabaseContext::create(); + auto factory = AuthorityFactory::create(ctxt, Identifier::OGC); + factory->createCoordinateReferenceSystem("CRS84"); + factory->createCoordinateReferenceSystem("84"); + factory->createCoordinateReferenceSystem("CRS27"); + factory->createCoordinateReferenceSystem("CRS83"); +} + +// --------------------------------------------------------------------------- + } // namespace |
