1 |
# Copyright (c) 2002, 2003, 2004 by Intevation GmbH |
# Copyright (c) 2002, 2003, 2004, 2005 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
191 |
self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]), |
self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]), |
192 |
(90.0, -8.90043373, 120, 11.1616263)) |
(90.0, -8.90043373, 120, 11.1616263)) |
193 |
|
|
194 |
self.assertFloatSeqEqual(layer.ClipBoundingBox((-180, -6, 100, +120)), |
# Test a very large bounding box in the query. Naive inverse |
195 |
(90.0, -6, 100, 11.1616263)) |
# projection will create infs instead of proper coordinate |
196 |
|
# values and a different result (an empty list instead of [0]) |
197 |
shapes = layer.ShapesInRegion((-180, -170, 200, +120)) |
shapes = layer.ShapesInRegion((-180, -170, 200, +120)) |
198 |
self.assertEquals([s.ShapeID() for s in shapes],[0]) |
self.assertEquals([s.ShapeID() for s in shapes],[0]) |
199 |
|
|