1 |
|
2003-08-19 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add very basic postgis database support and the corresponding test |
4 |
|
cases. The test cases require a PostgreSQL + postgis installation |
5 |
|
but no existing database. The database will be created |
6 |
|
automatically by the test cases |
7 |
|
|
8 |
|
* test/README: Add note about skipped tests and the requirements |
9 |
|
of the postgis tests. |
10 |
|
|
11 |
|
* Thuban/Model/postgisdb.py: New. Basic postgis database support. |
12 |
|
|
13 |
|
* test/test_postgis_db.py: New. Test cases for the postgis |
14 |
|
support. |
15 |
|
|
16 |
|
* Thuban/Model/wellknowntext.py: New. Parser for well-known-text |
17 |
|
format |
18 |
|
|
19 |
|
* test/test_wellknowntext.py: New. Test cases for the |
20 |
|
wellknowntext parser |
21 |
|
|
22 |
|
* test/postgissupport.py: New. Support module for tests involving |
23 |
|
a postgis database. |
24 |
|
|
25 |
|
* test/support.py (execute_as_testsuite): Shut down the postmaster |
26 |
|
if it's still running after the tests |
27 |
|
|
28 |
|
* Thuban/Model/data.py (RAW_WKT): New constant for raw data in |
29 |
|
well known text format |
30 |
|
|
31 |
|
2003-08-19 Jan-Oliver Wagner <[email protected]> |
32 |
|
|
33 |
|
* Examples/simple_extensions/hello_world.py: New. Raises a Hello World |
34 |
|
message dialog. |
35 |
|
|
36 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
37 |
|
|
38 |
|
* test/support.py (ThubanTestResult.printErrors): Indent the |
39 |
|
reason for the skips in the output to make it a bit more readable. |
40 |
|
(execute_as_testsuite): New helper function to run a test suite |
41 |
|
and print some more information. |
42 |
|
(run_tests): Use execute_as_testsuite to run the tests |
43 |
|
|
44 |
|
* test/runtests.py (main): Use execute_as_testsuite to run the |
45 |
|
tests |
46 |
|
|
47 |
|
2003-08-18 Bernhard Herzog <[email protected]> |
48 |
|
|
49 |
|
Fix some bugs in Thuban and the test suite that were uncovered by |
50 |
|
changes introduced in Python 2.3: |
51 |
|
|
52 |
|
* Thuban/Model/table.py (DBFTable.__init__): Make sure the |
53 |
|
filename is an absolute name |
54 |
|
|
55 |
|
* Thuban/Model/layer.py (RasterLayer.__init__): Make sure the |
56 |
|
filename is an absolute name |
57 |
|
|
58 |
|
* test/test_save.py (SaveSessionTest.testRasterLayer): Use a |
59 |
|
unique filename to save to and use the correct relative filename |
60 |
|
in the expected output. |
61 |
|
(SaveSessionTest.test_dbf_table): Use the correct relative |
62 |
|
filename in the expected output. |
63 |
|
|
64 |
|
* test/test_layer.py (TestLayer.test_raster_layer): Update the |
65 |
|
test to check whether the filename is absolute. |
66 |
|
|
67 |
|
2003-08-18 Jan-Oliver Wagner <[email protected]> |
68 |
|
|
69 |
|
* Thuban/UI/about.py (About.__init__): Added Silke Reimer. |
70 |
|
|
71 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
72 |
|
|
73 |
|
Change the way shapes are returned by a shape store. The |
74 |
|
ShapesInRegion method returns an iterator over actual shape |
75 |
|
objects instead of a list of shape ids. |
76 |
|
|
77 |
|
* Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape |
78 |
|
id. |
79 |
|
(ShapefileStore.ShapesInRegion): Return an iterator over the |
80 |
|
shapes which yields shape objects instead of returning a list of |
81 |
|
shape ids |
82 |
|
(ShapefileStore.AllShapes): New. Return an iterator over all |
83 |
|
shapes in the shape store |
84 |
|
(DerivedShapeStore.AllShapes): New. Like in ShapefileStore |
85 |
|
|
86 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Update |
87 |
|
doc-string. |
88 |
|
|
89 |
|
* Thuban/UI/baserenderer.py |
90 |
|
(BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to |
91 |
|
layer_shapes and make it return an iterator containg shapes |
92 |
|
instead of a list of ids. |
93 |
|
(BaseRenderer.draw_shape_layer): Update doc-string; Adapt to |
94 |
|
layer_shapes() change |
95 |
|
|
96 |
|
* Thuban/UI/renderer.py (ScreenRenderer.layer_ids) |
97 |
|
(ScreenRenderer.layer_shapes): Rename as in BaseRenderer |
98 |
|
|
99 |
|
* Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to |
100 |
|
changes in the ShapesInRegion return value. |
101 |
|
(ViewPort._get_hit_tester): Remove commented out code |
102 |
|
|
103 |
|
* test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the |
104 |
|
new return value. |
105 |
|
(SimpleShapeStore.AllShapes): New. Implement this method too. |
106 |
|
|
107 |
|
* test/test_layer.py (TestLayer.test_arc_layer) |
108 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
109 |
|
(TestLayer.test_point_layer_with_projection) |
110 |
|
(TestLayer.test_derived_store): Adapt to changes in the |
111 |
|
ShapesInRegion return value. |
112 |
|
|
113 |
|
* test/test_shapefilestore.py |
114 |
|
(TestShapefileStoreArc.test_shapes_in_region) |
115 |
|
(TestShapefileStorePolygon.test_shapes_in_region) |
116 |
|
(TestShapefileStorePoint.test_shapes_in_region): Adapt to changes |
117 |
|
in the ShapesInRegion return value. |
118 |
|
(TestShapefileStorePoint.test_all_shapes) |
119 |
|
(TestShapefileStoreArc.test_shape_shapeid): New tests for the new |
120 |
|
methods |
121 |
|
|
122 |
|
* test/test_derivedshapestore.py |
123 |
|
(TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in |
124 |
|
the ShapesInRegion return value. |
125 |
|
(TestDerivedShapeStore.test_all_shapes) |
126 |
|
(TestDerivedShapeStore.test_shape_shapeid): New tests for the new |
127 |
|
methods |
128 |
|
|
129 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
130 |
|
|
131 |
|
Make the renderers deal correctly with raw vs. python level |
132 |
|
representation of shape geometries |
133 |
|
|
134 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer): |
135 |
|
Return a flag useraw in addition to the callable and the parameter |
136 |
|
to indicate whether the callable can deal with the raw shape data |
137 |
|
or uses the higher level python lists of coordinates. The callable |
138 |
|
now should accept either the raw data or the return value of the |
139 |
|
shape's Points() method. |
140 |
|
(BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer |
141 |
|
change |
142 |
|
(BaseRenderer.projected_points): Instead of the shape id use the |
143 |
|
points list as parameter. |
144 |
|
(BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape) |
145 |
|
(BaseRenderer.draw_point_shape): Adapt to projected_points() |
146 |
|
change and accept the points list as parameter instead of the |
147 |
|
shape id. |
148 |
|
|
149 |
|
* Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return |
150 |
|
the useraw flag as required by the BaseRenderer |
151 |
|
(ScreenRenderer.draw_shape_layer): Adapt to low-level renderer |
152 |
|
changes. |
153 |
|
|
154 |
|
* test/test_baserenderer.py |
155 |
|
(TestBaseRenderer.test_point_with_classification): New test for |
156 |
|
rendering a map with classifications. |
157 |
|
|
158 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
159 |
|
|
160 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
161 |
|
(ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer) |
162 |
|
(ViewPort._get_hit_tester, ViewPort.projected_points) |
163 |
|
(ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon) |
164 |
|
(ViewPort._find_label_at): Split the find_shape_at method into |
165 |
|
several new methods and use the functions in the hit-test module. |
166 |
|
|
167 |
|
* Thuban/UI/hittest.py: New module with Python-level hit-testing |
168 |
|
functions |
169 |
|
|
170 |
|
* test/test_hittest.py: New. Test for the new hittest module |
171 |
|
|
172 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
173 |
|
|
174 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer |
175 |
|
projection to all corners of the bounding box to get a better |
176 |
|
approximation of the projected bounding box |
177 |
|
|
178 |
|
* test/test_layer.py (TestLayer.test_point_layer_with_projection): |
179 |
|
New. Test coordinate handling of a layer with a projection. |
180 |
|
Catches the bug fixed in Layer.ShapesInRegion |
181 |
|
|
182 |
|
2003-08-15 Bernhard Herzog <[email protected]> |
183 |
|
|
184 |
|
Move some of the mock objects in test_baserenderer into their own |
185 |
|
module so they can easily be used from other tests |
186 |
|
|
187 |
|
* test/mockgeo.py: New test helper module with some mock objects |
188 |
|
for geometry related things like shapes, shapestores and |
189 |
|
projections. |
190 |
|
|
191 |
|
* test/test_mockgeo.py: New. Tests for the new helper module |
192 |
|
|
193 |
|
* test/test_baserenderer.py: Some of the mock-objects are in |
194 |
|
mockgeo now. |
195 |
|
|
196 |
|
2003-08-12 Jan-Oliver Wagner <[email protected]> |
197 |
|
|
198 |
|
* Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit. |
199 |
|
|
200 |
2003-08-12 Bernhard Herzog <[email protected]> |
2003-08-12 Bernhard Herzog <[email protected]> |
201 |
|
|
202 |
* po/de.po: New. German translations by Bjoern Broscheit |
* po/de.po: New. German translations by Bjoern Broscheit |