aboutsummaryrefslogtreecommitdiff
path: root/test/unit/test_factory.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@mines-paris.org>2019-01-09 16:24:16 +0100
committerGitHub <noreply@github.com>2019-01-09 16:24:16 +0100
commit5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071 (patch)
treec718433341207fa688e85e145cf83ac4149491ab /test/unit/test_factory.cpp
parent11bc4783ca2c5fed8603d0c49f5aea102eca2432 (diff)
parenta6899c98a6455dc022bdd6785af3e528488422b8 (diff)
downloadPROJ-5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071.tar.gz
PROJ-5b75e5fdccc531f7b0e3dcd636fa1ff3500bb071.zip
Merge pull request #1217 from rouault/remove_proj_5_crs_export
ISO19111: remove PROJ.5 specific format for CRS (refs #1214)
Diffstat (limited to 'test/unit/test_factory.cpp')
-rw-r--r--test/unit/test_factory.cpp24
1 files changed, 8 insertions, 16 deletions
diff --git a/test/unit/test_factory.cpp b/test/unit/test_factory.cpp
index deff6b63..e9b29728 100644
--- a/test/unit/test_factory.cpp
+++ b/test/unit/test_factory.cpp
@@ -409,9 +409,7 @@ TEST(factory, AuthorityFactory_createGeodeticCRS_geographic2D) {
EXPECT_TRUE(extent->isEquivalentTo(factory->createExtent("1262").get()));
EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=pipeline +step +proj=longlat +ellps=WGS84 +step "
- "+proj=unitconvert +xy_in=rad +xy_out=deg +step +proj=axisswap "
- "+order=2,1");
+ "+proj=longlat +datum=WGS84 +no_defs");
}
// ---------------------------------------------------------------------------
@@ -972,11 +970,9 @@ TEST(factory, AuthorityFactory_test_uom_9110) {
// This tests conversion from unit of measure EPSG:9110 DDD.MMSSsss
auto crs = factory->createProjectedCRS("2172");
EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=pipeline +step +proj=axisswap +order=2,1 +step "
- "+proj=unitconvert +xy_in=deg +xy_out=rad +step +proj=sterea "
- "+lat_0=53.0019444444444 +lon_0=21.5027777777778 +k=0.9998 "
- "+x_0=4603000 +y_0=5806000 +ellps=krass +step +proj=axisswap "
- "+order=2,1");
+ "+proj=sterea +lat_0=53.0019444444444 +lon_0=21.5027777777778 "
+ "+k=0.9998 +x_0=4603000 +y_0=5806000 +ellps=krass +units=m "
+ "+no_defs");
}
// ---------------------------------------------------------------------------
@@ -2327,10 +2323,8 @@ TEST_F(FactoryWithTmpDatabase, custom_projected_crs) {
EXPECT_EQ(*(crs->name()->description()), "my name");
EXPECT_EQ(crs->identifiers().size(), 1);
EXPECT_EQ(crs->derivingConversion()->targetCRS().get(), crs.get());
- EXPECT_EQ(
- crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad "
- "+step +proj=mbt_s +unused_flag +ellps=WGS84");
+ EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
+ "+proj=mbt_s +unused_flag +datum=WGS84 +units=m +no_defs");
EXPECT_TRUE(crs->canonicalBoundCRS() == nullptr);
}
{
@@ -2338,10 +2332,8 @@ TEST_F(FactoryWithTmpDatabase, custom_projected_crs) {
EXPECT_EQ(*(crs->name()->description()), "my name");
EXPECT_EQ(crs->identifiers().size(), 1);
EXPECT_EQ(crs->derivingConversion()->targetCRS().get(), crs.get());
- EXPECT_EQ(
- crs->exportToPROJString(PROJStringFormatter::create().get()),
- "+proj=pipeline +step +proj=unitconvert +xy_in=deg +xy_out=rad "
- "+step +proj=mbt_s +unused_flag +ellps=WGS84");
+ EXPECT_EQ(crs->exportToPROJString(PROJStringFormatter::create().get()),
+ "+proj=mbt_s +unused_flag +datum=WGS84 +units=m +no_defs");
EXPECT_TRUE(crs->canonicalBoundCRS() != nullptr);
}