aboutsummaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2020-03-03 18:43:19 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2020-03-03 18:43:19 +0000
commit63a8992d5647376f56a8a012d8c9296e21b3790e (patch)
treea255df3fe39f5961babb3992c000e8733f8da356 /test/unit
parent2ed04de712cfcca43e1bdb952117909f91d1f08d (diff)
downloadPROJ-63a8992d5647376f56a8a012d8c9296e21b3790e.tar.gz
PROJ-63a8992d5647376f56a8a012d8c9296e21b3790e.zip
createUnitOfMeasure(): use full double resolution for the conversion factor
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/test_factory.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index 5cf45d1a..15e91f22 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -95,6 +95,14 @@ TEST(factory, AuthorityFactory_createUnitOfMeasure_linear) {
// ---------------------------------------------------------------------------
+TEST(factory, AuthorityFactory_createUnitOfMeasure_linear_us_survey_foot) {
+ auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG");
+ auto uom = factory->createUnitOfMeasure("9003");
+ EXPECT_EQ(uom->conversionToSI(), 12. / 39.37);
+}
+
+// ---------------------------------------------------------------------------
+
TEST(factory, AuthorityFactory_createUnitOfMeasure_angular) {
auto factory = AuthorityFactory::create(DatabaseContext::create(), "EPSG");
auto uom = factory->createUnitOfMeasure("9102");