mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
More unit tests
This commit is contained in:
parent
af2286323a
commit
4d7f0c2f50
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user