1 |
|
2003-11-27 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Corect some bounding box projection problems |
4 |
|
|
5 |
|
* Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse |
6 |
|
version of ForwardBBox |
7 |
|
(Projection._transform_bbox): New. common implementation of |
8 |
|
ForwardBBox and InverseBBox |
9 |
|
(Projection.ForwardBBox): Use _transform_bbox. |
10 |
|
|
11 |
|
* test/test_proj.py (TestProjection.test): Add test for |
12 |
|
InverseBBox |
13 |
|
|
14 |
|
* Thuban/Model/layer.py (Layer.LatLongBoundingBox) |
15 |
|
(Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the |
16 |
|
new InverseBBox method to determine the unprojected bounding box |
17 |
|
(Layer.ShapesInRegion): Use the ForwardBBox method to project the |
18 |
|
bbox. |
19 |
|
|
20 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
21 |
|
Removed. |
22 |
|
(TestLayer.test_arc_layer_with_projection): New. This test is |
23 |
|
better able to test whether bounding boxes are projected correctly |
24 |
|
than test_point_layer_with_projection |
25 |
|
|
26 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
27 |
|
|
28 |
|
* Thuban/UI/about.py (About.__init__): Make sure we have ASCII |
29 |
|
source code. |
30 |
|
|
31 |
|
2003-11-25 Bernhard Herzog <[email protected]> |
32 |
|
|
33 |
|
* Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only |
34 |
|
there for backwards compatibility and all code relying on that |
35 |
|
should have been updated by now. |
36 |
|
|
37 |
2003-11-25 Bernhard Herzog <[email protected]> |
2003-11-25 Bernhard Herzog <[email protected]> |
38 |
|
|
39 |
* test/test_load.py (TestClassification.test): Add the missing |
* test/test_load.py (TestClassification.test): Add the missing |