aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/iso19111/factory.cpp3
-rw-r--r--test/unit/test_factory.cpp11
2 files changed, 14 insertions, 0 deletions
diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp
index cf44024f..3367f55c 100644
--- a/src/iso19111/factory.cpp
+++ b/src/iso19111/factory.cpp
@@ -5019,6 +5019,9 @@ AuthorityFactory::createCoordinateReferenceSystem(const std::string &code,
"T", cs::AxisDirection::FUTURE,
common::UnitOfMeasure::SECOND)));
}
+ if (code == "84") {
+ return createCoordinateReferenceSystem("CRS84", false);
+ }
}
auto res = d->runWithCodeParam(
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 2bc43b2d..edc8b190 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -4256,4 +4256,15 @@ TEST(factory, ogc_timecrs) {
// ---------------------------------------------------------------------------
+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