/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1497 by frank, Tue Jul 29 12:07:41 2003 UTC revision 1592 by bh, Fri Aug 15 14:01:07 2003 UTC
# Line 1  Line 1 
1    2003-08-15  Bernhard Herzog  <[email protected]>
2    
3            Make the renderers deal correctly with raw vs. python level
4            representation of shape geometries
5    
6            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
7            Return a flag useraw in addition to the callable and the parameter
8            to indicate whether the callable can deal with the raw shape data
9            or uses the higher level python lists of coordinates. The callable
10            now should accept either the raw data or the return value of the
11            shape's Points() method.
12            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
13            change
14            (BaseRenderer.projected_points): Instead of the shape id use the
15            points list as parameter.
16            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
17            (BaseRenderer.draw_point_shape): Adapt to projected_points()
18            change and accept the points list as parameter instead of the
19            shape id.
20    
21            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
22            the useraw flag as required by the BaseRenderer
23            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
24            changes.
25    
26            * test/test_baserenderer.py
27            (TestBaseRenderer.test_point_with_classification): New test for
28            rendering a map with classifications.
29    
30    2003-08-15  Bernhard Herzog  <[email protected]>
31    
32            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
33            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
34            (ViewPort._get_hit_tester, ViewPort.projected_points)
35            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
36            (ViewPort._find_label_at): Split the find_shape_at method into
37            several new methods and use the functions in the hit-test module.
38    
39            * Thuban/UI/hittest.py: New module with Python-level hit-testing
40            functions
41    
42            * test/test_hittest.py: New. Test for the new hittest module
43    
44    2003-08-15  Bernhard Herzog  <[email protected]>
45    
46            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
47            projection to all corners of the bounding box to get a better
48            approximation of the projected bounding box
49    
50            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
51            New. Test coordinate handling of a layer with a projection.
52            Catches the bug fixed in Layer.ShapesInRegion
53    
54    2003-08-15  Bernhard Herzog  <[email protected]>
55    
56            Move some of the mock objects in test_baserenderer into their own
57            module so they can easily be used from other tests
58    
59            * test/mockgeo.py: New test helper module with some mock objects
60            for geometry related things like shapes, shapestores and
61            projections.
62    
63            * test/test_mockgeo.py: New. Tests for the new helper module
64    
65            * test/test_baserenderer.py: Some of the mock-objects are in
66            mockgeo now.
67    
68    2003-08-12  Jan-Oliver Wagner <[email protected]>
69    
70            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
71    
72    2003-08-12  Bernhard Herzog  <[email protected]>
73    
74            * po/de.po: New. German translations by Bjoern Broscheit
75    
76    2003-08-12  Bernhard Herzog  <[email protected]>
77    
78            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
79            strings have to be one string literal.
80    
81    2003-08-11  Bernhard Herzog  <[email protected]>
82    
83            * test/support.py (FloatComparisonMixin.assertPointListEquals):
84            New. This method was used in various derived classes, but it's
85            better to have it here.
86    
87            * test/test_shapefilestore.py
88            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
89            FloatComparisonMixin
90    
91            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
92            It's now in FloatComparisonMixin
93    
94            * test/test_derivedshapestore.py
95            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
96            in FloatComparisonMixin
97    
98    2003-08-11  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
101            error message
102    
103    2003-08-08  Jan-Oliver Wagner <[email protected]>
104    
105            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
106            with version number.
107            Changed title to reflect version number of Thuban.
108    
109    2003-08-08  Jan-Oliver Wagner <[email protected]>
110    
111            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
112            the list corresponds to the "About" web page.
113    
114    2003-08-08  Bernhard Herzog  <[email protected]>
115    
116            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
117            Make sure translated strings are recognized as one string literal.
118    
119            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
120            Make sure translated strings are recognized as one string literal.
121    
122            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
123            translated strings are recognized as one string literal.
124    
125            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
126            sure translated strings are recognized as one string literal.
127    
128    2003-08-07  Bernhard Herzog  <[email protected]>
129    
130            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
131            Simply delegates to the original shapestore.
132    
133            * test/test_derivedshapestore.py
134            (TestDerivedShapeStore.test_raw_format): New. Test case for
135            DerivedShapeStore.RawShapeFormat
136    
137    2003-08-07  Bernhard Herzog  <[email protected]>
138    
139            Add raw data interface to shape objects.
140    
141            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
142            class to ShapefileShape which now holds shapefile specific
143            information.
144            (ShapefileShape.compute_bbox): Simplified to not cache any
145            information. The way this method is used that shouldn't matter
146            performance wise.
147            (ShapefileShape.RawData): New. Return the shapeid which is the raw
148            data format for shapes from shapefiles.
149            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
150            in the shape objects returned by a shapestore. For a
151            ShapefileStore this is always RAW_SHAPEFILE.
152            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
153            method.
154    
155            * test/test_shapefilestore.py
156            (TestShapefileStore.test_raw_format): New test to test the raw
157            format feature of shapes.
158    
159            * Thuban/Model/layer.py: Remove the unused import of Shape from
160            data. It was only there for interface compatibility but it's not
161            used inside of Thuban and the generic Shape class has gone away.
162    
163            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
164            the raw data format and only use an optimized version of its a
165            shapefile.
166    
167    2003-08-07  Bernhard Herzog  <[email protected]>
168    
169            * test/test_baserenderer.py (SimpleShape): Shape class for the
170            tests.
171            (SimpleShapeStore.Shape): Use SimpleShape instead of
172            Thuban.Model.data.Shape to make the tests independed of the coming
173            changes.
174    
175    2003-08-07  Bernhard Herzog  <[email protected]>
176    
177            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
178            (ThubanTestProgram): New classes that extend the respective
179            classes from unittest. These new version support skipping tests
180            under certain expected conditions. In the Thuban test suite we
181            uses this for tests that require the optional gdal support.
182            (run_tests): Use ThubanTestProgram instead of the unittest.main()
183    
184            * test/runtests.py (main): Use the new ThubanTestRunner instead of
185            the normal one from unittest
186    
187            * test/test_layer.py (TestLayer.test_raster_layer): If this test
188            is not run because gdal support isn't available report this to the
189            runner.
190    
191            * test/test_baserenderer.py
192            (TestBaseRenderer.test_raster_no_projection): Do not run this test
193            if gdal support isn't available and report this to the runner.
194    
195    2003-08-06  Bernhard Herzog  <[email protected]>
196    
197            Rearrange the renderers a bit, partly in preparation for changes
198            required for the postgis merge, partly to make it more testable.
199            Also make the representation of coordinates in Shapes more
200            consistent.
201    
202            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
203            this class is now in BaseRenderer. This class is now practically
204            only a specialization of BaseRenderer for rendering to an actual
205            wx DC.
206            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
207            to get the shapetype specific rendering functions.
208    
209            * Thuban/UI/baserenderer.py: New file with the basic rendering
210            logic. The code in this file is completely independend of wx.
211            (BaseRenderer): Class with the basic rendering logic
212    
213            * test/test_baserenderer.py: New. Test cases for BaseRenderer
214    
215            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
216            error_on_redraw to guard agains endless loops and stack overflows
217            when there's a bug in the rendering code that raises exceptions.
218            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
219            rendering into a separate method _do_redraw so that error handling
220            is a bit easier. When an exception occurs, set error_on_redraw to
221            true. When it's true on entry to OnIdle do nothing and return
222            immediately.
223    
224            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
225            Shape object will always have the coordinates as a list of list of
226            coordinate pairs (tuples).
227            (Shape.compute_bbox): Adapt to new representation.
228    
229            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
230            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
231            Shape objects.
232    
233            * test/test_shapefilestore.py
234            (ShapefileStoreTests.assertFloatTuplesEqual)
235            (ShapefileStoreTests.assertPointListEquals): Rename to
236            assertPointListEquals and change purpose to checking equality of
237            the lists returned by Shape.Points().
238            (TestShapefileStoreArc.test_shape)
239            (TestShapefileStorePolygon.test_shape)
240            (TestShapefileStorePoint.test_shape): Use the new
241            assertPointListEquals instead of assertFloatTuplesEqual
242    
243            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
244            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
245            and change purpose to checking equality of the lists returned by
246            Shape.Points().
247            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
248            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
249            (TestLayer.test_derived_store): Use the new assertPointListEquals
250            instead of assertFloatTuplesEqual
251    
252            * test/test_derivedshapestore.py
253            (TestDerivedShapeStore.assertFloatTuplesEqual)
254            (TestDerivedShapeStore.assertPointListEquals): Rename to
255            assertPointListEquals and change purpose to checking equality of
256            the lists returned by Shape.Points().
257            (TestDerivedShapeStore.test_shape): Use the new
258            assertPointListEquals instead of assertFloatTuplesEqual
259    
260    2003-08-06  Jan-Oliver Wagner <[email protected]>
261    
262            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
263            a bounding box. A dialog is raised in case, no bounding box
264            is found. This fixes bug #2043:
265            https://intevation.de/rt/webrt?serial_num=2043
266    
267    2003-08-05  Bernhard Herzog  <[email protected]>
268    
269            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
270            object look like a Color instantiation. Formerly it looked like a
271            tuple.
272    
273            * test/test_color.py (TestColor.test_repr)
274            (TestColor.test_equality, TestColor.test_inequality): New. test
275            some more apects of the Color class
276            (TestTransparent.test_repr, TestTransparent.test_hex)
277            (TestTransparent.test_equality): New. Test cases for the
278            Transparent object.
279    
280    2003-08-04  Jan-Oliver Wagner <[email protected]>
281    
282            * Doc/manual/thuban-manual.xml: a number of small improvements.
283            The resulting file is the version submitted for GREAT-ER II.
284    
285    2003-08-01  Bernhard Herzog  <[email protected]>
286    
287            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
288            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
289            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
290    
291            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
292            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
293            (ThubanEndBusyCursor): Add doc-strings
294    
295    2003-08-01  Bernhard Herzog  <[email protected]>
296    
297            First step towards PostGIS integration. More abstraction by movin
298            more code from the layer to the shapestore. More methods of the
299            layer are now simply delegated to the equivalent method of the
300            shapestore. The SHAPETYPE_* constants are now in data not in
301            layer.
302    
303            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
304            (SHAPETYPE_POINT, Shape): Move these constants and classes from
305            layer.py to data.py
306            (ShapefileStore.__init__): More Initialization for the new methods
307            and functionality.
308            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
309            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
310            (ShapefileStore.Shape): New methods that were formerly implemented
311            in the layer.
312            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
313            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
314            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
315            equivalents of the new shape methods. These versions are simply
316            delegated to the original shapstore.
317    
318            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
319            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
320            (Layer.SetShapeStore): Removed the initializatin of instance
321            variables that were needed for the stuff that's now in
322            ShapefileStore
323            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
324            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
325            shapestore.
326    
327            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
328            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
329            instead of layer.
330    
331            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
332    
333            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
334    
335            * test/test_layer.py: Import the SHAPETYPE_* constants from data
336            instead of layer.
337            (TestLayer.test_derived_store): Remove the test for the exception
338            when instantiating the DerivedShapeStore with an incompatible
339            table which is now in test_derivedshapestore.py. Add some more
340            tests of the layer methods to determine whether they work for a
341            DerivedShapeStore as well.
342    
343    2003-07-31  Jonathan Coles   <[email protected]>
344    
345            * Doc/manual/thuban-manual.xml: Fix the list of required packages
346            by just listing the name and where they can be found.
347    
348    2003-07-31  Frank Koormann   <[email protected]>
349    
350            * Doc/manual/thuban-manual.xml:
351            Changed the screenshot elements to figure.
352            Changed some variablelist elements to itemizedlist.
353            Added section on GDAL formats.
354    
355    2003-07-31  Jonathan Coles   <[email protected]>
356    
357            * Doc/manual/thuban-manual.xml: Added a few sentences about
358            the Fix Border Color option when generating classes.
359    
360    2003-07-30  Jonathan Coles   <[email protected]>
361    
362            * Thuban/Model/classgen.py: Add docstrings. Rename specific
363            Ramp instances to use lower_case_style.
364    
365            * Thuban/UI/classgen.py: Use renamed Ramp instances.
366            
367            * Thuban/UI/classifier.py: Add docstrings.
368    
369            * Thuban/UI/dock.py: Add docstrings.
370    
371            * test/test_classgen.py: Use renamed Ramp instances.
372    
373    2003-07-30  Bernhard Herzog  <[email protected]>
374    
375            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
376            was never used in Thuban.
377    
378    2003-07-30  Bernhard Herzog  <[email protected]>
379    
380            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
381            method directly instead of going through the transient_table
382            method. This faster because transient_table may force the copy of
383            a DBF file into the transient database and setting a table's title
384            doesnm't affect the title of the associated transient table, so
385            this fixes RT #2042
386    
387            * Thuban/UI/main.py (__version__): Don't import the already
388            removed show_exception_dialog.
389    
390    2003-07-29  Jonathan Coles   <[email protected]>
391    
392            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
393            Put back this method and remove the equivalent function since we
394            are setting the exception hook from within this class (OnInit).
395    
396    2003-07-29  Jonathan Coles   <[email protected]>
397    
398            * Doc/manual/images/5_2_custom_ramp.png,
399            Doc/manual/images/5_2_quantiles.png,
400            Doc/manual/images/5_2_uniform_dist.png,
401            Doc/manual/images/5_2_unique_values.png,
402            Doc/manual/images/8_int_error.png: New screen shots.
403    
404            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
405            some points, and added more screen shots.
406    
407    2003-07-29  Bernhard Herzog  <[email protected]>
408    
409            * Thuban/Model/data.py: Remove the now unused import of warnings
410    
411    2003-07-29  Bernhard Herzog  <[email protected]>
412    
413            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
414            deprecated since before the 0.8 release and isn't used in Thuban
415            itself anymore.
416    
417            * Thuban/Model/transientdb.py: Remove some unnecessary imports
418    
419    2003-07-29  Jonathan Coles   <[email protected]>
420    
421            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
422            python exception hook here so that we are sure to catch any
423            Thuban exception that happen during initialization.
424    
425            * Thuban/UI/main.py (main): Don't set the exception hook here,
426            it will get set in ThubanApplication.OnInit.
427    
428    2003-07-29  Jonathan Coles   <[email protected]>
429                                                                                
430            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
431            Removed and called it show_exception_dialog() so that the exception
432            handler can be set before the class is created.
433                                                                                
434            * Thuban/UI/main.py (main): Install the exception handler before
435            a ThubanApplication is created.
436                                                                                    
437    2003-07-29  Bernhard Herzog  <[email protected]>
438    
439            * po/it.po: New. Italian translation by Maurizio Napolitano
440    
441            * po/ru.po: New. Russian translation by Alex Shevlakov
442    
443    2003-07-29  Frank Koormann   <[email protected]>
444    
445            * Doc/manual/thuban-manual.xml: Extended section on supported
446            projections.
447            
448  2003-07-29  Frank Koormann   <[email protected]>  2003-07-29  Frank Koormann   <[email protected]>
449    
450          * Doc/manual/thuban-manual.xml: gaspell-checked.          * Doc/manual/thuban-manual.xml: gaspell-checked.

Legend:
Removed from v.1497  
changed lines
  Added in v.1592

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26