mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Add test
This commit is contained in:
parent
2736080f34
commit
5cedb485ca
@ -48,6 +48,13 @@ class TestQgsCoordinateTransform(unittest.TestCase):
|
||||
self.assertAlmostEqual(myExpectedValues[2], myProjectedExtent.xMaximum(), msg=myMessage)
|
||||
self.assertAlmostEqual(myExpectedValues[3], myProjectedExtent.yMaximum(), msg=myMessage)
|
||||
|
||||
def testTransformBoundingBoxSizeOverflowProtection(self):
|
||||
"""Test transform bounding box size overflow protection (github issue #32302)"""
|
||||
extent = QgsRectangle(-176.0454709164556562, 89.9999999999998153, 180.0000000000000000, 90.0000000000000000)
|
||||
transform = d = QgsCoordinateTransform(QgsCoordinateReferenceSystem('EPSG:4236'), QgsCoordinateReferenceSystem('EPSG:3031'), QgsProject.instance())
|
||||
# this test checks that the line below doesn't assert and crash
|
||||
transformedExtent = transform.transformBoundingBox(extent)
|
||||
|
||||
def testTransformQgsRectangle_Regression17600(self):
|
||||
"""Test that rectangle transform is in the bindings"""
|
||||
myExtent = QgsRectangle(-1797107, 4392148, 6025926, 6616304)
|
||||
|
Loading…
x
Reference in New Issue
Block a user