190 |
self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]), |
self.assertFloatSeqEqual(layer.ShapesBoundingBox([0]), |
191 |
(90.0, -8.90043373, 120, 11.1616263)) |
(90.0, -8.90043373, 120, 11.1616263)) |
192 |
|
|
193 |
|
self.assertFloatSeqEqual(layer.ClipBoundingBox((-180, -6, 100, +120)), |
194 |
|
(90.0, -6, 100, 11.1616263)) |
195 |
|
shapes = layer.ShapesInRegion((-180, -170, 200, +120)) |
196 |
|
print "Shapes", shapes |
197 |
|
self.assertEquals([s.ShapeID() for s in shapes],[0]) |
198 |
|
|
199 |
def test_empty_layer(self): |
def test_empty_layer(self): |
200 |
"""Test Layer with empty shape file""" |
"""Test Layer with empty shape file""" |
201 |
# create an empty shape file |
# create an empty shape file |