Skip to content
Permalink
Browse files

More unit tests

  • Loading branch information
nyalldawson committed Apr 5, 2019
1 parent af22863 commit 4d7f0c2f502cfce13e45fd31b1794d93af8e3c93
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/src/core/testqgscoordinatetransform.cpp
@@ -273,6 +273,10 @@ void TestQgsCoordinateTransform::transform_data()
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
<< 145.512750 << -37.961375 << static_cast< int >( QgsCoordinateTransform::ForwardTransform ) << 2545059.0 << 2393190.0 << 0.1;
QTest::newRow( "From geographic to geographic" )
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
<< QgsCoordinateReferenceSystem::fromEpsgId( 4164 )
<< 145.512750 << -37.961375 << static_cast< int >( QgsCoordinateTransform::ForwardTransform ) << 145.510966 << -37.961741 << 0.0001;
QTest::newRow( "To geographic (reverse)" )
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
@@ -281,6 +285,11 @@ void TestQgsCoordinateTransform::transform_data()
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
<< 2545058.9675128171 << 2393190.0509782173 << static_cast< int >( QgsCoordinateTransform::ReverseTransform ) << 145.512750 << -37.961375 << 0.000001;
QTest::newRow( "From geographic to geographic reverse" )
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
<< QgsCoordinateReferenceSystem::fromEpsgId( 4164 )
<< 145.510966 << -37.961741 << static_cast< int >( QgsCoordinateTransform::ReverseTransform ) << 145.512750 << -37.961375 << 0.0001;

}

void TestQgsCoordinateTransform::transform()

0 comments on commit 4d7f0c2

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