aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-04-10 17:04:47 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-04-10 19:17:39 +0200
commit35a9ffc2d147c04c3a58c48f16d7c748271e5003 (patch)
tree45acf265ae4766d95dc11153045cc672afd14d12 /test/unit/test_factory.cpp
parent21f0af0f8b56ab76b93aaf6ce962580ec7978fcb (diff)
downloadPROJ-35a9ffc2d147c04c3a58c48f16d7c748271e5003.tar.gz
PROJ-35a9ffc2d147c04c3a58c48f16d7c748271e5003.zip
Add hard-coded definitions for OGC:AnsiDate/JulianDate/UnixTime
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index c67f1490..2bc43b2d 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -4244,4 +4244,16 @@ 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");
+}
+
+// ---------------------------------------------------------------------------
+
} // namespace