1 |
|
2003-08-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/layer.py: Remove the unused import of Shape from |
4 |
|
data. It was only there for interface compatibility but it's not |
5 |
|
used inside of Thuban and the generic Shape class will go away |
6 |
|
soon anyway. |
7 |
|
|
8 |
|
* test/test_baserenderer.py (SimpleShape): Shape class for the |
9 |
|
tests. |
10 |
|
(SimpleShapeStore.Shape): Use SimpleShape instead of |
11 |
|
Thuban.Model.data.Shape to make the tests independed of the coming |
12 |
|
changes. |
13 |
|
|
14 |
|
2003-08-07 Bernhard Herzog <[email protected]> |
15 |
|
|
16 |
|
* test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner) |
17 |
|
(ThubanTestProgram): New classes that extend the respective |
18 |
|
classes from unittest. These new version support skipping tests |
19 |
|
under certain expected conditions. In the Thuban test suite we |
20 |
|
uses this for tests that require the optional gdal support. |
21 |
|
(run_tests): Use ThubanTestProgram instead of the unittest.main() |
22 |
|
|
23 |
|
* test/runtests.py (main): Use the new ThubanTestRunner instead of |
24 |
|
the normal one from unittest |
25 |
|
|
26 |
|
* test/test_layer.py (TestLayer.test_raster_layer): If this test |
27 |
|
is not run because gdal support isn't available report this to the |
28 |
|
runner. |
29 |
|
|
30 |
|
* test/test_baserenderer.py |
31 |
|
(TestBaseRenderer.test_raster_no_projection): Do not run this test |
32 |
|
if gdal support isn't available and report this to the runner. |
33 |
|
|
34 |
|
2003-08-06 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
Rearrange the renderers a bit, partly in preparation for changes |
37 |
|
required for the postgis merge, partly to make it more testable. |
38 |
|
Also make the representation of coordinates in Shapes more |
39 |
|
consistent. |
40 |
|
|
41 |
|
* Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in |
42 |
|
this class is now in BaseRenderer. This class is now practically |
43 |
|
only a specialization of BaseRenderer for rendering to an actual |
44 |
|
wx DC. |
45 |
|
(ScreenRenderer.draw_shape_layer): Use self.low_level_renderer() |
46 |
|
to get the shapetype specific rendering functions. |
47 |
|
|
48 |
|
* Thuban/UI/baserenderer.py: New file with the basic rendering |
49 |
|
logic. The code in this file is completely independend of wx. |
50 |
|
(BaseRenderer): Class with the basic rendering logic |
51 |
|
|
52 |
|
* test/test_baserenderer.py: New. Test cases for BaseRenderer |
53 |
|
|
54 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
55 |
|
error_on_redraw to guard agains endless loops and stack overflows |
56 |
|
when there's a bug in the rendering code that raises exceptions. |
57 |
|
(MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual |
58 |
|
rendering into a separate method _do_redraw so that error handling |
59 |
|
is a bit easier. When an exception occurs, set error_on_redraw to |
60 |
|
true. When it's true on entry to OnIdle do nothing and return |
61 |
|
immediately. |
62 |
|
|
63 |
|
* Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a |
64 |
|
Shape object will always have the coordinates as a list of list of |
65 |
|
coordinate pairs (tuples). |
66 |
|
(Shape.compute_bbox): Adapt to new representation. |
67 |
|
|
68 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
69 |
|
(ViewPort.LabelShapeAt): Adapt to new coordinate representation in |
70 |
|
Shape objects. |
71 |
|
|
72 |
|
* test/test_shapefilestore.py |
73 |
|
(ShapefileStoreTests.assertFloatTuplesEqual) |
74 |
|
(ShapefileStoreTests.assertPointListEquals): Rename to |
75 |
|
assertPointListEquals and change purpose to checking equality of |
76 |
|
the lists returned by Shape.Points(). |
77 |
|
(TestShapefileStoreArc.test_shape) |
78 |
|
(TestShapefileStorePolygon.test_shape) |
79 |
|
(TestShapefileStorePoint.test_shape): Use the new |
80 |
|
assertPointListEquals instead of assertFloatTuplesEqual |
81 |
|
|
82 |
|
* test/test_layer.py (TestLayer.assertFloatTuplesEqual) |
83 |
|
(TestLayer.assertPointListEquals): Rename to assertPointListEquals |
84 |
|
and change purpose to checking equality of the lists returned by |
85 |
|
Shape.Points(). |
86 |
|
(TestLayer.test_arc_layer, TestLayer.test_arc_layer) |
87 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
88 |
|
(TestLayer.test_derived_store): Use the new assertPointListEquals |
89 |
|
instead of assertFloatTuplesEqual |
90 |
|
|
91 |
|
* test/test_derivedshapestore.py |
92 |
|
(TestDerivedShapeStore.assertFloatTuplesEqual) |
93 |
|
(TestDerivedShapeStore.assertPointListEquals): Rename to |
94 |
|
assertPointListEquals and change purpose to checking equality of |
95 |
|
the lists returned by Shape.Points(). |
96 |
|
(TestDerivedShapeStore.test_shape): Use the new |
97 |
|
assertPointListEquals instead of assertFloatTuplesEqual |
98 |
|
|
99 |
2003-08-06 Jan-Oliver Wagner <[email protected]> |
2003-08-06 Jan-Oliver Wagner <[email protected]> |
100 |
|
|
101 |
* Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for |
* Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for |