1 |
|
2003-08-07 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_baserenderer.py (SimpleShape): Shape class for the |
4 |
|
tests. |
5 |
|
(SimpleShapeStore.Shape): Use SimpleShape instead of |
6 |
|
Thuban.Model.data.Shape to make the tests independed of the coming |
7 |
|
changes. |
8 |
|
|
9 |
|
2003-08-07 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
* test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner) |
12 |
|
(ThubanTestProgram): New classes that extend the respective |
13 |
|
classes from unittest. These new version support skipping tests |
14 |
|
under certain expected conditions. In the Thuban test suite we |
15 |
|
uses this for tests that require the optional gdal support. |
16 |
|
(run_tests): Use ThubanTestProgram instead of the unittest.main() |
17 |
|
|
18 |
|
* test/runtests.py (main): Use the new ThubanTestRunner instead of |
19 |
|
the normal one from unittest |
20 |
|
|
21 |
|
* test/test_layer.py (TestLayer.test_raster_layer): If this test |
22 |
|
is not run because gdal support isn't available report this to the |
23 |
|
runner. |
24 |
|
|
25 |
|
* test/test_baserenderer.py |
26 |
|
(TestBaseRenderer.test_raster_no_projection): Do not run this test |
27 |
|
if gdal support isn't available and report this to the runner. |
28 |
|
|
29 |
|
2003-08-06 Bernhard Herzog <[email protected]> |
30 |
|
|
31 |
|
Rearrange the renderers a bit, partly in preparation for changes |
32 |
|
required for the postgis merge, partly to make it more testable. |
33 |
|
Also make the representation of coordinates in Shapes more |
34 |
|
consistent. |
35 |
|
|
36 |
|
* Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in |
37 |
|
this class is now in BaseRenderer. This class is now practically |
38 |
|
only a specialization of BaseRenderer for rendering to an actual |
39 |
|
wx DC. |
40 |
|
(ScreenRenderer.draw_shape_layer): Use self.low_level_renderer() |
41 |
|
to get the shapetype specific rendering functions. |
42 |
|
|
43 |
|
* Thuban/UI/baserenderer.py: New file with the basic rendering |
44 |
|
logic. The code in this file is completely independend of wx. |
45 |
|
(BaseRenderer): Class with the basic rendering logic |
46 |
|
|
47 |
|
* test/test_baserenderer.py: New. Test cases for BaseRenderer |
48 |
|
|
49 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
50 |
|
error_on_redraw to guard agains endless loops and stack overflows |
51 |
|
when there's a bug in the rendering code that raises exceptions. |
52 |
|
(MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual |
53 |
|
rendering into a separate method _do_redraw so that error handling |
54 |
|
is a bit easier. When an exception occurs, set error_on_redraw to |
55 |
|
true. When it's true on entry to OnIdle do nothing and return |
56 |
|
immediately. |
57 |
|
|
58 |
|
* Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a |
59 |
|
Shape object will always have the coordinates as a list of list of |
60 |
|
coordinate pairs (tuples). |
61 |
|
(Shape.compute_bbox): Adapt to new representation. |
62 |
|
|
63 |
|
* Thuban/UI/viewport.py (ViewPort.find_shape_at) |
64 |
|
(ViewPort.LabelShapeAt): Adapt to new coordinate representation in |
65 |
|
Shape objects. |
66 |
|
|
67 |
|
* test/test_shapefilestore.py |
68 |
|
(ShapefileStoreTests.assertFloatTuplesEqual) |
69 |
|
(ShapefileStoreTests.assertPointListEquals): Rename to |
70 |
|
assertPointListEquals and change purpose to checking equality of |
71 |
|
the lists returned by Shape.Points(). |
72 |
|
(TestShapefileStoreArc.test_shape) |
73 |
|
(TestShapefileStorePolygon.test_shape) |
74 |
|
(TestShapefileStorePoint.test_shape): Use the new |
75 |
|
assertPointListEquals instead of assertFloatTuplesEqual |
76 |
|
|
77 |
|
* test/test_layer.py (TestLayer.assertFloatTuplesEqual) |
78 |
|
(TestLayer.assertPointListEquals): Rename to assertPointListEquals |
79 |
|
and change purpose to checking equality of the lists returned by |
80 |
|
Shape.Points(). |
81 |
|
(TestLayer.test_arc_layer, TestLayer.test_arc_layer) |
82 |
|
(TestLayer.test_polygon_layer, TestLayer.test_point_layer) |
83 |
|
(TestLayer.test_derived_store): Use the new assertPointListEquals |
84 |
|
instead of assertFloatTuplesEqual |
85 |
|
|
86 |
|
* test/test_derivedshapestore.py |
87 |
|
(TestDerivedShapeStore.assertFloatTuplesEqual) |
88 |
|
(TestDerivedShapeStore.assertPointListEquals): Rename to |
89 |
|
assertPointListEquals and change purpose to checking equality of |
90 |
|
the lists returned by Shape.Points(). |
91 |
|
(TestDerivedShapeStore.test_shape): Use the new |
92 |
|
assertPointListEquals instead of assertFloatTuplesEqual |
93 |
|
|
94 |
|
2003-08-06 Jan-Oliver Wagner <[email protected]> |
95 |
|
|
96 |
|
* Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for |
97 |
|
a bounding box. A dialog is raised in case, no bounding box |
98 |
|
is found. This fixes bug #2043: |
99 |
|
https://intevation.de/rt/webrt?serial_num=2043 |
100 |
|
|
101 |
|
2003-08-05 Bernhard Herzog <[email protected]> |
102 |
|
|
103 |
|
* Thuban/Model/color.py (Color.__repr__): Make the repr of a color |
104 |
|
object look like a Color instantiation. Formerly it looked like a |
105 |
|
tuple. |
106 |
|
|
107 |
|
* test/test_color.py (TestColor.test_repr) |
108 |
|
(TestColor.test_equality, TestColor.test_inequality): New. test |
109 |
|
some more apects of the Color class |
110 |
|
(TestTransparent.test_repr, TestTransparent.test_hex) |
111 |
|
(TestTransparent.test_equality): New. Test cases for the |
112 |
|
Transparent object. |
113 |
|
|
114 |
|
2003-08-04 Jan-Oliver Wagner <[email protected]> |
115 |
|
|
116 |
|
* Doc/manual/thuban-manual.xml: a number of small improvements. |
117 |
|
The resulting file is the version submitted for GREAT-ER II. |
118 |
|
|
119 |
|
2003-08-01 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
|
* Thuban/UI/resource.py, Thuban/UI/projdialog.py, |
122 |
|
Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py, |
123 |
|
Thuban/Model/resource.py: Insert cvs keywords and doc-strings. |
124 |
|
|
125 |
|
* Thuban/UI/common.py: Insert cvs keywords and doc-strings. |
126 |
|
(Color2wxColour, wxColour2Color, ThubanBeginBusyCursor) |
127 |
|
(ThubanEndBusyCursor): Add doc-strings |
128 |
|
|
129 |
|
2003-08-01 Bernhard Herzog <[email protected]> |
130 |
|
|
131 |
|
First step towards PostGIS integration. More abstraction by movin |
132 |
|
more code from the layer to the shapestore. More methods of the |
133 |
|
layer are now simply delegated to the equivalent method of the |
134 |
|
shapestore. The SHAPETYPE_* constants are now in data not in |
135 |
|
layer. |
136 |
|
|
137 |
|
* Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC) |
138 |
|
(SHAPETYPE_POINT, Shape): Move these constants and classes from |
139 |
|
layer.py to data.py |
140 |
|
(ShapefileStore.__init__): More Initialization for the new methods |
141 |
|
and functionality. |
142 |
|
(ShapefileStore.ShapeType, ShapefileStore.NumShapes) |
143 |
|
(ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion) |
144 |
|
(ShapefileStore.Shape): New methods that were formerly implemented |
145 |
|
in the layer. |
146 |
|
(DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion) |
147 |
|
(DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes) |
148 |
|
(DerivedShapeStore.BoundingBox): New. DerivedShapeStore |
149 |
|
equivalents of the new shape methods. These versions are simply |
150 |
|
delegated to the original shapstore. |
151 |
|
|
152 |
|
* Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC) |
153 |
|
(SHAPETYPE_POINT, Shape): Removed. They're now in data.py |
154 |
|
(Layer.SetShapeStore): Removed the initializatin of instance |
155 |
|
variables that were needed for the stuff that's now in |
156 |
|
ShapefileStore |
157 |
|
(Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType) |
158 |
|
(Layer.Shape, Layer.ShapesInRegion): Simply delegate to the |
159 |
|
shapestore. |
160 |
|
|
161 |
|
* Thuban/UI/classifier.py, Thuban/UI/renderer.py, |
162 |
|
Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data |
163 |
|
instead of layer. |
164 |
|
|
165 |
|
* test/test_shapefilestore.py: New. Tests for ShapefileStore. |
166 |
|
|
167 |
|
* test/test_derivedshapestore.py: New. Tests for DerivedShapeStore. |
168 |
|
|
169 |
|
* test/test_layer.py: Import the SHAPETYPE_* constants from data |
170 |
|
instead of layer. |
171 |
|
(TestLayer.test_derived_store): Remove the test for the exception |
172 |
|
when instantiating the DerivedShapeStore with an incompatible |
173 |
|
table which is now in test_derivedshapestore.py. Add some more |
174 |
|
tests of the layer methods to determine whether they work for a |
175 |
|
DerivedShapeStore as well. |
176 |
|
|
177 |
|
2003-07-31 Jonathan Coles <[email protected]> |
178 |
|
|
179 |
|
* Doc/manual/thuban-manual.xml: Fix the list of required packages |
180 |
|
by just listing the name and where they can be found. |
181 |
|
|
182 |
|
2003-07-31 Frank Koormann <[email protected]> |
183 |
|
|
184 |
|
* Doc/manual/thuban-manual.xml: |
185 |
|
Changed the screenshot elements to figure. |
186 |
|
Changed some variablelist elements to itemizedlist. |
187 |
|
Added section on GDAL formats. |
188 |
|
|
189 |
|
2003-07-31 Jonathan Coles <[email protected]> |
190 |
|
|
191 |
|
* Doc/manual/thuban-manual.xml: Added a few sentences about |
192 |
|
the Fix Border Color option when generating classes. |
193 |
|
|
194 |
|
2003-07-30 Jonathan Coles <[email protected]> |
195 |
|
|
196 |
|
* Thuban/Model/classgen.py: Add docstrings. Rename specific |
197 |
|
Ramp instances to use lower_case_style. |
198 |
|
|
199 |
|
* Thuban/UI/classgen.py: Use renamed Ramp instances. |
200 |
|
|
201 |
|
* Thuban/UI/classifier.py: Add docstrings. |
202 |
|
|
203 |
|
* Thuban/UI/dock.py: Add docstrings. |
204 |
|
|
205 |
|
* test/test_classgen.py: Use renamed Ramp instances. |
206 |
|
|
207 |
|
2003-07-30 Bernhard Herzog <[email protected]> |
208 |
|
|
209 |
|
* Thuban/Lib/connector.py (QueueingPublisher): Removed. This class |
210 |
|
was never used in Thuban. |
211 |
|
|
212 |
|
2003-07-30 Bernhard Herzog <[email protected]> |
213 |
|
|
214 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title() |
215 |
|
method directly instead of going through the transient_table |
216 |
|
method. This faster because transient_table may force the copy of |
217 |
|
a DBF file into the transient database and setting a table's title |
218 |
|
doesnm't affect the title of the associated transient table, so |
219 |
|
this fixes RT #2042 |
220 |
|
|
221 |
|
* Thuban/UI/main.py (__version__): Don't import the already |
222 |
|
removed show_exception_dialog. |
223 |
|
|
224 |
|
2003-07-29 Jonathan Coles <[email protected]> |
225 |
|
|
226 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
227 |
|
Put back this method and remove the equivalent function since we |
228 |
|
are setting the exception hook from within this class (OnInit). |
229 |
|
|
230 |
|
2003-07-29 Jonathan Coles <[email protected]> |
231 |
|
|
232 |
|
* Doc/manual/images/5_2_custom_ramp.png, |
233 |
|
Doc/manual/images/5_2_quantiles.png, |
234 |
|
Doc/manual/images/5_2_uniform_dist.png, |
235 |
|
Doc/manual/images/5_2_unique_values.png, |
236 |
|
Doc/manual/images/8_int_error.png: New screen shots. |
237 |
|
|
238 |
|
* Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified |
239 |
|
some points, and added more screen shots. |
240 |
|
|
241 |
|
2003-07-29 Bernhard Herzog <[email protected]> |
242 |
|
|
243 |
|
* Thuban/Model/data.py: Remove the now unused import of warnings |
244 |
|
|
245 |
|
2003-07-29 Bernhard Herzog <[email protected]> |
246 |
|
|
247 |
|
* Thuban/Model/data.py (SimpleStore): Removed. This class has been |
248 |
|
deprecated since before the 0.8 release and isn't used in Thuban |
249 |
|
itself anymore. |
250 |
|
|
251 |
|
* Thuban/Model/transientdb.py: Remove some unnecessary imports |
252 |
|
|
253 |
2003-07-29 Jonathan Coles <[email protected]> |
2003-07-29 Jonathan Coles <[email protected]> |
254 |
|
|
255 |
* Thuban/UI/application.py (ThubanApplication.OnInit): set the |
* Thuban/UI/application.py (ThubanApplication.OnInit): set the |
276 |
|
|
277 |
2003-07-29 Frank Koormann <[email protected]> |
2003-07-29 Frank Koormann <[email protected]> |
278 |
|
|
279 |
|
* Doc/manual/thuban-manual.xml: Extended section on supported |
280 |
|
projections. |
281 |
|
|
282 |
|
2003-07-29 Frank Koormann <[email protected]> |
283 |
|
|
284 |
* Doc/manual/thuban-manual.xml: gaspell-checked. |
* Doc/manual/thuban-manual.xml: gaspell-checked. |
285 |
|
|
286 |
2003-07-29 Jonathan Coles <[email protected]> |
2003-07-29 Jonathan Coles <[email protected]> |