Skip to content
Browse files

Update a test for proj 6+

  • Loading branch information
nyalldawson committed Sep 1, 2020
1 parent b9cd453 commit 3710dbefa0280458ac6490d2ff7266f90648f623
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/src/core/testqgslayoutmap.cpp
@@ -488,8 +488,11 @@ void TestQgsLayoutMap::dataDefinedCrs()
//test proj string variable
map->dataDefinedProperties().setProperty( QgsLayoutObject::MapCrs, QgsProperty::fromValue( QStringLiteral( "PROJ4: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" ) ) );
map->refreshDataDefinedProperty( QgsLayoutObject::MapCrs );
QCOMPARE( map->crs().toProj(), QStringLiteral( "+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs" ) );
QCOMPARE( map->crs().toProj(), QStringLiteral( "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs" ) );


void TestQgsLayoutMap::dataDefinedTemporalRange()

0 comments on commit 3710dbe

Please sign in to comment.
You can’t perform that action at this time.