@@ -129,11 +129,18 @@ def testSourceDestinationDatumTransforms(self):
129
129
# remove existing
130
130
self .assertTrue (context .addSourceDestinationDatumTransform (QgsCoordinateReferenceSystem (3111 ),
131
131
QgsCoordinateReferenceSystem (4283 ), - 1 , 3 ))
132
- self .assertEqual (context .sourceDestinationDatumTransforms (), {('EPSG:28356' , 'EPSG:4283' ): (3 , 4 ),
132
+ self .assertEqual (context .sourceDestinationDatumTransforms (), {('EPSG:3111' , 'EPSG:4283' ): (- 1 , 3 ),
133
+ ('EPSG:28356' , 'EPSG:4283' ): (3 , 4 ),
133
134
('EPSG:28356' , 'EPSG:28357' ): (9 , 11 )})
134
135
self .assertTrue (context .addSourceDestinationDatumTransform (QgsCoordinateReferenceSystem (28356 ),
135
136
QgsCoordinateReferenceSystem (28357 ), 1 , - 1 ))
136
- self .assertEqual (context .sourceDestinationDatumTransforms (), {('EPSG:28356' , 'EPSG:4283' ): (3 , 4 )})
137
+ self .assertEqual (context .sourceDestinationDatumTransforms (), {('EPSG:3111' , 'EPSG:4283' ): (- 1 , 3 ),
138
+ ('EPSG:28356' , 'EPSG:4283' ): (3 , 4 ),
139
+ ('EPSG:28356' , 'EPSG:28357' ): (1 , - 1 )})
140
+ self .assertTrue (context .addSourceDestinationDatumTransform (QgsCoordinateReferenceSystem (28356 ),
141
+ QgsCoordinateReferenceSystem (28357 ), - 1 , - 1 ))
142
+ self .assertEqual (context .sourceDestinationDatumTransforms (), {('EPSG:3111' , 'EPSG:4283' ): (- 1 , 3 ),
143
+ ('EPSG:28356' , 'EPSG:4283' ): (3 , 4 )})
137
144
138
145
context .clear ()
139
146
self .assertEqual (context .sourceDestinationDatumTransforms (), {})
0 commit comments