mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -04:00
Add test for NULL bounding box of empty line
This commit is contained in:
parent
033baf1b0c
commit
10c7d6aa06
@ -1103,6 +1103,11 @@ class TestQgsGeometry(TestCase):
|
||||
bb = polygon.boundingBox()
|
||||
assert expbb == bb, "Expected:\n%s\nGot:\n%s\n" % (expbb.toString(), bb.toString())
|
||||
|
||||
# NULL
|
||||
points = []
|
||||
line = QgsGeometry.fromPolyline(points)
|
||||
assert line.boundingBox().isNull()
|
||||
|
||||
def testAddPart(self):
|
||||
# 2-3 6-+-7
|
||||
# | | | |
|
||||
|
Loading…
x
Reference in New Issue
Block a user