1 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Fix some bugs in Thuban and the test suite that were uncovered by |
4 |
|
changes introduced in Python 2.3: |
5 |
|
|
6 |
|
* Thuban/Model/table.py (DBFTable.__init__): Make sure the |
7 |
|
filename is an absolute name |
8 |
|
|
9 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make sure the |
10 |
|
filename is an absolute name |
11 |
|
|
12 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Use a |
13 |
|
unique filename to save to and use the correct relative filename |
14 |
|
in the expected output. |
15 |
|
(SaveSessionTest.test_dbf_table): Use the correct relative |
16 |
|
filename in the expected output. |
17 |
|
|
18 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Update the |
19 |
|
test to check whether the filename is absolute. |
20 |
|
|
21 |
|
2003-08-18 Jan-Oliver Wagner <[email protected]> |
22 |
|
|
23 |
|
* Thuban/UI/about.py (About.__init__): Added Silke Reimer. |
24 |
|
|
25 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
26 |
|
|
27 |
|
Change the way shapes are returned by a shape store. The |
28 |
|
ShapesInRegion method returns an iterator over actual shape |
29 |
|
objects instead of a list of shape ids. |
30 |
|
|
31 |
|
* Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape |
32 |
|
id. |
33 |
|
(ShapefileStore.ShapesInRegion): Return an iterator over the |
34 |
|
shapes which yields shape objects instead of returning a list of |
35 |
|
shape ids |
36 |
|
(ShapefileStore.AllShapes): New. Return an iterator over all |
37 |
|
shapes in the shape store |
38 |
|
(DerivedShapeStore.AllShapes): New. Like in ShapefileStore |
39 |
|
|
40 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Update |
41 |
|
doc-string. |
42 |
|
|
43 |
|
* Thuban/UI/baserenderer.py |
44 |
|
(BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to |
45 |
|
layer_shapes and make it return an iterator containg shapes |
46 |
|
instead of a list of ids. |
47 |
|
(BaseRenderer.draw_shape_layer): Update doc-string; Adapt to |
48 |
|
layer_shapes() change |
49 |
|
|
50 |
|
* Thuban/UI/renderer.py (ScreenRenderer.layer_ids) |
51 |
|
(ScreenRenderer.layer_shapes): Rename as in BaseRenderer |
52 |
|
|
53 |
|
* Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to |
54 |
|
changes in the ShapesInRegion return value. |
55 |
|
(ViewPort._get_hit_tester): Remove commented out code |
56 |
|
|
57 |
|
* test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the |
58 |
|
new return value. |
59 |
|
(SimpleShapeStore.AllShapes): New. Implement this method too. |
60 |
|
|
61 |
|
* test/test_layer.py (TestLayer.test_arc_layer) |
62 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
63 |
|
(TestLayer.test_point_layer_with_projection) |
64 |
|
(TestLayer.test_derived_store): Adapt to changes in the |
65 |
|
ShapesInRegion return value. |
66 |
|
|
67 |
|
* test/test_shapefilestore.py |
68 |
|
(TestShapefileStoreArc.test_shapes_in_region) |
69 |
|
(TestShapefileStorePolygon.test_shapes_in_region) |
70 |
|
(TestShapefileStorePoint.test_shapes_in_region): Adapt to changes |
71 |
|
in the ShapesInRegion return value. |
72 |
|
(TestShapefileStorePoint.test_all_shapes) |
73 |
|
(TestShapefileStoreArc.test_shape_shapeid): New tests for the new |
74 |
|
methods |
75 |
|
|
76 |
|
* test/test_derivedshapestore.py |
77 |
|
(TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in |
78 |
|
the ShapesInRegion return value. |
79 |
|
(TestDerivedShapeStore.test_all_shapes) |
80 |
|
(TestDerivedShapeStore.test_shape_shapeid): New tests for the new |
81 |
|
methods |
82 |
|
|
83 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
Make the renderers deal correctly with raw vs. python level |
86 |
|
representation of shape geometries |
87 |
|
|
88 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
89 |
|
Return a flag useraw in addition to the callable and the parameter |
90 |
|
to indicate whether the callable can deal with the raw shape data |
91 |
|
or uses the higher level python lists of coordinates. The callable |
92 |
|
now should accept either the raw data or the return value of the |
93 |
|
shape's Points() method. |
94 |
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
95 |
|
change |
96 |
|
(BaseRenderer.projected_points): Instead of the shape id use the |
97 |
|
points list as parameter. |
98 |
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
99 |
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
100 |
|
change and accept the points list as parameter instead of the |
101 |
|
shape id. |
102 |
|
|
103 |
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
104 |
|
the useraw flag as required by the BaseRenderer |
105 |
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
106 |
|
changes. |
107 |
|
|
108 |
|
* test/test_baserenderer.py |
109 |
|
(TestBaseRenderer.test_point_with_classification): New test for |
110 |
|
rendering a map with classifications. |
111 |
|
|
112 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
113 |
|
|
114 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
115 |
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
116 |
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
117 |
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
118 |
|
(ViewPort._find_label_at): Split the find_shape_at method into |
119 |
|
several new methods and use the functions in the hit-test module. |
120 |
|
|
121 |
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
122 |
|
functions |
123 |
|
|
124 |
|
* test/test_hittest.py: New. Test for the new hittest module |
125 |
|
|
126 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
127 |
|
|
128 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
129 |
|
projection to all corners of the bounding box to get a better |
130 |
|
approximation of the projected bounding box |
131 |
|
|
132 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
133 |
|
New. Test coordinate handling of a layer with a projection. |
134 |
|
Catches the bug fixed in Layer.ShapesInRegion |
135 |
|
|
136 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
137 |
|
|
138 |
|
Move some of the mock objects in test_baserenderer into their own |
139 |
|
module so they can easily be used from other tests |
140 |
|
|
141 |
|
* test/mockgeo.py: New test helper module with some mock objects |
142 |
|
for geometry related things like shapes, shapestores and |
143 |
|
projections. |
144 |
|
|
145 |
|
* test/test_mockgeo.py: New. Tests for the new helper module |
146 |
|
|
147 |
|
* test/test_baserenderer.py: Some of the mock-objects are in |
148 |
|
mockgeo now. |
149 |
|
|
150 |
|
2003-08-12 Jan-Oliver Wagner <[email protected]> |
151 |
|
|
152 |
|
* Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit. |
153 |
|
|
154 |
2003-08-12 Bernhard Herzog <[email protected]> |
2003-08-12 Bernhard Herzog <[email protected]> |
155 |
|
|
156 |
* po/de.po: New. German translations by Bjoern Broscheit |
* po/de.po: New. German translations by Bjoern Broscheit |