62 |
-13.55668830871582, 66.520111083984375]) |
-13.55668830871582, 66.520111083984375]) |
63 |
self.assertEquals(layer.ShapesInRegion((-24.0, 64.0, -23.75, 64.25)), |
self.assertEquals(layer.ShapesInRegion((-24.0, 64.0, -23.75, 64.25)), |
64 |
[613, 726, 838]) |
[613, 726, 838]) |
65 |
|
|
66 |
|
self.assertFloatSeqEqual(layer.ShapesBoundingBox([32]), |
67 |
|
[-15.082174301147461, 66.27339172363281, |
68 |
|
-15.026350021362305, 66.27738189697265]) |
69 |
|
|
70 |
|
shape = layer.Shape(33) |
71 |
|
self.assertFloatTuplesEqual(shape.Points(), |
72 |
|
[(-22.248506546020508, 66.30645751953125), |
73 |
|
(-22.232730865478516, 66.294075012207031), |
74 |
|
(-22.23158073425293, 66.287689208984375), |
75 |
|
(-22.246318817138672, 66.270065307617188)]) |
76 |
|
|
77 |
|
self.assertFloatSeqEqual(layer.ShapesBoundingBox([32, 33]), |
78 |
|
[-22.248506546020508, 66.270065307617188, |
79 |
|
-15.026350021362305, 66.30645751953125]) |
80 |
|
|
81 |
|
self.assertEquals(layer.ShapesBoundingBox([]), None) |
82 |
|
self.assertEquals(layer.ShapesBoundingBox(None), None) |
83 |
|
|
84 |
layer.Destroy() |
layer.Destroy() |
85 |
|
|
86 |
def test_polygon_layer(self): |
def test_polygon_layer(self): |