/[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 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 1609 by bh, Tue Aug 19 12:51:32 2003 UTC
# Line 1  Line 1 
1    2003-08-19  Bernhard Herzog  <[email protected]>
2    
3            * test/test_viewport.py (ViewPortTest): We don't use the
4            facilities of FileTestMixin so don't derive from it.
5            (TestViewportWithPostGIS): New class with tests for using a
6            viewport on a map with postgis layers.
7    
8    2003-08-19  Bernhard Herzog  <[email protected]>
9    
10            Add the db connection management to the session.
11    
12            * Thuban/Model/session.py (Session.__init__): New instance
13            variable db_connections
14            (Session.AddDBConnection, Session.DBConnections)
15            (Session.HasDBConnections, Session.CanRemoveDBConnection)
16            (Session.RemoveDBConnection): New methods to manage and query the
17            db connections managed by the session
18            (Session.OpenDBShapeStore): New method to open a shapestore from a
19            db connection
20    
21            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
22            messages for the db connection handling in the session
23    
24            * test/test_postgis_session.py: New. test cases for the session's
25            db connection handling with postgis connections
26    
27    2003-08-19  Bernhard Herzog  <[email protected]>
28    
29            Add very basic postgis database support and the corresponding test
30            cases. The test cases require a PostgreSQL + postgis installation
31            but no existing database. The database will be created
32            automatically by the test cases
33    
34            * test/README: Add note about skipped tests and the requirements
35            of the postgis tests.
36    
37            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
38    
39            * test/test_postgis_db.py: New. Test cases for the postgis
40            support.
41    
42            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
43            format
44    
45            * test/test_wellknowntext.py: New. Test cases for the
46            wellknowntext parser
47    
48            * test/postgissupport.py: New. Support module for tests involving
49            a postgis database.
50    
51            * test/support.py (execute_as_testsuite): Shut down the postmaster
52            if it's still running after the tests
53    
54            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
55            well known text format
56    
57    2003-08-19  Jan-Oliver Wagner <[email protected]>
58    
59            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
60            message dialog.
61    
62    2003-08-18  Bernhard Herzog  <[email protected]>
63    
64            * test/support.py (ThubanTestResult.printErrors): Indent the
65            reason for the skips in the output to make it a bit more readable.
66            (execute_as_testsuite): New helper function to run a test suite
67            and print some more information.
68            (run_tests): Use execute_as_testsuite to run the tests
69    
70            * test/runtests.py (main): Use execute_as_testsuite to run the
71            tests
72    
73    2003-08-18  Bernhard Herzog  <[email protected]>
74    
75            Fix some bugs in Thuban and the test suite that were uncovered by
76            changes introduced in Python 2.3:
77    
78            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
79            filename is an absolute name
80    
81            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
82            filename is an absolute name
83    
84            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
85            unique filename to save to and use the correct relative filename
86            in the expected output.
87            (SaveSessionTest.test_dbf_table): Use the correct relative
88            filename in the expected output.
89    
90            * test/test_layer.py (TestLayer.test_raster_layer): Update the
91            test to check whether the filename is absolute.
92    
93    2003-08-18  Jan-Oliver Wagner <[email protected]>
94    
95            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
96    
97    2003-08-15  Bernhard Herzog  <[email protected]>
98    
99            Change the way shapes are returned by a shape store. The
100            ShapesInRegion method returns an iterator over actual shape
101            objects instead of a list of shape ids.
102    
103            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
104            id.
105            (ShapefileStore.ShapesInRegion): Return an iterator over the
106            shapes which yields shape objects instead of returning a list of
107            shape ids
108            (ShapefileStore.AllShapes): New. Return an iterator over all
109            shapes in the shape store
110            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
111    
112            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
113            doc-string.
114    
115            * Thuban/UI/baserenderer.py
116            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
117            layer_shapes and make it return an iterator containg shapes
118            instead of a list of ids.
119            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
120            layer_shapes() change
121    
122            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
123            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
124    
125            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
126            changes in the ShapesInRegion return value.
127            (ViewPort._get_hit_tester): Remove commented out code
128    
129            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
130            new return value.
131            (SimpleShapeStore.AllShapes): New. Implement this method too.
132    
133            * test/test_layer.py (TestLayer.test_arc_layer)
134            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
135            (TestLayer.test_point_layer_with_projection)
136            (TestLayer.test_derived_store): Adapt to changes in the
137            ShapesInRegion return value.
138    
139            * test/test_shapefilestore.py
140            (TestShapefileStoreArc.test_shapes_in_region)
141            (TestShapefileStorePolygon.test_shapes_in_region)
142            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
143            in the ShapesInRegion return value.
144            (TestShapefileStorePoint.test_all_shapes)
145            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
146            methods
147    
148            * test/test_derivedshapestore.py
149            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
150            the ShapesInRegion return value.
151            (TestDerivedShapeStore.test_all_shapes)
152            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
153            methods
154    
155    2003-08-15  Bernhard Herzog  <[email protected]>
156    
157            Make the renderers deal correctly with raw vs. python level
158            representation of shape geometries
159    
160            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
161            Return a flag useraw in addition to the callable and the parameter
162            to indicate whether the callable can deal with the raw shape data
163            or uses the higher level python lists of coordinates. The callable
164            now should accept either the raw data or the return value of the
165            shape's Points() method.
166            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
167            change
168            (BaseRenderer.projected_points): Instead of the shape id use the
169            points list as parameter.
170            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
171            (BaseRenderer.draw_point_shape): Adapt to projected_points()
172            change and accept the points list as parameter instead of the
173            shape id.
174    
175            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
176            the useraw flag as required by the BaseRenderer
177            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
178            changes.
179    
180            * test/test_baserenderer.py
181            (TestBaseRenderer.test_point_with_classification): New test for
182            rendering a map with classifications.
183    
184    2003-08-15  Bernhard Herzog  <[email protected]>
185    
186            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
187            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
188            (ViewPort._get_hit_tester, ViewPort.projected_points)
189            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
190            (ViewPort._find_label_at): Split the find_shape_at method into
191            several new methods and use the functions in the hit-test module.
192    
193            * Thuban/UI/hittest.py: New module with Python-level hit-testing
194            functions
195    
196            * test/test_hittest.py: New. Test for the new hittest module
197    
198    2003-08-15  Bernhard Herzog  <[email protected]>
199    
200            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
201            projection to all corners of the bounding box to get a better
202            approximation of the projected bounding box
203    
204            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
205            New. Test coordinate handling of a layer with a projection.
206            Catches the bug fixed in Layer.ShapesInRegion
207    
208    2003-08-15  Bernhard Herzog  <[email protected]>
209    
210            Move some of the mock objects in test_baserenderer into their own
211            module so they can easily be used from other tests
212    
213            * test/mockgeo.py: New test helper module with some mock objects
214            for geometry related things like shapes, shapestores and
215            projections.
216    
217            * test/test_mockgeo.py: New. Tests for the new helper module
218    
219            * test/test_baserenderer.py: Some of the mock-objects are in
220            mockgeo now.
221    
222    2003-08-12  Jan-Oliver Wagner <[email protected]>
223    
224            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
225    
226    2003-08-12  Bernhard Herzog  <[email protected]>
227    
228            * po/de.po: New. German translations by Bjoern Broscheit
229    
230    2003-08-12  Bernhard Herzog  <[email protected]>
231    
232            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
233            strings have to be one string literal.
234    
235    2003-08-11  Bernhard Herzog  <[email protected]>
236    
237            * test/support.py (FloatComparisonMixin.assertPointListEquals):
238            New. This method was used in various derived classes, but it's
239            better to have it here.
240    
241            * test/test_shapefilestore.py
242            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
243            FloatComparisonMixin
244    
245            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
246            It's now in FloatComparisonMixin
247    
248            * test/test_derivedshapestore.py
249            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
250            in FloatComparisonMixin
251    
252    2003-08-11  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
255            error message
256    
257    2003-08-08  Jan-Oliver Wagner <[email protected]>
258    
259            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
260            with version number.
261            Changed title to reflect version number of Thuban.
262    
263    2003-08-08  Jan-Oliver Wagner <[email protected]>
264    
265            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
266            the list corresponds to the "About" web page.
267    
268    2003-08-08  Bernhard Herzog  <[email protected]>
269    
270            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
271            Make sure translated strings are recognized as one string literal.
272    
273            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
274            Make sure translated strings are recognized as one string literal.
275    
276            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
277            translated strings are recognized as one string literal.
278    
279            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
280            sure translated strings are recognized as one string literal.
281    
282    2003-08-07  Bernhard Herzog  <[email protected]>
283    
284            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
285            Simply delegates to the original shapestore.
286    
287            * test/test_derivedshapestore.py
288            (TestDerivedShapeStore.test_raw_format): New. Test case for
289            DerivedShapeStore.RawShapeFormat
290    
291    2003-08-07  Bernhard Herzog  <[email protected]>
292    
293            Add raw data interface to shape objects.
294    
295            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
296            class to ShapefileShape which now holds shapefile specific
297            information.
298            (ShapefileShape.compute_bbox): Simplified to not cache any
299            information. The way this method is used that shouldn't matter
300            performance wise.
301            (ShapefileShape.RawData): New. Return the shapeid which is the raw
302            data format for shapes from shapefiles.
303            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
304            in the shape objects returned by a shapestore. For a
305            ShapefileStore this is always RAW_SHAPEFILE.
306            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
307            method.
308    
309            * test/test_shapefilestore.py
310            (TestShapefileStore.test_raw_format): New test to test the raw
311            format feature of shapes.
312    
313            * Thuban/Model/layer.py: Remove the unused import of Shape from
314            data. It was only there for interface compatibility but it's not
315            used inside of Thuban and the generic Shape class has gone away.
316    
317            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
318            the raw data format and only use an optimized version of its a
319            shapefile.
320    
321    2003-08-07  Bernhard Herzog  <[email protected]>
322    
323            * test/test_baserenderer.py (SimpleShape): Shape class for the
324            tests.
325            (SimpleShapeStore.Shape): Use SimpleShape instead of
326            Thuban.Model.data.Shape to make the tests independed of the coming
327            changes.
328    
329    2003-08-07  Bernhard Herzog  <[email protected]>
330    
331            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
332            (ThubanTestProgram): New classes that extend the respective
333            classes from unittest. These new version support skipping tests
334            under certain expected conditions. In the Thuban test suite we
335            uses this for tests that require the optional gdal support.
336            (run_tests): Use ThubanTestProgram instead of the unittest.main()
337    
338            * test/runtests.py (main): Use the new ThubanTestRunner instead of
339            the normal one from unittest
340    
341            * test/test_layer.py (TestLayer.test_raster_layer): If this test
342            is not run because gdal support isn't available report this to the
343            runner.
344    
345            * test/test_baserenderer.py
346            (TestBaseRenderer.test_raster_no_projection): Do not run this test
347            if gdal support isn't available and report this to the runner.
348    
349    2003-08-06  Bernhard Herzog  <[email protected]>
350    
351            Rearrange the renderers a bit, partly in preparation for changes
352            required for the postgis merge, partly to make it more testable.
353            Also make the representation of coordinates in Shapes more
354            consistent.
355    
356            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
357            this class is now in BaseRenderer. This class is now practically
358            only a specialization of BaseRenderer for rendering to an actual
359            wx DC.
360            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
361            to get the shapetype specific rendering functions.
362    
363            * Thuban/UI/baserenderer.py: New file with the basic rendering
364            logic. The code in this file is completely independend of wx.
365            (BaseRenderer): Class with the basic rendering logic
366    
367            * test/test_baserenderer.py: New. Test cases for BaseRenderer
368    
369            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
370            error_on_redraw to guard agains endless loops and stack overflows
371            when there's a bug in the rendering code that raises exceptions.
372            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
373            rendering into a separate method _do_redraw so that error handling
374            is a bit easier. When an exception occurs, set error_on_redraw to
375            true. When it's true on entry to OnIdle do nothing and return
376            immediately.
377    
378            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
379            Shape object will always have the coordinates as a list of list of
380            coordinate pairs (tuples).
381            (Shape.compute_bbox): Adapt to new representation.
382    
383            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
384            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
385            Shape objects.
386    
387            * test/test_shapefilestore.py
388            (ShapefileStoreTests.assertFloatTuplesEqual)
389            (ShapefileStoreTests.assertPointListEquals): Rename to
390            assertPointListEquals and change purpose to checking equality of
391            the lists returned by Shape.Points().
392            (TestShapefileStoreArc.test_shape)
393            (TestShapefileStorePolygon.test_shape)
394            (TestShapefileStorePoint.test_shape): Use the new
395            assertPointListEquals instead of assertFloatTuplesEqual
396    
397            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
398            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
399            and change purpose to checking equality of the lists returned by
400            Shape.Points().
401            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
402            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
403            (TestLayer.test_derived_store): Use the new assertPointListEquals
404            instead of assertFloatTuplesEqual
405    
406            * test/test_derivedshapestore.py
407            (TestDerivedShapeStore.assertFloatTuplesEqual)
408            (TestDerivedShapeStore.assertPointListEquals): Rename to
409            assertPointListEquals and change purpose to checking equality of
410            the lists returned by Shape.Points().
411            (TestDerivedShapeStore.test_shape): Use the new
412            assertPointListEquals instead of assertFloatTuplesEqual
413    
414    2003-08-06  Jan-Oliver Wagner <[email protected]>
415    
416            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
417            a bounding box. A dialog is raised in case, no bounding box
418            is found. This fixes bug #2043:
419            https://intevation.de/rt/webrt?serial_num=2043
420    
421    2003-08-05  Bernhard Herzog  <[email protected]>
422    
423            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
424            object look like a Color instantiation. Formerly it looked like a
425            tuple.
426    
427            * test/test_color.py (TestColor.test_repr)
428            (TestColor.test_equality, TestColor.test_inequality): New. test
429            some more apects of the Color class
430            (TestTransparent.test_repr, TestTransparent.test_hex)
431            (TestTransparent.test_equality): New. Test cases for the
432            Transparent object.
433    
434    2003-08-04  Jan-Oliver Wagner <[email protected]>
435    
436            * Doc/manual/thuban-manual.xml: a number of small improvements.
437            The resulting file is the version submitted for GREAT-ER II.
438    
439    2003-08-01  Bernhard Herzog  <[email protected]>
440    
441            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
442            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
443            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
444    
445            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
446            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
447            (ThubanEndBusyCursor): Add doc-strings
448    
449    2003-08-01  Bernhard Herzog  <[email protected]>
450    
451            First step towards PostGIS integration. More abstraction by movin
452            more code from the layer to the shapestore. More methods of the
453            layer are now simply delegated to the equivalent method of the
454            shapestore. The SHAPETYPE_* constants are now in data not in
455            layer.
456    
457            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
458            (SHAPETYPE_POINT, Shape): Move these constants and classes from
459            layer.py to data.py
460            (ShapefileStore.__init__): More Initialization for the new methods
461            and functionality.
462            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
463            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
464            (ShapefileStore.Shape): New methods that were formerly implemented
465            in the layer.
466            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
467            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
468            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
469            equivalents of the new shape methods. These versions are simply
470            delegated to the original shapstore.
471    
472            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
473            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
474            (Layer.SetShapeStore): Removed the initializatin of instance
475            variables that were needed for the stuff that's now in
476            ShapefileStore
477            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
478            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
479            shapestore.
480    
481            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
482            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
483            instead of layer.
484    
485            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
486    
487            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
488    
489            * test/test_layer.py: Import the SHAPETYPE_* constants from data
490            instead of layer.
491            (TestLayer.test_derived_store): Remove the test for the exception
492            when instantiating the DerivedShapeStore with an incompatible
493            table which is now in test_derivedshapestore.py. Add some more
494            tests of the layer methods to determine whether they work for a
495            DerivedShapeStore as well.
496    
497    2003-07-31  Jonathan Coles   <[email protected]>
498    
499            * Doc/manual/thuban-manual.xml: Fix the list of required packages
500            by just listing the name and where they can be found.
501    
502    2003-07-31  Frank Koormann   <[email protected]>
503    
504            * Doc/manual/thuban-manual.xml:
505            Changed the screenshot elements to figure.
506            Changed some variablelist elements to itemizedlist.
507            Added section on GDAL formats.
508    
509    2003-07-31  Jonathan Coles   <[email protected]>
510    
511            * Doc/manual/thuban-manual.xml: Added a few sentences about
512            the Fix Border Color option when generating classes.
513    
514    2003-07-30  Jonathan Coles   <[email protected]>
515    
516            * Thuban/Model/classgen.py: Add docstrings. Rename specific
517            Ramp instances to use lower_case_style.
518    
519            * Thuban/UI/classgen.py: Use renamed Ramp instances.
520            
521            * Thuban/UI/classifier.py: Add docstrings.
522    
523            * Thuban/UI/dock.py: Add docstrings.
524    
525            * test/test_classgen.py: Use renamed Ramp instances.
526    
527    2003-07-30  Bernhard Herzog  <[email protected]>
528    
529            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
530            was never used in Thuban.
531    
532    2003-07-30  Bernhard Herzog  <[email protected]>
533    
534            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
535            method directly instead of going through the transient_table
536            method. This faster because transient_table may force the copy of
537            a DBF file into the transient database and setting a table's title
538            doesnm't affect the title of the associated transient table, so
539            this fixes RT #2042
540    
541            * Thuban/UI/main.py (__version__): Don't import the already
542            removed show_exception_dialog.
543    
544    2003-07-29  Jonathan Coles   <[email protected]>
545    
546            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
547            Put back this method and remove the equivalent function since we
548            are setting the exception hook from within this class (OnInit).
549    
550    2003-07-29  Jonathan Coles   <[email protected]>
551    
552            * Doc/manual/images/5_2_custom_ramp.png,
553            Doc/manual/images/5_2_quantiles.png,
554            Doc/manual/images/5_2_uniform_dist.png,
555            Doc/manual/images/5_2_unique_values.png,
556            Doc/manual/images/8_int_error.png: New screen shots.
557    
558            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
559            some points, and added more screen shots.
560    
561    2003-07-29  Bernhard Herzog  <[email protected]>
562    
563            * Thuban/Model/data.py: Remove the now unused import of warnings
564    
565    2003-07-29  Bernhard Herzog  <[email protected]>
566    
567            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
568            deprecated since before the 0.8 release and isn't used in Thuban
569            itself anymore.
570    
571            * Thuban/Model/transientdb.py: Remove some unnecessary imports
572    
573    2003-07-29  Jonathan Coles   <[email protected]>
574    
575            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
576            python exception hook here so that we are sure to catch any
577            Thuban exception that happen during initialization.
578    
579            * Thuban/UI/main.py (main): Don't set the exception hook here,
580            it will get set in ThubanApplication.OnInit.
581    
582    2003-07-29  Jonathan Coles   <[email protected]>
583                                                                                
584            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
585            Removed and called it show_exception_dialog() so that the exception
586            handler can be set before the class is created.
587                                                                                
588            * Thuban/UI/main.py (main): Install the exception handler before
589            a ThubanApplication is created.
590                                                                                    
591    2003-07-29  Bernhard Herzog  <[email protected]>
592    
593            * po/it.po: New. Italian translation by Maurizio Napolitano
594    
595            * po/ru.po: New. Russian translation by Alex Shevlakov
596    
597    2003-07-29  Frank Koormann   <[email protected]>
598    
599            * Doc/manual/thuban-manual.xml: Extended section on supported
600            projections.
601            
602    2003-07-29  Frank Koormann   <[email protected]>
603    
604            * Doc/manual/thuban-manual.xml: gaspell-checked.
605    
606    2003-07-29  Jonathan Coles   <[email protected]>
607    
608            * Doc/manual/images/3_5_legend.png: Added border to improve look
609            on white background.
610    
611    2003-07-29  Jonathan Coles   <[email protected]>
612    
613            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
614            descriptions for the legend toolbar.
615    
616            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
617            cursor from dialog box.
618    
619    2003-07-28  Jonathan Coles   <[email protected]>
620    
621            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
622    
623            * Doc/manual/images/2_4_session_tree.png,
624            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
625            Doc/manual/images/4_2_layer_properties.png,
626            Doc/manual/images/4_2_raster_layer_properties.png,
627            Doc/manual/images/5_3_genclass.png,
628            Doc/manual/images/5_classification.png,
629            Doc/manual/images/6_projection.png,
630            Doc/manual/images/7_1_table_view.png,
631            Doc/manual/images/7_2_5_join.png: New screenshots.
632    
633    2003-07-24  Jonathan Coles   <[email protected]>
634    
635            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
636    
637    2003-07-24  Jonathan Coles   <[email protected]>
638    
639            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
640            chapter on Layer Management.
641    
642            * Doc/manual/Makefile: New. Makefile to generate all formats for the
643            manual and images.
644    
645    2003-07-24  Bernhard Herzog  <[email protected]>
646    
647            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
648            it annoys lintian which warns about these files not being
649            executable. The #1 isn't necessary here since if you absolutely
650            must execute them you can always say "python <filename>".
651    
652            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
653            superfluous code to set brush and pen for point shapes
654    
655            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
656            belong in viewport anyway
657    
658    2003-07-24  Frank Koormann   <[email protected]>
659    
660            * Doc/manual/thuban-manual.xml: Added section on table management.
661    
662    2003-07-24  Bernhard Herzog  <[email protected]>
663    
664            * test/runtests.py (main): Recognize the long "verbose" option
665            correctly.
666    
667    2003-07-22  Jonathan Coles   <[email protected]>
668    
669            * Doc/manual/thuban-manual.xml: Continue to write first revision
670            of the manual.
671    
672            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
673            with Begin/EndDrawing() calls to ensure we aren't doing to
674            many updates to the dc during rendering.
675            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
676            a pen and brush argument so they need to be passed to the function.
677    
678            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
679            Calculates the minimum and maximum scale values. Factored out
680            of set_view_transform so that it could be used to zoom all the
681            way into a single point.
682            (ViewPort.set_view_transform): Call calc_min_max_scales().
683            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
684            if only a single point is selected.
685    
686            * Doc/manual/images/1_2_legend_close.png,
687            Doc/manual/images/1_2_legend_dock.png,
688            Doc/manual/images/1_2_mainwindow.png,
689            Doc/manual/images/1_2_mainwindow.ps,
690            Doc/manual/images/1_2_mainwindow.sk,
691            Doc/manual/images/3_2_fullextent.png,
692            Doc/manual/images/3_2_fulllayerextent.png,
693            Doc/manual/images/3_2_fullshapeextent.png,
694            Doc/manual/images/3_2_pan.png,
695            Doc/manual/images/3_2_zoomin.png,
696            Doc/manual/images/3_2_zoomout.png,
697            Doc/manual/images/3_3_identify.png,
698            Doc/manual/images/3_3_label.png,
699            Doc/manual/images/3_5_invisible.png,
700            Doc/manual/images/3_5_movedown.png,
701            Doc/manual/images/3_5_moveup.png,
702            Doc/manual/images/3_5_props.png,
703            Doc/manual/images/3_5_tobottom.png,
704            Doc/manual/images/3_5_totop.png,
705            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
706    
707    2003-07-18  Bernhard Herzog  <[email protected]>
708    
709            * Thuban/UI/messages.py (MAP_REPLACED): New message.
710    
711            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
712            after the new map has been assigned
713    
714            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
715            Delegate MAP_REPLACED to the canvas too
716            (MainWindow.prepare_new_session): Removed. Thanks to the new
717            MAP_REPLACED message it's no longer needed
718            (MainWindow.OpenSession, MainWindow.NewSession):
719            prepare_new_session has been removed.
720    
721            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
722            MAP_REPLACED so that we can close the dialog if a new map is set.
723            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
724            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
725            dialog
726    
727            * test/test_viewport.py (SimpleViewPortTest)
728            (SimpleViewPortTest.test_default_size): Add doc-strings
729            (ViewPortTest.setUp): Bind map to self.map so we can use it in
730            tests. Subscribe to MAP_REPLACED messages too.
731            (ViewPortTest.tearDown): No need to explicitly unsubscribe
732            (ViewPortTest.test_set_map): New test for the SetMap method.
733    
734    2003-07-18  Bernhard Herzog  <[email protected]>
735    
736            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
737            Move this test from ViewPortTest.setUp to this new separate test
738            case. setUp is not the place for the actual tests.
739            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
740            more of the test from setUp to the new test test_inital_settings.
741            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
742            (ViewPortTest.test_proj_conv): Split test_proj_conv into
743            test_win_to_proj and test_proj_to_win and make the tests easier to
744            understand
745            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
746            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
747            (ViewPortTest.test_unprojected_rect_around_point)
748            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
749            Reformat to increase readability.
750    
751    2003-07-18  Bernhard Herzog  <[email protected]>
752    
753            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
754    
755    2003-07-18  Bernhard Herzog  <[email protected]>
756    
757            * test/runtests.py: The test suite can now be run without an X
758            connection. To make sure this remains true, remove the DISPLAY
759            environment variable so that an error occurs if the wxGTK is
760            imported accidentally
761    
762    2003-07-18  Bernhard Herzog  <[email protected]>
763    
764            * Thuban/UI/viewport.py: Remove unused imports
765    
766            * Thuban/UI/view.py: Remove unused imports
767    
768    2003-07-18  Bernhard Herzog  <[email protected]>
769    
770            * test/test_export.py Remove unused imports. The OutputTransform
771            function is now in viewport.py and is called output_transform
772            (TestScalebar.test_output_transform)
773            (TestScalebar.test_OutputTransform): Renamed to
774            test_output_transform and updated to use output_transform instead
775            of OutputTransform
776    
777            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
778            renamed.
779            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
780            renamed to output_transform
781    
782            * Thuban/UI/viewport.py (OutputTransform, output_transform):
783            Rename to output_transform
784    
785    2003-07-18  Bernhard Herzog  <[email protected]>
786    
787            * Thuban/Model/layer.py (Layer.__init__): Rename
788            classificationField to classificatin_column and init it here so
789            that it can be used in SetClassificationColumn
790            (Layer.GetClassificationColumn, Layer.GetClassificationField):
791            Rename to GetClassificationColumn.
792            (Layer.SetClassificationColumn, Layer.SetClassificationField):
793            Rename to SetClassificationColumn and issue a LAYER_CHANGED
794            message if the column changes.
795            (Layer._classification_changed, Layer.ClassChanged): Rename to
796            _classification_changed. Update the callers.
797            (Layer.SetShapeStore): Further field->column renames.
798    
799            * Thuban/Model/load.py (SessionLoader.start_classification)
800            (SessionLoader.start_clpoint): Updates because of
801            field->column method name changes in the Layer class
802    
803            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
804            because of field->column method name changes in the Layer class
805    
806            * Thuban/UI/classifier.py (Classifier.__init__)
807            (Classifier._OnTry, Classifier._OnRevert): Updates because of
808            field->column method name changes in the Layer class
809    
810            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
811            because of field->column method name changes in the Layer class
812    
813            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
814            of field->column method name changes in the Layer class
815    
816            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
817            (SaveSessionTest.testClassifiedLayer): Update because of
818            field->column method name changes in the Layer class
819    
820            * test/test_layer.py (SetShapeStoreTests.setUp)
821            (SetShapeStoreTests.test_sanity): Update because of field->column
822            method name changes in the Layer class
823            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
824            (TestLayerModification.test_sanity)
825            (TestLayerModification.test_initial_settings): remove unsued code
826            and rename to test_sanity.
827            (TestLayerModification.test_set_classification): New test for
828            SetClassification and SetClassificationField.
829    
830    2003-07-18  Bernhard Herzog  <[email protected]>
831    
832            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
833            the non-fixed values as well. The old test would have accepted a
834            fixed ramp that only returnes the fixed properties
835    
836    2003-07-17  Jonathan Coles   <[email protected]>
837    
838            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
839            shots for the manual. The XCF file is the source image and
840            has additional layers to support changes.
841    
842            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
843    
844            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
845            Return both the new class and the field name.
846    
847            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
848            fit the map to the window as this changes any zoom level that
849            the user may have set.
850    
851    2003-07-16  Jonathan Coles   <[email protected]>
852    
853            * Thuban/Model/classgen.py (generate_singletons,
854            generate_uniform_distribution, generate_quantiles): Remove
855            fixes parameter, but maintain the same functionality by having
856            the calling function pass a FixedRamp object for the ramp.
857            (FixedRamp): New. Adapts a ramp to have fixed property values.
858    
859            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
860            (Classification): Inherit from Publisher.
861            (Classification.__init__): Remove the layer parameter.
862            Classifications no longer need to have a parent layer.
863            (Classification.GetField, Classification.GetFieldType,
864            Classification.SetFieldInfo): Removed. The field name is stored
865            in the layer, and the type can be retreived by calling
866            Layer.GetFieldType().
867            (Classification._set_layer, Classification.GetLayer): Removed.
868            Classifications no longer have a parent layer.
869    
870            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
871            classification.
872            (Layer.SetShapeStore): Reset the classification first while
873            we still have the old shape store to work with.
874            (Layer.GetClassificationField, Layer.SetClassificationField):
875            New. Method for getting/setting the field to classify on.
876            (Layer.SetClassification): Simplified now that the layer
877            simply has to hold a reference to the classification and not
878            tell the classification who owns it.
879            Fixes RTbug #2023.
880    
881            * Thuban/Model/load.py (SessionLoader.start_classification):
882            Set the field name on the layer, not the classification.
883    
884            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
885            classification is modified.
886    
887            * Thuban/Model/save.py (SessionSaver.write_classification):
888            Get the field name and type from the layer.
889    
890            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
891            parameter records to rows and add docstring. Fixes RTbug #1997.
892    
893            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
894            ramp when we need to fix certain values of a ramp rather than
895            using the old fixes parameter. Fixes RTbug #2024.
896    
897            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
898            parameter.
899            (ClassTable.Reset): Add fieldType parameter and use it, rather
900            than asking the classification.
901            (Classifier.__init__): Remember the original class's field
902            and ask the layer for the field type, rather than the classification.
903            (Classifier.__SetGridTable): Retrieve the field and field type
904            for the table because they are not in the classification.
905            (Classifier._OnTry, Classifier._OnRevert): Set the classification
906            field on the layer in addition to the classification itself.
907    
908            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
909            classification field from layer.
910    
911            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
912            classification field from layer. Split up tests and remove
913            *-imports. Fixes RTbug #1992.
914    
915            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
916    
917            * test/test_classification.py
918            (TestClassification.test_classification): Remove tests for methods
919            that no longer exist.
920    
921            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
922            __init__ no longer has a field parameter, use SetClassificationField.
923            (SetShapeStoreTests.test_sanity): Use layer object to get class
924            field info.
925    
926            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
927            SetClassificationField on layer to set class field info.
928    
929            * test/test_viewport.py: Renamed from test/test_view.py.
930    
931    2003-07-16  Jan-Oliver Wagner <[email protected]>
932    
933            * Doc/manual/thuban-manual.xml: Added authors and an initial
934            coarse structure.
935    
936    2003-07-15  Bernhard Herzog  <[email protected]>
937    
938            * test/support.py (FloatComparisonMixin): This is a mix-in class
939            and therefore should not be derived from any other class.
940    
941            * test/test_range.py (RangeTest): FloatComparisonMixin is a
942            mix-in, so derive from TestCase as well.
943    
944    2003-07-15  Bernhard Herzog  <[email protected]>
945    
946            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
947            draw_func handling a bit to remove one layer of indirection. This
948            makes the renderer about 10% faster in the non-classifying case
949            and the code a bit cleaner
950            (MapRenderer.draw_point_shape): Add the pen and brush parameters
951            and set them in the dc. Now the draw_point_shape method and
952            wxproj's draw_polygon_shape function have basically the same
953            signature so that both can be directly used as draw_func
954    
955    2003-07-15  Bernhard Herzog  <[email protected]>
956    
957            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
958            string values (in addition to the labels) as UTF 8
959    
960            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
961            values if the field type is string
962    
963            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
964            saving a session with non-ascii string classification values.
965    
966            * test/test_load.py (TestClassification.file_contents)
967            (TestClassification.test): Check for non-ascii values in string
968            classifications
969    
970    2003-07-14  Jonathan Coles   <[email protected]>
971    
972            * test/test_view.py: New. Tests for ViewPort.
973    
974    2003-07-14  Frank Koormann   <[email protected]>
975    
976            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
977            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
978    
979            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
980            unicode strings from session file: session title, map title and
981            projection name.
982            
983    2003-07-10  Jonathan Coles   <[email protected]>
984    
985            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
986            drag_stop, not drag_move when the mouse is released.
987    
988    2003-07-10  Jonathan Coles   <[email protected]>
989    
990            The most important part of this is the seperation of view.py into
991            two pieces. viewport.py now has a class called ViewPort which
992            contains all the non-wx parts of view.py and can therefore be
993            tested. view.py contains only the wx-specific parts and is fairly
994            simple.
995    
996            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
997            RTTbug #1992.
998            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
999            RTTbug #1992.
1000    
1001            * Thuban/Model/classgen.py (generate_singletons,
1002            generate_uniform_distribution, generate_quantiles):
1003            Added 'fixes' parameter so that property attributes can
1004            be held constant over the generated classification groups.
1005            (CustomRamp.GetProperties): Remove unused variables.
1006    
1007            * Thuban/Model/map.py (Map.SetProjection): Send the old
1008            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
1009            event.
1010    
1011            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
1012            parameter which is a list of records that restricts which
1013            records are saved. Fixes RTbug #1997.
1014    
1015            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1016            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
1017    
1018            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
1019            to allow the user to fix line color/width on generated groups.
1020            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
1021            functions to optionally fix group properties.
1022    
1023            * Thuban/UI/main.py (main): Set exception hook to the
1024            ShowExceptionDialog. Fixes RTbug #1993.
1025    
1026            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
1027            the table window when it is selectd to be shown.
1028    
1029            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
1030            Export Selection button and move the export buttons underneath
1031            the table.
1032            (QueryTableFrame.UpdateStatusText): Added event argument so
1033            that it can respond to grid selection events. The status text
1034            is now updated even when the table is not associated with a
1035            layer as was previously assumed.
1036            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
1037            UpdateStatusText responds to these events.
1038            (QueryTableFrame.OnSaveAs): Renamed to doExport.
1039            (QueryTableFrame.doExport): Helper function that saves the
1040            entire table, or selected rows, to a file.
1041            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
1042            Respond to export button events and call doExport.
1043    
1044            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
1045            the function doesn't return NULL without first setting a Python
1046            Error.
1047    
1048            * test/runtests.py (main): Only print "Unknown option" for
1049            unsupported options.
1050    
1051            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
1052            optional epsilon argument to specify floating point accuracy.
1053            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
1054            for each item test.
1055    
1056            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
1057            tests for saving selected records.
1058    
1059            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1060            tests for saving selected records.
1061    
1062            * test/test_map.py (TestMapWithContents.test_set_projection):
1063            MAP_PROJECTION_CHANGED events send the old projection.
1064    
1065            * test/test_session.py
1066            (TestSessionWithContent.test_forward_map_projection):
1067            MAP_PROJECTION_CHANGED events send the old projection.
1068    
1069            * test/test_table.py (TableTest): Update tests to use non-deprecated
1070            functions.
1071    
1072    2003-07-08  Bernhard Herzog  <[email protected]>
1073    
1074            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
1075            constants in the column objects are the standard ones defined in
1076            the table module.
1077    
1078            * test/test_transientdb.py
1079            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
1080            exporting transient tables as DBF works. This should catch the bug
1081            just fixed in TransientTableBase.Width.
1082    
1083    2003-07-08  Bernhard Herzog  <[email protected]>
1084    
1085            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
1086            interpolated colors correctly.
1087    
1088            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
1089            New. Test case for the fix in classgen.py
1090    
1091    2003-07-08  Bernhard Herzog  <[email protected]>
1092    
1093            * test/runtests.py (main): Make the default output less verbose
1094            and add a verbosity option (-v) to get the old output
1095    
1096    2003-07-08  Bernhard Herzog  <[email protected]>
1097    
1098            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
1099            0.9.
1100    
1101            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
1102            New. Return the join type
1103    
1104            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
1105            DTD
1106            (SessionSaver.write_data_containers): Save the join type for
1107            joined tables
1108    
1109            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
1110            namespace
1111            (SessionLoader.start_jointable): Handle the jointype attribute
1112    
1113            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
1114            as of Thuban 0.8. These are now tests to determine whether Thuban
1115            can still read files generated by Thuban 0.8
1116    
1117            * test/test_load.py (LoadSessionTest.dtd)
1118            (TestSingleLayer.file_contents)
1119            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1120            (TestLayerProjection.file_contents)
1121            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1122            (TestJoinedTable.file_contents)
1123            (TestLoadError.file_contents): Update for new DTD
1124            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
1125            for new join type attribute
1126    
1127            * test/test_save.py (SaveSessionTest.dtd)
1128            (SaveSessionTest.testEmptySession)
1129            (SaveSessionTest.testSingleLayer)
1130            (SaveSessionTest.testLayerProjection)
1131            (SaveSessionTest.testRasterLayer)
1132            (SaveSessionTest.testClassifiedLayer)
1133            (SaveSessionTest.test_dbf_table)
1134            (SaveSessionTest.test_joined_table): Update for new DTD
1135            (SaveSessionTest.test_joined_table): Add test for new join type
1136            attribute
1137    
1138    2003-07-04  Bernhard Herzog  <[email protected]>
1139    
1140            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
1141            function for table_to_dbf
1142            (table_to_dbf): Deal with names longer than the 10 character limit
1143    
1144            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1145            doc-string
1146            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
1147            long column names
1148    
1149    2003-07-03  Bernhard Herzog  <[email protected]>
1150    
1151            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
1152    
1153    2003-07-03  Bernhard Herzog  <[email protected]>
1154    
1155            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
1156            for the Thuban manual and README with some basic information about
1157            the manual
1158    
1159    2003-07-03  Bernhard Herzog  <[email protected]>
1160    
1161            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1162            Update doc-string
1163            (TransientJoinedTable.create): Do not modify the column objects of
1164            the input tables in place and copy all columns of the input tables
1165            into the joined table after all.
1166    
1167            * test/test_transientdb.py
1168            (TestTransientTable.test_transient_joined_table_same_column_name):
1169            Update to reflect the new behavior
1170            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1171            Update to reflect the new behavior
1172            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
1173            New test case for a bug which modified the column objects in place
1174    
1175    2003-07-02  Jonathan Coles   <[email protected]>
1176    
1177            * Thuban/Model/classgen.py (generate_singletons,
1178            generate_uniform_distribution, generate_quantiles,
1179            GenQuantiles0): Make sure maxValue isn't less than
1180            one, otherwise we could divide by zero.
1181    
1182            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1183            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1184            check the end classification groups against the
1185            proper property values.
1186            (ClassGenTest.doBoundsTest): New. Checks the first and
1187            last classification groups to make sure their properties
1188            are the correct upper and lower bounds for a color ramp.
1189    
1190    2003-07-02  Jonathan Coles   <[email protected]>
1191    
1192            * Thuban/Model/classgen.py (generate_singletons,
1193            generate_uniform_distribution, generate_quantiles,
1194            GenQuantiles0): The denominator was one to high when
1195            calculating the index for the ramp causing the index
1196            to never to reach one.
1197    
1198    2003-07-02  Jonathan Coles   <[email protected]>
1199    
1200            Changed the singature of ClassGroupRange.__init__ and
1201            ClassGroupRange.SetRange() so that the min/max values are
1202            passed as a tuple. This makes a better calling scheme for
1203            when a Range object is passed instead.
1204    
1205            * Thuban/Model/classgen.py: Fixed parameters to
1206            ClassGroupRange constructor.
1207    
1208            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1209            Consolidate the min/max parameters into a single _range which
1210            can either be a tuple or a Range object.
1211            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1212            into a single _range which can either be a tuple or a Range object.
1213    
1214            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1215            call to ClassGroupRange constructor to use a tuple.
1216    
1217            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1218            the classification instance variable to the new class
1219            before calling _set_layer otherwise subscribers to a
1220            LAYER_CHANGED event will not see any difference.
1221    
1222            * test/test_classification.py: Fix tests of ClassGroupRange
1223            so that they use the new signature.
1224    
1225            * test/test_load.py: Fix use of ClassGroupRange so that it
1226            uses the new signature.
1227    
1228            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1229            uses the new signature.
1230    
1231            * test/test_save.py: Fix use of ClassGroupRange so that it
1232            uses the new signature.
1233    
1234    
1235    2003-07-01  Jonathan Coles   <[email protected]>
1236    
1237            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
1238            Import used objects/class from color.
1239            (generate_singletons): We don't
1240            need the numGroups parameter anymore because we are using
1241            the new ramps with GetProperties().
1242            (generate_uniform_distribution): Use new ramp method
1243            GetProperties().
1244            (generate_quantiles, GenQuantiles0): Use new ramp method
1245            GetProperties().
1246            (CustomRamp.SetNumGroups): Removed. The ramps now map
1247            a value from 0 to 1 to class properties so the number
1248            of groups is not needed ahead of time.
1249            (CustomRamp.next): Removed. CustomRamp does not support
1250            interation anymore.
1251            (CustomRamp.GetProperties): Returns a ClassGroupProperties
1252            object based on the index value from 0 to 1 that is
1253            passed to it.
1254            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
1255            Made into instances of Monochromatic class instread of
1256            deriving from it.
1257            (HotToCold.SetNumGroups): Removed. See CustomRamp.
1258            (HotToCold.next): Removed. See CustomRamp.
1259    
1260            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
1261            (Classification.SetField, Classification.SetFieldType):
1262            Replaced with SetFieldInfo.
1263            (Classification.SetFieldInfo): New. Does a better job of
1264            what SetField and SetFieldType used to do by combining
1265            their function since they should really always be done
1266            at the same time.
1267            (Classification.SetLayer): Renamed to _set_layer.
1268            (Classification._set_layer): Should only be called from
1269            Layer's SetClassification. This does not cause a recursive
1270            call as SetLayer did because we know that Layer knows about
1271            the classification.
1272    
1273            * Thuban/Model/color.py: Fixes RTbug #1971.
1274            (_Transparent): Renamed from Transparent so it doesn't
1275            conflict with the module variable.
1276            (Transparent, Black): Renamed from Color.Transparent,
1277            Color.Black so they are not class variables.
1278    
1279            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
1280            (Layer.Destroy): We don't need to call SetClassification
1281            anymore to clear out the back reference in the classifcation
1282            to the layer. It's better to set it to None using _set_layer,
1283            and we won't be creating another clas object too.
1284            (Layer.SetClassification): Classification._set_layer is not
1285            recursive so remove all the locking variables. Also clean
1286            up the code so that it remains unchanged if something fails.
1287    
1288            * Thuban/Model/load.py: Fixes RTbug #1971.
1289            (SessionLoader.start_classification): Call
1290            Classification.SetFieldInfo().
1291    
1292            * Thuban/Model/save.py: Removed import of Color which wasn't
1293            being used.
1294    
1295            * Thuban/UI/classgen.py: Fixes RTbug #1972.
1296            (ClassGenDialog.__init__): Color ramps are now instances
1297            already so we don't need to create any new objects.
1298            (ClassGenDialog.OnOK): Check for numGroups is no longer
1299            necessary because we never use it.
1300    
1301            * Thuban/UI/classifier.py: Fixes RTbug #1971.
1302            (Classifier.__BuildClassification, Classifier.__SetGridTable):
1303            Call Classification.SetFieldInfo() instead of SetFieldType.
1304    
1305            * Thuban/UI/renderer.py: Fixes RTbug #1971.
1306    
1307            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
1308            (MapCanvas.__init__): Subscribe to the idle time event. Set
1309            background color to white.
1310            (MapCanvas.OnPaint): Set a flag indicating that we should
1311            render the map during idle time. If we already have a bitmap
1312            just draw it now.
1313            (MapCanvas.OnIdle): New. Render the map only during idle time.
1314            This also fixes a problem with the busy cursor under gtk.
1315    
1316            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
1317            Fix calls to generate_singletons because the signature changed.
1318    
1319            * test/test_classification.py: Fix color references and
1320            change calls to Classification.[SetField|SetFieldType] to
1321            SetFieldInfo.
1322    
1323            * test/test_load.py: Fix color references.
1324    
1325            * test/test_load_0_2.py: Fix color references.
1326    
1327            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
1328            Change calls to Classification.[SetField|SetFieldType] to
1329            SetFieldInfo.
1330    
1331    2003-07-01  Frank Koormann   <[email protected]>
1332    
1333            MERGE from the greater-ms3 branch.
1334    
1335            * test/test_transientdb.py
1336            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1337            New. Test join of two tables with partly equal column names.
1338    
1339            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
1340            If duplicates in left and right tables column names are found,
1341            append '_' (underscores) to the name until it is unique.
1342            Create always new internal names for the resulting table and reference
1343            columns in the join statement with <table>.<column>
1344    
1345    2003-07-01  Bernhard Herzog  <[email protected]>
1346    
1347            * test/test_transientdb.py
1348            (TestTransientTable.test_transient_joined_table_same_column_name):
1349            New. Test whether joining on columns with the same names in both
1350            tables works.
1351            
1352            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
1353            sure to use the right internal names even when joining on field
1354            with the same names in both tables. Also, detect duplicate names
1355            in the joined table correctly.
1356    
1357    2003-07-01  Frank Koormann   <[email protected]>
1358    
1359            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1360            Reverse List of layers to render in same order as in desktop legend.
1361    
1362    2003-06-30  Jonathan Coles   <[email protected]>
1363    
1364            * Thuban/version.py (make_tuple): Takes a version string
1365            and splits it into a tuple of at most three integers.
1366            Used make_tuple() to make tuple versions of the version
1367            numbers.
1368    
1369            * Thuban/UI/about.py: Add Thuban email addresses.
1370    
1371    2003-06-30  Jonathan Coles   <[email protected]>
1372    
1373            * Thuban/version.py: SQLite/PySQLite version dependencies
1374            were too high.
1375    
1376    2003-06-30  Jonathan Coles   <[email protected]>
1377    
1378            * Thuban/version.py: Update version to 0.8.1
1379            
1380            * MANIFEST.in: Added Projections so that default.proj is
1381            included.
1382    
1383    2003-06-26  Jonathan Coles   <[email protected]>
1384    
1385            New About box with lots more information including library
1386            versions and credits. More/better version checking before
1387            Thuban starts.
1388    
1389            * Thuban/UI/about.py: New. New About box that displays
1390            library version information and credits.
1391    
1392            * Thuban/version.py: Added new 'versions' dictionary which
1393            contains the verions of various libraries which are checked
1394            when the module loads.
1395            (verify_versions): Check all version numbers and returns
1396            a list of errors.
1397    
1398            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
1399            Reset the status of the buttons as the situation warrants,
1400            but in a better more reliable way by not relying on the
1401            current status to determine what needs to change.
1402    
1403            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
1404            (verify_versions): Remove most of the code since it is
1405            now in Thuban.version.verify_versions.o
1406    
1407            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
1408            About box in Thuban.UI.about.
1409    
1410            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
1411            Returns the version of gdal library being used as a string.
1412    
1413            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1414            Removed.
1415            (get_proj_version): Return the version of PROJ that the file
1416            was compiled with.
1417            (get_gtk_version): Return th version of GTK that the file
1418            was compiled with.
1419    
1420    2003-06-25  Jonathan Coles   <[email protected]>
1421    
1422            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
1423            of the SelectPropertiesDialog should be self so the window
1424            appears on top.
1425            (ClassGroupPropertiesCtrl.DoEdit): The parent
1426            of the SelectPropertiesDialog should be self so the window
1427            appears on top.
1428    
1429            * Thuban/UI/resource.py: Cleaned up how we determine file
1430            extensions.
1431            (GetImageResource): Return an wxImage from our Resources.
1432    
1433    2003-06-24  Jonathan Coles   <[email protected]>
1434    
1435            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1436            Check that a layer has a classification before trying
1437            to get it. Raster layers don't have classifications.
1438    
1439    2003-06-23  Jonathan Coles   <[email protected]>
1440            
1441            * setup.py: Add Resources/XML to resource list.
1442        
1443    2003-06-23  Jonathan Coles   <[email protected]>
1444    
1445            * setup.cfg: Fix copyright dates
1446        
1447    2003-06-23  Jonathan Coles   <[email protected]>
1448    
1449            * MANIFEST.in: Update with Resources/XML
1450    
1451            * setup.py: Don't include Locale resources yet as we don't
1452            have any and it causes problems building the distribution
1453            for Windows. Update version to 0.8.0.
1454    
1455            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
1456    
1457            * Thuban/UI/mainwindow.py: Add blank line at the end because
1458            file was not being read correctly building the Windows
1459            distribution.
1460    
1461    2003-06-23  Jonathan Coles   <[email protected]>
1462    
1463            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
1464    
1465            * Thuban/version.py: Temporarily update longversion for
1466            the 0.8 release so that it doesn't have the cvs revision.
1467    
1468    2003-06-23  Jonathan Coles   <[email protected]>
1469    
1470            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
1471            to make sure that we don't create reentrant possibilities with
1472            wxYield.
1473    
1474            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
1475            directly to avoid the wxSafeYield() call which generates an
1476            OnPaint event causing infinite recursion. Don't try to catch
1477            exception anymore. This was for before there were limits on map
1478            scaling.
1479    
1480    2003-06-23  Bernhard Herzog  <[email protected]>
1481    
1482            Bug fix for RT #1961:
1483    
1484            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
1485            Register DerivedShapestores with the session
1486    
1487            * Thuban/Model/session.py (Session.Tables): Make sure each table
1488            is only listed once.
1489    
1490            * test/test_load.py (TestJoinedTable.test): Add check_format call.
1491            Update file contents to match the one written out.
1492    
1493    2003-06-20  Bernhard Herzog  <[email protected]>
1494    
1495            * test/xmlsupport.py (SaxEventLister.startElementNS)
1496            (SaxEventLister.endElementNS): Do not include the qname. Python
1497            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
1498            is (presumably incorrectly) None, whereas it's a string with the
1499            element name in the later versions.
1500    
1501            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
1502            (TestEventList.test_even_list_namespace): Update tests to reflect
1503            the new behaviour
1504            (TestEventList.test_even_list_id_normalization): Fix doc-string
1505    
1506    2003-06-20  Jonathan Coles   <[email protected]>
1507    
1508            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
1509            by deriving classes to determine if that layer supports shapes.
1510            (Layer): Override HasShapes and return true.
1511    
1512            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
1513            instead of a direct call to wx[Begin|End]CusyCursor().
1514            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
1515            table data.
1516    
1517            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
1518            New. Wrappers around the wxWindows functions that allow us to
1519            make additional calls such as wxYield which gives the native
1520            system a chance to update the cursor correctly.
1521    
1522            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
1523            instead of a direct call to wx[Begin|End]CusyCursor().
1524    
1525            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
1526            instead of a direct call to wx[Begin|End]CusyCursor().
1527            (MapCanvas.find_shape_at): Check if the current search layer
1528            support shapes, otherwise go on to the next layer.
1529    
1530            * test/test_layer.py: Add tests in each type of layer for
1531            HasClassification() and HasShapes()
1532    
1533    2003-06-20  Jonathan Coles   <[email protected]>
1534    
1535            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
1536            turning on the busy cursor to allow the system to change the
1537            cursor before we begin painting. This fixes a problem that
1538            was occuring only under GTK. Fixes RTbug #1840.
1539    
1540    2003-06-20  Bernhard Herzog  <[email protected]>
1541    
1542            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
1543            version.
1544    
1545            * Thuban/Model/save.py (sort_data_stores): New. Make topological
1546            sort of the data sources so they can be written with sources that
1547            data sources that depend on other data sources come after the
1548            sources they depend on.
1549            (SessionSaver.__init__): Add idmap instance variable to map from
1550            objects to the ids used in the file.
1551            (SessionSaver.get_id, SessionSaver.define_id)
1552            (SessionSaver.has_id): New. Methods to manage the idmap
1553            (SessionSaver.write): Use thuban-0.8.dtd
1554            (SessionSaver.write_session): Add a namespace on the session and
1555            write out the data sources before the maps.
1556            (SessionSaver.write_data_containers): New. Write the data
1557            containers.
1558            (SessionSaver.write_layer): Layer elements now refer to a
1559            shapestore and don't contain filenames anymore.
1560    
1561            * Thuban/Model/load.py (LoadError): Exception class to raise when
1562            errors in the files are discovered
1563            (SessionLoader.__init__): Define dispatchers for elements with a
1564            thuban-0.8 namespace too.
1565            (SessionLoader.check_attrs): New helper method to check and
1566            convert attributes
1567            (AttrDesc): New. Helper class for SessionLoader.check_attrs
1568            (SessionLoader.start_fileshapesource)
1569            (SessionLoader.start_derivedshapesource)
1570            (SessionLoader.start_filetable, SessionLoader.start_jointable):
1571            Handlers for the new elements in the new fileformat
1572            (SessionLoader.start_layer): Handle the shapestore attribute in
1573            addition to filename.
1574            (SessionLoader.start_table, SessionLoader.end_table): Removed.
1575            They were never used in the old formats and aren't needed for the
1576            new.
1577    
1578            * Thuban/Model/session.py (Session.DataContainers): New method to
1579            return all "data containers", i.e. shapestores and tables
1580    
1581            * test/xmlsupport.py (SaxEventLister.__init__)
1582            (SaxEventLister.startElementNS, sax_eventlist): Add support to
1583            normalize IDs.
1584    
1585            * test/test_xmlsupport.py
1586            (TestEventList.test_even_list_id_normalization): New test case for
1587            id normalization
1588    
1589            * test/test_load.py (LoadSessionTest.check_format): Use ID
1590            normalization
1591            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
1592            class atrributes used for ID normalization
1593            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
1594            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
1595            file format
1596            (TestJoinedTable): New test for loading sessions with joined
1597            tables.
1598            (TestLoadError): New. Test whether missing required attributes
1599            cause a LoadError.
1600    
1601            * test/test_save.py (SaveSessionTest.thubanids)
1602            (SaveSessionTest.thubanidrefs): New class attributes for ID
1603            normalization in .thuban files.
1604            (SaveSessionTest.compare_xml): Use id-normalization.
1605            (SaveSessionTest.testEmptySession)
1606            (SaveSessionTest.testLayerProjection)
1607            (SaveSessionTest.testRasterLayer)
1608            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
1609            (SaveSessionTest.testLayerProjection): The filename used was the
1610            same as for testSingleLayer. Use a different one.
1611            (SaveSessionTest.test_dbf_table)
1612            (SaveSessionTest.test_joined_table): New test cases for saving the
1613            new data sources structures.
1614            (TestStoreSort, MockDataStore): Classes to test the sorting of the
1615            data stores for writing.
1616    
1617            * test/runtests.py: Add CVS keywords
1618    
1619    2003-06-20  Jonathan Coles   <[email protected]>
1620    
1621            * test/test_session.py
1622            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
1623            Use the cultural_landmark-point.dbf file for the store so that
1624            the table rows and shape count match.
1625    
1626    2003-06-20  Jonathan Coles   <[email protected]>
1627    
1628            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
1629            an exception if the number of shapes is different from the
1630            number of rows in the table. Address RTbug #1933.
1631    
1632            * test/test_layer.py (TestLayer.test_derived_store): Add
1633            a test for the new exception in DerivedShapeStore.__init__.
1634    
1635            * test/support.py (FloatTestCase): Removed since there is
1636            already FloatComparisonMixin. Fixes RTbug #1954.
1637            (FloatComparisonMixin.assertFloatEqual): Include test for
1638            infinity that was part of FloatTestCase.
1639    
1640            * test/test_range.py (RangeTest): Inherit from
1641            support.FloatComparisonMixin now that we don't have
1642            support.FloatTestCase.
1643    
1644    2003-06-20  Bernhard Herzog  <[email protected]>
1645    
1646            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
1647            the implementation in xmlsupport instead.
1648            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
1649    
1650            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
1651            of test_save
1652    
1653    2003-06-20  Bernhard Herzog  <[email protected]>
1654    
1655            * test/test_load.py (LoadSessionTest.check_format): New helper
1656            method to make sure the test files we load might have been written
1657            by the current thuban version.
1658            (ClassificationTest.TestLayers, TestSingleLayer.test)
1659            (TestLayerVisibility.test, TestClassification.test)
1660            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
1661            Add check_format() calls and fix the thuban data to match the data
1662            that would be written by saving the session loaded from it.
1663    
1664            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
1665            the same class and function in test_save.
1666    
1667            * test/test_xmlsupport.py (TestEventList): New. test cases for
1668            sax_eventlist
1669    
1670    2003-06-20  Bernhard Herzog  <[email protected]>
1671    
1672            * Resources/XML/thuban.dtd: Add comment about which versions of
1673            Thuban are covered by this DTD
1674            (map): Fix content model for layers and raster layers. There can
1675            be any number or layers and raster layers in any order.
1676    
1677    2003-06-20  Jonathan Coles   <[email protected]>
1678    
1679            This is mainly about fixing RTbug #1949.
1680    
1681            * Thuban/Model/classification.py: Remove "from __future__"
1682            import statement since python 2.2 is the earliest supported
1683            version.
1684    
1685            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
1686            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
1687            depending on the units this projection *forwards* into.
1688    
1689            * Thuban/Model/save.py (SessionSaver.write_classification):
1690            Remove unnecessary use of lambdas and nested functions.
1691    
1692            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
1693            adjustment here if the map projection uses degrees.
1694    
1695            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
1696            scale adjust code since it is now done before calling
1697            this method. Don't do anything if the map projection
1698            is None.
1699    
1700    2003-06-19  Bernhard Herzog  <[email protected]>
1701    
1702            Move version specific load tests to their own file.
1703    
1704            * test/test_load.py: Expand the doc-string to explain a bit how to
1705            handle file format changes.
1706            (TestClassification.test): Update the docstring as this test is
1707            not about Thuban 0.2 anymore.
1708    
1709            * test/test_load_0_2.py: New file with the load tests for thuban
1710            files created with Thuban 0.2 and earlier.
1711    
1712    2003-06-19  Bernhard Herzog  <[email protected]>
1713    
1714            Add XML validation to some of the tests. Validation will only be
1715            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
1716            To make the DTD available to the test cases it's moved into
1717            Resources/XML
1718    
1719            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
1720            for versions up to and including 0.2. Two slight changes: added an
1721            encoding specification and fixed the comment which refered to
1722            GRASS, not Thuban
1723    
1724            * test/xmlsupport.py: New support module for tests involving XML.
1725            Currently there's a mix-in class for XML validation.
1726    
1727            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
1728    
1729            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
1730            so that we can validate the
1731            (SaveSessionTest.testEmptySession)
1732            (SaveSessionTest.testSingleLayer)
1733            (SaveSessionTest.testSingleLayer)
1734            (SaveSessionTest.testLayerProjection)
1735            (SaveSessionTest.testRasterLayer)
1736            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
1737    
1738            * test/runtests.py (main): Call print_additional_summary instead
1739            of print_garbage_information
1740    
1741            * test/support.py (resource_dir): New function to return the
1742            "Resource" subdirectory
1743            (print_additional_summary): New function to combine several
1744            summary functions
1745            (run_tests): Use print_additional_summary instead of calling
1746            print_garbage_information directly
1747    
1748    2003-06-19  Bernhard Herzog  <[email protected]>
1749    
1750            * Doc/thuban.dtd (classification): Correct the content model of
1751            the classification element.
1752            (projection): Add the "name" attribute
1753    
1754    2003-06-19  Frank Koormann   <[email protected]>
1755    
1756            MERGE from the greater-ms3 branch.
1757    
1758            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
1759            scale if projection is latlong to get better estimate.
1760    
1761            Fix problem of hidden properties dialog under windows after double
1762            click on layer tree:
1763            The tree control always gets an Expanded / Collapsed event after
1764            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
1765            raises the already displayed window.
1766    
1767            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
1768            raiseProperties initialized to prevent endless loops
1769            (LegendTree._OnItemActivated): Depending on self.raiseProperties
1770            simply raise the properties or open the dialog and issue a second
1771            event.
1772    
1773    2003-06-18  Jonathan Coles   <[email protected]>
1774    
1775            * setup.py: Fix a few problems that occured under Windows.
1776    
1777    2003-06-18  Jonathan Coles   <[email protected]>
1778    
1779            When Thuban loaded the map was redrawn twice because the
1780            legend was being opened after the mainwindow was created
1781            and not during its creation. This meant the map was drawn
1782            initially and then had to be redrawn when the legend
1783            caused the display to change. Now the legend is opened
1784            in the mainwindow constructor which resolves this issue.
1785    
1786            Also, although we were checking for the existence of
1787            gdal and gdalwarp modules, the gdalwarp extension was
1788            still being compiled (which may fail if the system doesn't
1789            have gdal installed). the build_ext command to setup.py
1790            now accepts the flags --with-gdal and --without-gdal.
1791            If --without-gdal is specified setup.py will try to
1792            use the gdal parameters specified by gdal-config. Under
1793            windows, those parameters have to be set in setup.py
1794            as with proj4 an wxWindows.
1795    
1796            * setup.py: Use a list instead of seperate variables for
1797            extension parameters so we can create a generic function
1798            that runs an appropriate *-config script.
1799            (run_cs_script): Renamed from run_wx_script and modified
1800            to accept a second argument which is a list of lists to
1801            be filled in by the values returned from running the command.
1802            (thuban_build_ext): New. Extends the build_ext command and
1803            provides the options --with-gdal/--without-gdal which then
1804            optionally includes the gdalwarp extension.
1805    
1806            * Thuban/Model/resource.py: First check if we can import
1807            the gdalwarp Thuban extension before checking for gdal.
1808            Also added some comments.
1809            
1810            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
1811            the map is None which may be the case if none has been loaded
1812            yet.
1813    
1814            * Thuban/UI/main.py (main): Remove call to ShowLegend.
1815    
1816            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
1817    
1818            * Thuban/UI/renderer.py: Check for gdal support before importing
1819            gdalwarp.
1820            (MapRenderer.render_map): Only try to optimize if we have gdal
1821            support otherwise nothing will get drawn.
1822    
1823            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
1824            during startup before a map has been created. Check if map is None
1825            before using it and do nothing if it is.
1826    
1827    2003-06-17  Jonathan Coles   <[email protected]>
1828    
1829            Fix the problem with raster layers under Windows that caused
1830            Thuban to crash. The view should respond to layer projection
1831            changed events to update the display. Changes to a projection
1832            should not cause the map to be set to full extent.
1833            
1834            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1835            current_map_proj to remember the current map projection so that
1836            when the projection changes we know what the previous projection
1837            was.
1838            (MapCanvas.SetMap): Unsubscribe and subscribe to
1839            LAYER_PROJECTION_CHANGED events.
1840            (MapCanvas.projection_changed): Split into two methods that respond
1841            to map and layer projection changes.
1842            (MapCanvas.map_projection_changed): New. Takes the current view and
1843            projects it using the new projection. This does not cause the
1844            map to be redrawn at full extent.
1845            (MapCanvas.layer_projection_changed): New. Cause a redraw which
1846            will draw each layer in its new projection.
1847            
1848            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
1849            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
1850            under Windows.
1851            
1852            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
1853            to twice sizeof(void*) because there are two digits for each
1854            hex byte.
1855    
1856    2003-06-16  Bernhard Herzog  <[email protected]>
1857    
1858            Update to the layer interface: Direct access to the table,
1859            shapetable, shapefile and filename attributes is now actively
1860            deprecated by issuing deprecation warnings for all places where
1861            this happens.
1862    
1863            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
1864            to the instance variables table, shapetable, shapefile and
1865            filename via __getattr__ so that we can issue a deprecation
1866            warning.
1867            (Layer.SetShapeStore): Don't set the deprecated instance variables
1868            any more
1869            (Layer.SetShapeStore): Don't use deprecated layer instance
1870            variables
1871            (Layer.Destroy): No need to explicitly remove the instance
1872            variables any more
1873            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
1874            instance variables
1875    
1876            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1877            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
1878            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
1879            use deprecated layer instance variables
1880    
1881            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
1882            deprecated layer instance variables
1883    
1884            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1885            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
1886            instance variables
1887    
1888            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
1889            deprecated layer instance variables
1890    
1891            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
1892            deprecated layer instance variables
1893    
1894            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
1895            deprecated layer instance variables
1896    
1897            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
1898            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
1899            variables
1900    
1901            * test/runtests.py (main): Turn Thuban's deprecation warnings into
1902            errors so that they're cought by the tests
1903    
1904            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
1905            layer instance variables
1906    
1907    2003-06-16  Jonathan Coles   <[email protected]>
1908    
1909            Fix a problem under Windows whereby if the user double-clicks on a
1910            layer in the legend that tree item will expand or collapse as well
1911            as open the layer properties dialog. The state of the tree item
1912            should not be affected.
1913    
1914            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
1915            preventExpandCollapse and subscribe to expanding and collapsing
1916            events.
1917            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
1918            collapsing events and will veto the event if it has been triggered
1919            by the user double clicking on a layer.
1920            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
1921            that an expanding/collapsing event should be vetoed.
1922    
1923    2003-06-13  Bernhard Herzog  <[email protected]>
1924    
1925            * Thuban/UI/classifier.py (Classifier.OnClose)
1926            (Classifier.map_layers_removed)
1927            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
1928            in OnClose and not in map_layers_removed or
1929            layer_shapestore_replaced to make sure it always happens when the
1930            dialog is closed
1931    
1932    2003-06-13  Jonathan Coles   <[email protected]>
1933    
1934            This puts back a fix for Windows where a panel is needed so that
1935            the background of the table view appears correctly.
1936    
1937            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
1938            object that can be used by derived classes to place any
1939            controls (including the grid) onto.
1940            (QueryTableFrame.__init__): Use the panel as the parent window
1941            for all the controls. Reparent the grid so that the panel is
1942            the parent. Call UpdateStatusText() to correctly initialize
1943            the status bar.
1944    
1945    2003-06-13  Jonathan Coles   <[email protected]>
1946    
1947            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
1948            from wxFrame (as opposed to wxDialog like the other classes)
1949            but otherwise behaves like the other classes. This is needed
1950            for the TableView which isn't really a dialog and needs to
1951            have a status bar and control buttons.
1952    
1953            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
1954            instance variable to keep track of how many rows are selected.
1955            Subscribe once to the the events we are interested in.
1956            (ThubanGrid.OnRangeSelect): Only handle event if event handling
1957            hasn't been turned off.
1958            (ThubanGrid.OnSelectCell): Only handle event if event handling
1959            hasn't been turned off.
1960            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
1961            as an event listener (which changes the event handler stack)
1962            simply set an instance variable to False. This is checked in
1963            the event handlers.
1964            (ThubanGrid.GetNumberSelected): Return the number of currently
1965            selected rows.
1966            (TableFrame): Inherit from ThubanFrame so we can have a
1967            status bar and control buttons.
1968            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
1969            Explicitly set which items are selected in the operator choice and
1970            action choice so there is always a valid selection. Fixes RTbug #1941.
1971            Subscribe to grid cell selection events so we can update the
1972            status bar.
1973            (QueryTableFrame.UpdateStatusText): Update the status bar with
1974            how many rows are in the grid, how many columns, and how many
1975            rows are selected.
1976            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
1977            Call UpdateStatusText when cells are (de)selected.
1978            (QueryTableFrame.OnQuery): Use the string value in the value
1979            combo if either the selected item index is 0 or if the string
1980            cannot be found in the predefined list (this happens if the
1981            user changes the text). Fixes RTbug #1940.
1982            Only turn off the grid event listeners if there a query comes
1983            back with a none empty list of ids. in the case that the list
1984            is empty this causes a grid.ClearSelection() call to actually
1985            clear the grid selection which causes the selected items in
1986            the map to be deselected. Fixes RTbug #1939.
1987    
1988            * test/test_save.py (XMLWriterTest.Encode): Check return values.
1989            Fixes RTbug #1851.
1990    
1991    2003-06-13  Bernhard Herzog  <[email protected]>
1992    
1993            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
1994            self.selected_shape with the current selection to make sure the
1995            contents of the dialog are up to date when it's shown for the
1996            first time.
1997            The dialog used to work without this by luck. The recent fix to
1998            the connector module 'broke' a 'feature' the identify view was
1999            relying on, i.e that subscribing to a message in response to
2000            receiving a message of that type would mean that the new
2001            subscriber would also be called for the same message.
2002            
2003    2003-06-12  Jonathan Coles   <[email protected]>
2004    
2005            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
2006            the image is rendered. Fixes RTbug #1937.
2007    
2008    2003-06-12  Jonathan Coles   <[email protected]>
2009    
2010            * Thuban/Lib/fileutil.py: As is done under Windows, create the
2011            user directory if it doesn't exist on a posix system.
2012            Fixes RTbug #1815.
2013    
2014            * Thuban/Model/resource.py (get_user_proj_files): Moved the
2015            called to get_application_dir here, so that the directory
2016            will only be called if this method is invoked.
2017    
2018            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
2019            the projfilepath if no projection is selected.
2020    
2021    2003-06-12  Jonathan Coles   <[email protected]>
2022    
2023            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
2024            the scalebar if the current map has no projection set.
2025    
2026            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
2027            projfilepath label to just the basename of the projection file
2028            rather than include the entire path.
2029    
2030            * Thuban/Model/resource.py: Fix missed proj functions that
2031            needed to be renamed.
2032    
2033    2003-06-12  Jonathan Coles   <[email protected]>
2034    
2035            * Thuban/Model/classification.py: Removed assert statements that
2036            tested if the variable was an instance of Color.
2037    
2038            * Thuban/Model/color.py (Color): Remove commented code that isn't
2039            used.
2040            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
2041            Fixes RTbug #1835.
2042            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
2043            Needed now that the class doesn't inherit from Color.
2044    
2045    2003-06-12  Jonathan Coles   <[email protected]>
2046    
2047            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
2048            check unicode strings.
2049    
2050            * test/test_layer.py: Check for existence of gdal.
2051    
2052    2003-06-12  Jonathan Coles   <[email protected]>
2053        
2054            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
2055            that was in load.py
2056    
2057            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
2058            that was in save.py
2059    
2060    2003-06-12  Jonathan Coles   <[email protected]>
2061    
2062            This is largely a collection of bug fixes. We also handle the
2063            case where gdal is not on the system. The XMLReader and XMLWriter
2064            classes were moved into there own files to resolve some circular
2065            import references and because they shouldn't really be in the
2066            file that is dediciated to reading/writing session files since
2067            they are also used elsewhere.
2068    
2069            * Thuban/Model/classgen.py: Renamed functions to follow the
2070            function_names_with_underscores style. Fixes RTbug #1903.
2071            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
2072    
2073            * Thuban/Model/layer.py: Import gdal only if it available.
2074            (RasterLayer): Handle the case where the gdal library is unavailable.
2075            Addresses RTbug #1877.
2076    
2077            * Thuban/Model/load.py (XMLReader): Moved into seperate file
2078            xmlreader.py.
2079    
2080    2003-06-12  Jonathan Coles   <[email protected]>
2081    
2082            This is largely a collection of bug fixes. We also handle the
2083            case where gdal is not on the system. The XMLReader and XMLWriter
2084            classes were moved into there own files to resolve some circular
2085            import references and because they shouldn't really be in the
2086            file that is dediciated to reading/writing session files since
2087            they are also used elsewhere.
2088    
2089            * Thuban/Model/classgen.py: Renamed functions to follow the
2090            function_names_with_underscores style. Fixes RTbug #1903.
2091            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
2092    
2093            * Thuban/Model/layer.py: Import gdal only if it available.
2094            (RasterLayer): Handle the case where the gdal library is unavailable.
2095            Addresses RTbug #1877.
2096    
2097            * Thuban/Model/load.py (XMLReader): Moved into seperate file
2098            xmlreader.py.
2099    
2100            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
2101            file xmlwriter.py.
2102    
2103            * Thuban/Model/resource.py: Renamed functions to following the
2104            function_names_with_underscores style.
2105            (has_gdal_support): New function that returns true if the gdal
2106            library is available. Addresses RTbug #1877.
2107    
2108            * Thuban/UI/application.py (ThubanApplication.OpenSession):
2109            Display a message box if the gdal library is not available, but
2110            only if there are any layers that would use it. Addresses RTbug #1877.
2111    
2112            * Thuban/UI/classgen.py: Use renamed projection resource functions.
2113            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
2114            when using integers versus floats.
2115    
2116            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
2117            determine if the "Add Image Layer" menu option should be
2118            greyed out or not. Addresses RTbug #1877.
2119    
2120            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
2121    
2122            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
2123            optimize if a raster layer is visible. Fixes RTbug #1931.
2124            Only draw the raster layer if the gdal library is available.
2125            Addresses RTbug #1877.
2126    
2127            * test/test_classgen.py: Add tests for generate_singletons,
2128            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
2129            (test_calculate_quantiles): Fix some tests to catch the new
2130            ValueError that is raised.
2131    
2132            * test/test_proj.py: Use renamed projection resource functions.
2133    
2134            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
2135            test for saving classified layers. Fixes RTbug #1902.
2136            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
2137    
2138    2003-06-12  Jan-Oliver Wagner <[email protected]>
2139    
2140            Fix for http://intevation.de/rt/webrt?serial_num=1900.
2141    
2142            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
2143    
2144            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
2145            multiplechoicedialog.py rather than from the wxPython library.
2146    
2147    2003-06-11  Frank Koormann  <[email protected]>
2148    
2149            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
2150            update.
2151    
2152    2003-06-11  Frank Koormann  <[email protected]>
2153    
2154            * Thuban/Lib/fileutil.py (get_application_dir): New function to
2155            determine the absolute .thuban/thuban directory under
2156            "posix" (os.expanduser) and "nt" (read AppData registry key).
2157    
2158            * Thuban/Model/resource.py: Use get_application_dir
2159    
2160            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
2161            Use get_application_dir.
2162    
2163    2003-06-10  Bernhard Herzog  <[email protected]>
2164    
2165            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
2166            the messages MAP_LAYERS_REMOVED messages
2167            (LayerTableFrame.OnClose): Unsubscribe from it.
2168            (LayerTableFrame.map_layers_removed): New. Receiver for
2169            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
2170            dialog is showing is removed.
2171    
2172    2003-06-10  Bernhard Herzog  <[email protected]>
2173    
2174            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
2175            of the receivers list so that unsubscribing in a receiver doesn't
2176            modify it while iterating over it.
2177    
2178            * test/test_connector.py
2179            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
2180            unsubscribing in a receiver works correctly. See docstring for
2181            details
2182    
2183    2003-06-10  Bernhard Herzog  <[email protected]>
2184    
2185            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
2186            message.
2187    
2188            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
2189            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
2190            LAYER_CHANGED will still be sent if the classification changes.
2191    
2192            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
2193            parameter so we can subscribe to some of its messages
2194            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
2195            and the layer's LAYER_SHAPESTORE_REPLACED
2196            (Classifier.unsubscribe_messages): New. Unsubscribe from message
2197            subscribed to in __init__
2198            (Classifier.map_layers_removed)
2199            (Classifier.layer_shapestore_replaced): receivers for the messages
2200            subscribed to in __init__. Unsubscribe and close the dialog
2201    
2202            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
2203            the map to the Classifier dialog
2204    
2205            * test/test_layer.py (SetShapeStoreTests): Derive from
2206            SubscriberMixin as well so we can test messages
2207            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
2208            messages
2209            (SetShapeStoreTests.tearDown): Clear the messages again
2210            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
2211            for the modified flag too
2212            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
2213            to check whether SetShapeStore sets the modified flag
2214            (SetShapeStoreTests.test_set_shape_store_different_field_name)
2215            (SetShapeStoreTests.test_set_shape_store_same_field)
2216            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
2217            Add tests for the messages. This checks both the new
2218            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
2219    
2220    2003-06-06  Jan-Oliver Wagner <[email protected]>
2221    
2222            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
2223            the menu items.
2224    
2225    2003-06-05  Frank Koormann  <[email protected]>
2226    
2227            * Thuban/UI/identifyview.py (IdentifyView.__init__):
2228            Layout reimplemented without panel. Make life easier to fit the list
2229            in the dialog.
2230    
2231    2003-06-05  Frank Koormann  <[email protected]>
2232    
2233            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
2234            once on initialisation (Former implementation resulted in multiple
2235            entries for each projection).
2236            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
2237            if set, select the projection found under the specified name. This
2238            overwrites any other selection estimate.
2239            Removed projchoice filling from this method.
2240            (ProjFrame._OnSave, ProjFrame._OnAddToList):
2241            Updated call of ProjFrame.__FillAvailList
2242            (LCCPanel._DoLayout): Moved parameter controls in more common order.
2243    
2244            * Resources/Projections/defaults.proj: Extended defaults representing
2245            various common European projections.
2246    
2247    2003-06-05  Frank Koormann  <[email protected]>
2248    
2249            * Thuban/UI/identifyview.py (IdentifyView.__init__):
2250            Use ListCtrl instead of GridCtrl
2251    
2252            * Thuban/Model/resource.py:
2253            Guess location of .thuban directory from tempdir parent directory.
2254    
2255            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
2256            Guess location of .thuban directory from tempdir parent directory.
2257    
2258    2003-06-04  Bernhard Herzog  <[email protected]>
2259    
2260            Do not cache the values returned by the tree widget's
2261            GetFirstChild and GetNextChild methods because it led to lots of
2262            segfaults. The new way requires more brute force but is more
2263            reliable.
2264    
2265            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
2266            variable layer2id
2267            (LegendTree.find_layer): New method to do with brute force what
2268            layer2id tried to accomplish
2269            (LegendTree._OnMsgLayerChanged)
2270            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
2271            Use find_layer instead of layer2id
2272            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
2273            update layer2id anymore
2274            (LegendTree._OnMsgMapLayersRemoved)
2275            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
2276    
2277    2003-06-03  Thomas Koester  <[email protected]>
2278    
2279            * Thuban/Model/classgen.py (GenQuantiles0): New function.
2280    
2281    2003-06-02  Bernhard Herzog  <[email protected]>
2282    
2283            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
2284            New commands.
2285            (main_menu): Add the new commands.
2286            (MainWindow.TableRename): New. Implementation of the table_rename
2287            command.
2288            (MainWindow.RenameLayer): New. Implementation of the layer_rename
2289            command.
2290    
2291            * Thuban/Model/session.py (Session.AddTable): call self.changed to
2292            set the modified flag
2293    
2294            * test/test_session.py (TestSessionSimple.test_add_table): Test
2295            whether the modified flag is set properly
2296    
2297            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
2298            instead of issue so that the modified flags get updated.
2299    
2300            * test/test_base.py (SomeTitledObject): Derive from Modifiable
2301            instead of Publisher to reflect reality better and to accomodate
2302            the fact that SetTitle now calls changed instead of issue
2303    
2304    2003-06-02  Bernhard Herzog  <[email protected]>
2305    
2306            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
2307            acquisition has to happen before the try in a try-finally.
2308    
2309    2003-06-02  Bernhard Herzog  <[email protected]>
2310    
2311            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
2312            possible that a layer is removed that is not currently selected in
2313            the legend so don't check for this.
2314    
2315    2003-05-30  Bernhard Herzog  <[email protected]>
2316    
2317            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
2318            variables to None that have direct or indirect references to
2319            shapefiles or dbf files to make sure that they do go away and the
2320            files are closed.
2321    
2322    2003-05-30  Bernhard Herzog  <[email protected]>
2323    
2324            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
2325            availImgListIndices when a new image list is created
2326            
2327    2003-05-30  Bernhard Herzog  <[email protected]>
2328    
2329            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
2330            changing_selection to indicate whether the LegendTree code itself
2331            is currently changing the selection
2332            (LegendTree.normalize_selection): New method to normalize the
2333            selection by selecting the layer item even if the user clicked on
2334            the classification.
2335            (LegendTree._OnSelChanged): normalize the selection. This works
2336            around a bug in wx which doesn't keep track of the selection
2337            properly when subtrees are deleted.
2338    
2339    2003-05-30  Bernhard Herzog  <[email protected]>
2340    
2341            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
2342            maximum and minimum scale factors.
2343    
2344            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
2345            changes in classgen.py
2346    
2347    2003-05-30  Jonathan Coles   <[email protected]>
2348    
2349            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
2350            all the methods functions. Fixes RTBug #1903.
2351    
2352            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
2353            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
2354            RTBug #1907.
2355    
2356            * Thuban/UI/classgen.py: Use classgen functions that were part
2357            of the ClassGenerator class. Put try/finally blocks around
2358            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
2359            RTBug #1904.
2360    
2361            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
2362    
2363            * Thuban/UI/legend.py: The legend was cleared and repopulated any
2364            time something changed which caused some state to be lost such
2365            as which children were expanded or collapsed. Fixes RTBug #1901.
2366            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
2367            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
2368            the legend but not in the map.
2369            (LegendTree.__FillTree): Move main functionality out into smaller
2370            methods that can be used by other methods.
2371            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
2372            if they are available.
2373            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
2374            that we override the wxTreeCtrl method. Iterate over children
2375            and call __RemoveLayer.
2376            (LegendTree.__AddLayer): New. Add a new layer to the legend.
2377            (LegendTree.__RemoveLayer): Remove a layer from the legend.
2378            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
2379            Should only be called with the id of a layer branch.
2380            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
2381            Returns the root item or creates one if necessary.
2382    
2383            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
2384            ProjectRasterFile with tuple arguments instead of strings.
2385    
2386            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
2387            with try/finally. Fixes RTBug #1904.
2388    
2389            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
2390            with try/finally. Fixes RTBug #1904.
2391            (MapCanvas.FitSelectedToWindow): If a single point is selected
2392            simply center it on the display. Fixes RTBug #1849.
2393    
2394            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
2395            to be compiled as a standalone app. Now the code can only be
2396            called from Python which simplifies the parameter passing.
2397            (ProjectRasterFile): Handle Python arguments. Remove code that
2398            checks for a destination dataset. Add more clean up code.
2399    
2400            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
2401            TestMapWithContents.test_lower_layer_bottom):
2402            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
2403            Fixes RTBug #1907.
2404    
2405            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
2406            extent to the map when the legend is toggled. Fixes RTBug #1881.
2407    
2408    2003-05-29  Jan-Oliver Wagner <[email protected]>
2409    
2410            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
2411            unsubscribes all that is subcribed in __init__.
2412    
2413    2003-05-28  Bernhard Herzog  <[email protected]>
2414    
2415            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
2416            (MainWindow.CanDuplicateLayer): New methods to implement the
2417            Layer/Duplicate command.
2418            (layer_duplicate command): New.
2419            (main_menu): Add layer_duplicate to the Layer menu.
2420    
2421    2003-05-28  Bernhard Herzog  <[email protected]>
2422    
2423            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
2424            renderer so that NULL/None values get displayed differently (by a
2425            gray rectangle).
2426            (TableGrid.__init__): Override the default renderers
2427    
2428    2003-05-28  Bernhard Herzog  <[email protected]>
2429    
2430            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
2431            classification to "None" if the type of the field has changed.
2432    
2433            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
2434            test for the Layer.SetShapeStore method
2435    
2436    2003-05-28  Jan-Oliver Wagner <[email protected]>
2437    
2438            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
2439            does not necessarily have a filename).
2440    
2441    2003-05-28  Jan-Oliver Wagner <[email protected]>
2442    
2443            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
2444            sort the selection list for the dialog.
2445    
2446    2003-05-28  Frank Koormann  <[email protected]>
2447    
2448            * extensions/thuban/wxproj.cpp
2449            (project_point): Removed cast to int for projected point coordinates.
2450            (shape_centroid): Return last point if all polygon vertices fall
2451            to one point.
2452    
2453    2003-05-28  Bernhard Herzog  <[email protected]>
2454    
2455            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
2456            with layers that don't have shapestores, i.e. raster layers.
2457    
2458    2003-05-28  Bernhard Herzog  <[email protected]>
2459    
2460            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
2461            when determining the title from the filename.
2462    
2463            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
2464            reflect changes in the way the title is derived from the filename
2465    
2466    2003-05-28  Frank Koormann  <[email protected]>
2467    
2468            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
2469            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
2470    
2471    2003-05-27  Bernhard Herzog  <[email protected]>
2472    
2473            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
2474            delegate SelectedLayer.
2475            (MainWindow.LayerUnjoinTable): Implement.
2476            (_can_unjoin): New. Helper function for the sensitivity of the
2477            layer/unjoin command.
2478    
2479            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
2480            (DerivedShapeStore.OrigShapeStore): New. Return the original
2481            shapestore. Used to figure out how to unjoin.
2482            (DerivedShapeStore.Shapefile): Fix a typo.
2483    
2484    2003-05-27  Bernhard Herzog  <[email protected]>
2485    
2486            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
2487            well
2488            (JoinDialog.__init__): Use the layer parameter and only build the
2489            left choice when a layer is given
2490            (JoinDialog.OnJoin): Handle layer joins as well
2491            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
2492            that the user selects the "Select..." item. The sensitivitly
2493            updating is now in update_sensitivity
2494            (JoinDialog.y): New method to refactor the sensitivity update of
2495            the join button into its own method.
2496    
2497            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
2498    
2499    2003-05-27  Bernhard Herzog  <[email protected]>
2500    
2501            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
2502            iff there are unreferenced tables in the session
2503    
2504    2003-05-27  Bernhard Herzog  <[email protected]>
2505    
2506            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
2507    
2508            * Thuban/Model/session.py (Session.UnreferencedTables): New method
2509            to return tables that are not referenced by other tables or shape
2510            stores and can be removed.
2511            (Session.RemoveTable): Issue a TABLE_REMOVED message after
2512            removing the table
2513    
2514            * Thuban/UI/mainwindow.py: Remove unused imports
2515            (MainWindow.TableClose): Implement.
2516    
2517            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
2518            messages so that the frame will be automatically closed when a new
2519            session is opened or the table is removed.
2520            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
2521            __init__
2522            (TableFrame.close_on_session_replaced)
2523            (TableFrame.close_on_table_removed): New. Subscribers that close
2524            the window
2525    
2526            * test/test_session.py (TestSessionMessages.test_remove_table)
2527            (TestSessionSimple.test_remove_table): Move the test to
2528            TestSessionSimple and add test for the TABLE_REMOVED message
2529            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
2530            (TestSessionSimple.test_unreferenced_tables) New. Test for the
2531            UnreferencedTables method.
2532            (UnreferencedTablesTests): New. Class with some more sophisticated
2533            tests for UnreferencedTables.
2534    
2535    2003-05-27  Frank Koormann  <[email protected]>
2536    
2537            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
2538            display has some unwanted side effects. Removed again.
2539    
2540    2003-05-27  Frank Koormann  <[email protected]>
2541    
2542            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
2543    
2544            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
2545    
2546    2003-05-27  Jan-Oliver Wagner <[email protected]>
2547    
2548            * test/test_menu.py (MenuTest.test): Added test for
2549            Menu.RemoveItem().
2550    
2551            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
2552            the menu.
2553    
2554    2003-05-27  Frank Koormann  <[email protected]>
2555            
2556            Nonmodal dialogs without parent (i.e. they can fall behind the main
2557            window)
2558    
2559            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
2560            all dialogs in the dialogs dictionary and the canvas.
2561    
2562            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
2563            parent, i.e. can fall behind other windows.
2564            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
2565            dictionary before removing it.
2566    
2567            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
2568    
2569            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
2570            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
2571            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
2572    
2573    2003-05-27  Bernhard Herzog  <[email protected]>
2574    
2575            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
2576            tableview dialog
2577            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
2578            Also, don't use the table's titles as the dialog names. The titles
2579            aren't guaranteed to be unique.
2580            (MainWindow.TableOpen): Open a table view dialog after opening the
2581            table
2582    
2583    2003-05-27  Bernhard Herzog  <[email protected]>
2584    
2585            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
2586            effect can be achieved by simply closing the window showing the
2587            table.
2588            (MainWindow.TableHide): Removed.
2589            (main_menu): Removed "table_hide"
2590    
2591    2003-05-27  Frank Koormann  <[email protected]>
2592    
2593            Fix legend tree display problems under Win32
2594    
2595            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
2596            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
2597            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
2598    
2599            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
2600    
2601    2003-05-27  Jan-Oliver Wagner <[email protected]>
2602    
2603            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
2604            'after' now allows to insert separators almost anywhere in the menu.
2605    
2606    2003-05-27  Frank Koormann  <[email protected]>
2607    
2608            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
2609            "S" of selection box label to hint on hot key (Alt-S). Works under
2610            Win32 but is ignored under GTK.
2611    
2612    2003-05-26  Frank Koormann  <[email protected]>
2613    
2614            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
2615            Center Choices.
2616    
2617    2003-05-26  Bernhard Herzog  <[email protected]>
2618    
2619            Remove the Precision methods again. They're too DBF specific to be
2620            part of the table interface and they're only used in table_to_dbf
2621            anyway.
2622            
2623            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
2624            fixed precision of 12 for doubles.
2625            (TransientTableBase.Precision): Removed
2626            (AutoTransientTable.Width): Delegate to self.table.
2627    
2628            * Thuban/Model/table.py (DBFTable.Precision)
2629            (MemoryTable.Precision): Removed.
2630            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
2631            (table_to_dbf): Use a fixed precision of 12 for floats unless the
2632            column object specifies something else.
2633    
2634            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
2635            test for table_to_dbf
2636    
2637    2003-05-26  Bernhard Herzog  <[email protected]>
2638    
2639            * test/test_transientdb.py
2640            (TestTransientTable.run_iceland_political_tests): Fix a comment.
2641    
2642    2003-05-26  Bernhard Herzog  <[email protected]>
2643    
2644            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
2645            implementation. Mark parts of the file format strings for
2646            localization.
2647    
2648            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
2649            file and add the table to the tables managed by the session
2650    
2651            * test/test_session.py (TestSessionSimple.test_open_table_file):
2652            New. test case for OpenTableFile
2653    
2654    2003-05-26  Jan-Oliver Wagner <[email protected]>
2655    
2656            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
2657            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
2658            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
2659            Replace the true/false of wxWindows by True/False of Python 2.2.1.
2660    
2661    2003-05-26  Jan-Oliver Wagner <[email protected]>
2662    
2663            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
2664            already a selection present, update the grid accordingly.
2665    
2666            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
2667            resizeable and increase its initial size.
2668    
2669    2003-05-26  Frank Koormann  <[email protected]>
2670    
2671            Table export functionality
2672    
2673            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
2674            Return width (in characters) for a column.
2675            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
2676            (table_to_dbf): Write table to dbf file.
2677            (table_to_csv): Write table to csv file.
2678    
2679            * Thuban/Model/transientdb.py (TransientTableBase.Width,
2680            TransientTableBase.Precision): Return column width and precision.
2681    
2682            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
2683            or table_to_csv depending on file selection.
2684    
2685            * test/test_dbf_table.py:
2686            Test table_to_dbf (extension of former part of test).
2687    
2688            * test/test_csv_table.py:
2689            Test table_to_csv.
2690    
2691    2003-05-23  Jan-Oliver Wagner <[email protected]>
2692    
2693            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
2694            Use QueryTableFrame instead of TableFrame.
2695    
2696            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
2697            table window with 'Layer Table:' instead of 'Table:'.
2698    
2699    2003-05-23  Jan-Oliver Wagner <[email protected]>
2700    
2701            Give all tables a title via mix-in TitledObject.LayerShowTable
2702    
2703            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
2704            only if it exists.
2705    
2706            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
2707            and call its init-method with a default title. Remove Title() method.
2708    
2709            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
2710            AutoTransientTable): mix-in TitledObject and call its init-method with
2711            a default title. Remove Title() method.
2712    
2713    2003-05-23  Bernhard Herzog  <[email protected]>
2714    
2715            * Thuban/Model/session.py (Session.AddShapeStore): Define
2716            AddShapeStore analogously to AddTable.
2717    
2718            * test/test_session.py (TestSessionSimple.test_add_shapestore):
2719            New. Test for AddShapeStore
2720    
2721    2003-05-23  Jan-Oliver Wagner <[email protected]>
2722    
2723            Introducing QueryTableFrame and a very coarse ShowTable implementation.
2724    
2725            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
2726            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
2727            The latter implements the selection GUI without dependency on a layer.
2728            LayerTableFrame now is derived from QueryTableFrame and connects
2729            to a layer.
2730    
2731            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
2732            implementation that still needs work.
2733    
2734            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
2735    
2736    2003-05-22  Frank Koormann  <[email protected]>
2737    
2738            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
2739            Added "outer_join = False" as optional parameter.
2740            (TransientJoinedTable.create): If outer join is true, perform a
2741            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
2742            the left table. Records not matching are filled with 0 / None.
2743    
2744            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
2745            (JoinDialog.OnJoin): Consider outer join check box.
2746    
2747    2003-05-22  Bernhard Herzog  <[email protected]>
2748    
2749            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
2750            somewhat safer way. Storing the traceback in a local variable can
2751            lead to memory leaks
2752    
2753    2003-05-22  Bernhard Herzog  <[email protected]>
2754    
2755            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
2756            the wxMessageDialog's Destroy() method.
2757    
2758    2003-05-22  Frank Koormann  <[email protected]>
2759    
2760            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
2761            TransientTable.Title()
2762    
2763    2003-05-22  Frank Koormann  <[email protected]>
2764    
2765            Join Dialog, initial version.
2766    
2767            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
2768    
2769            * Thuban/UI/join.py (JoinDialog): Functional implementation of
2770            former framework. Renamed Table1/Table2 to LeftTable/RightTable
2771            in all occurences.
2772    
2773            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
2774            Typo fixed.
2775    
2776    2003-05-22  Bernhard Herzog  <[email protected]>
2777    
2778            Give the tables titles so that the GUI can display more meaningful
2779            names. For now the titles are fixed but depend on e.g. filenames
2780            or the titles of the joined tables.
2781    
2782            * Thuban/Model/transientdb.py (TransientTable.Title)
2783            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
2784    
2785            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
2786    
2787            * test/test_transientdb.py
2788            (TestTransientTable.test_auto_transient_table_title): New. Test
2789            for the Title method
2790            (TestTransientTable.test_transient_joined_table)
2791            (TestTransientTable.test_transient_table): Add test for the Title
2792            methods
2793    
2794            * test/test_memory_table.py (TestMemoryTable.test_title): New.
2795            Test for the Title method
2796    
2797            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
2798            the Title method
2799    
2800    2003-05-22  Bernhard Herzog  <[email protected]>
2801    
2802            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
2803            Provide a better way to destroy the layers
2804            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
2805            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
2806            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
2807            the new way to destroy the layers.
2808            (TestLayer.test_derived_store): New. Test for using a layer with a
2809            DerivedShapeStore
2810    
2811            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
2812            filename if the shape store actually has one.
2813    
2814    2003-05-22  Bernhard Herzog  <[email protected]>
2815    
2816            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
2817            for the filename
2818    
2819            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
2820            for the FileName method
2821            (TestDBFTableWriting.test_write): Fix spelling of filename
2822    
2823    2003-05-22  Thomas Koester  <[email protected]>
2824    
2825            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
2826            from SciParam that now really is immutable.
2827    
2828    2003-05-22  Frank Koormann  <[email protected]>
2829    
2830            Layer Top/Bottom placement added to legend.
2831    
2832            * Thuban/UI/legend.py
2833            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
2834            bound to tool events.
2835            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
2836            New, methods binding the event methods with the map methods.
2837    
2838            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
2839            layer at top/bottom of layer stack.
2840    
2841            * Resources/Bitmaps/top_layer.xpm: New button icon.
2842    
2843            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
2844    
2845    2003-05-22  Bernhard Herzog  <[email protected]>
2846    
2847            * Thuban/Model/session.py (Session.RemoveTable): New method to
2848            remove tables
2849    
2850            * test/test_session.py (TestSessionSimple.test_remove_table): New.
2851            Test for RemoveTable
2852    
2853    2003-05-22  Thomas Koester  <[email protected]>
2854    
2855            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
2856            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
2857    
2858    2003-05-22  Bernhard Herzog  <[email protected]>
2859    
2860            Implement a way to discover dependencies between tables and
2861            shapestores.
2862    
2863            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
2864            (TransientJoinedTable.Dependencies)
2865            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
2866            interface
2867            (TransientJoinedTable.__init__): Keep tack of the original table
2868            objects in addition to the corresponding transient tables.
2869    
2870            * Thuban/Model/table.py (DBFTable.Dependencies)
2871            (MemoryTable.Dependencies): New. Implement the dependencies
2872            interface
2873    
2874            * Thuban/Model/data.py (ShapeTable): New. Helper class for
2875            ShapefileStore
2876            (ShapefileStore.__init__): Use ShapeTable instead of
2877            AutoTransientTable
2878            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
2879            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
2880            methods for filename and type
2881            (ShapefileStore.Dependencies): New. Implement the dependencies
2882            interface
2883            (DerivedShapeStore): New class to replace SimpleStore. The main
2884            difference to SimpleStore is that it depends not on a shapefile
2885            but another shapestore which expresses the dependencies a bit
2886            better
2887            (SimpleStore.__init__): Add deprecation warning.
2888    
2889            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
2890            Test for the Dependencies method.
2891    
2892            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
2893            New. Test for the Dependencies method.
2894    
2895            * test/test_transientdb.py
2896            (TestTransientTable.test_auto_transient_table_dependencies): New.
2897            Test for the Dependencies method.
2898            (TestTransientTable.test_transient_joined_table): Add test for the
2899            Dependencies method.
2900    
2901            * test/test_session.py (TestSessionSimple.setUp)
2902            (TestSessionSimple.tearDown): New. Implement a better way to
2903            destroy the sessions.
2904            (TestSessionSimple.test_initial_state)
2905            (TestSessionSimple.test_add_table): Bind session to self.session
2906            so that it's destroyed by tearDown
2907            (TestSessionSimple.test_open_shapefile): New. Test for
2908            OpenShapefile and the object it returns
2909    
2910    2003-05-22  Bernhard Herzog  <[email protected]>
2911    
2912            * Thuban/Model/session.py (Session.AddTable): New method to
2913            register tables with the session.
2914            (Session.Tables): Return the tables registered with AddTable too.
2915    
2916            * test/test_session.py (TestSessionSimple.test_add_table): New.
2917            Test case for the AddTable method
2918    
2919    2003-05-22  Frank Koormann  <[email protected]>
2920    
2921            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
2922            lower right corner, center labels for selections, initialize controls
2923            in reasonable order for keyboard navigation.
2924    
2925            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
2926            (ProjFrame.__DoOnProjAvail): Determine position of current projection
2927            using the wxListBox.FindString() method. Still a problem (#1886)
2928    
2929            * Thuban/UI/classifier.py
2930            (Classifier.__init__, SelectPropertiesDialog.__init__)
2931    
2932            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
2933            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
2934            different classification types from here to __init__.
2935            (GenUniquePanel.__init__): Set the column width of the first field
2936            in the Field ListCtrl to the full width.
2937    
2938            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
2939            Button to 'Export'. Center Buttons in Selection Box, set Focus to
2940            Grid.
2941            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
2942            changes focus to the Selection when pressing "Alt-S".
2943    
2944            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
2945            the text if not visible. The italic font sometimes exceeds the
2946            rendering area.
2947    
2948    2003-05-21  Jonathan Coles   <[email protected]>
2949    
2950            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
2951            to OnClose so that Thuban closes correctly.
2952    
2953            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
2954            DockFrame.OnClose, not DockFrame._OnClose.
2955    
2956    2003-05-21  Jonathan Coles   <[email protected]>
2957    
2958            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
2959            references to 'inf' and use new Range __init__ to pass floats
2960            directly rather than converting them to strings first.
2961            Fixes RTBug #1876.
2962    
2963            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
2964            Use new Range ___init__ to pass floats.
2965    
2966            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
2967            filename is a valid image file. Throw IOError otherwise.
2968    
2969            * Thuban/Model/range.py: Brought over new Range from SciParam that
2970            is immutable and has an __init__ which can accept floats.
2971    
2972            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
2973            into try block. AddLayer doesn't throw any exceptions anymore.
2974            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
2975            try block.
2976    
2977            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
2978            the first item in choices. Fixes RTBug #1882.
2979    
2980            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
2981            has gone to 0 which is a serious problem. abort.
2982            (MapRenderer.draw_raster_layer): Catch IOError seperately and
2983            print the error from GDAL.
2984    
2985            * Thuban/UI/tableview.py (TableGrid.__init__): Call
2986            ToggleEventListeners to turn on listening.
2987            (TableGrid.ToggleEventListeners): New. Turns event listening on
2988            and off so as to prevent excessive messages.
2989            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
2990            to suppress excessive messages when selecting many rows.
2991            Fixes RTBug #1880.
2992    
2993            * Thuban/UI/view.py: Added checks against if scale == 0. This
2994            is a serious problem that can occur when an image without
2995            geo data is loading and causes the map projection bounds to
2996            go to infinity. Right now, the solution is to simply try
2997            to recover.
2998    
2999            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
3000            to set the MFILEReceiver attributes even if the data is NULL.
3001    
3002            * extensions/thuban/gdalwarp.cpp: Improved the error handling
3003            and passed GDAL messages back up to the Python layer. Also
3004            tried to fix some memory leaks that were present in the original
3005            utility but didn't matter because the program aborted.
3006    
3007            * test/test_range.py: Copied over tests from SciParam. Removed
3008            tests against importing. Fixes RTBug #1867.
3009    
3010    2003-05-21  Bernhard Herzog  <[email protected]>
3011    
3012            * test/test_load.py: Remove unused imports and restructure the
3013            test code
3014            (LoadSessionTest): Split into one class for each test and turn
3015            LoadSessionTest itself into the base class for all such session
3016            tests.
3017            (ClassificationTest): New base class for load tests that test
3018            classifications
3019            (TestSingleLayer, TestLayerVisibility, TestClassification)
3020            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
3021            for the individual tests
3022    
3023            * test/support.py (FileLoadTestCase.filename): New base class for
3024            file loading tests
3025    
3026    2003-05-21  Jan-Oliver Wagner <[email protected]>
3027    
3028            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
3029            Mercator' to 'UTM Zone 32' as a more convenient example.
3030            Added 'Gauss Krueger Zone 6'.
3031    
3032            * Data/iceland_sample_raster.thuban: political polygon now
3033            filled transparent to have the raster image visible at once.
3034    
3035    2003-05-21  Frank Koormann  <[email protected]>
3036    
3037            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
3038            OnClose() to keep in sync with extensions. Internally Thuban
3039            still uses "underscored" names.
3040    
3041    2003-05-20  Jonathan Coles   <[email protected]>
3042    
3043            This puts back Raster layer support. These layers support projections
3044            through the GDAL library. Currently, the CVS version is being used.
3045            There are no Debian packages available although this may change soon.
3046            A GDAL driver was extended to support writing to memory rather to
3047            files.
3048    
3049            There is still some work that needs to be done, such as some error
3050            handling when loading invalid images or when there is a problem
3051            projecting the image. This putback simply checks in the majority
3052            of the work.
3053    
3054            * setup.py: Add gdalwarp library extension.
3055    
3056            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
3057            Defaults to False, but can be overridden by subclasses if they
3058            support classification.
3059            (RasterLayer): New. Defines a new layer that represents an
3060            image.
3061    
3062            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
3063            tag handler.
3064            (SessionLoader.start_layer): Encode the filename.
3065            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
3066            New. Supports reading a rasterlayer tag.
3067    
3068            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
3069    
3070            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
3071            get a string in Latin1. If we get such as string convert it to
3072            unicode first, otherwise leave if alone before encoding.
3073            (SessionSaver.write_layer): Add support for writing both Layers
3074            and RasterLayers.
3075    
3076            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
3077            The right argument may not be a string, it could also be a Column.
3078    
3079            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
3080            Make initial window size 600x400. Fixes RTBug #1872.
3081    
3082            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
3083            the dialog is constructed so that we can support layers that
3084            do not have classifications.
3085            (Classifier._OnTry): Only build a classification if the layer
3086            supports one.
3087    
3088            * Thuban/UI/legend.py: Change all checks that a layer is an
3089            instance of Layer into checks against BaseLayer.
3090            (LegendTree.__FillTreeLayer): Only add children to a branch if
3091            the layer supports classification.
3092    
3093            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
3094            MainWindow.OpenSession): Don't proceed with an action if the
3095            user chooses Cancel when they are asked to save changes.
3096            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
3097            user to select an image file. Create a new RasterLayer and add
3098            it to the map.
3099    
3100            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
3101            for rendering RasterLayer layers.
3102            (MapRenderer.draw_raster_layer): Actually method that calls
3103            the GDALWarp python wrapper and constructs an image from the
3104            data returned.
3105    
3106            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
3107            Choices symbols to match those used in the table query method.
3108            Replace deprecated method calls on table with new method names.
3109    
3110            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
3111            how small the scale can get. This still needs more testing.
3112    
3113            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
3114            Provides a driver to output in .bmp format.
3115    
3116            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
3117            New. Provides IO routines which write to memory, rather than a file.
3118    
3119            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
3120            of the gdalwarp utility provided in GDAL. Added function calls
3121            that can be accessed from python.
3122    
3123            * Data/iceland_sample_raster.thuban: New. Sample file that uses
3124            a raster layer.
3125    
3126            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
3127            layer image data.
3128    
3129            * Doc/thuban.dtd: Added rasterlayer attribute definition.
3130    
3131            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
3132            tests associated with the raster layer code.
3133    
3134            * test/test_transientdb.py
3135            (TestTransientTable.test_auto_transient_table_query): Added a test
3136            for using a Column object as the "right" parameter to a query.
3137    
3138    2003-05-19  Frank Koormann  <[email protected]>
3139    
3140            * Thuban/version.py (get_changelog_date):
3141            Catch exceptions if ChangeLog does not exist.
3142    
3143            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
3144    
3145    2003-05-19  Frank Koormann  <[email protected]>
3146    
3147            Extended version information for Thuban
3148    
3149            * Thuban/version.py: New, version information for Thuban: Last
3150            modification date and last ChangeLog entry date.
3151    
3152            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
3153            information: Display Thuban, wxPython and Python version.
3154    
3155    2003-05-16  Bernhard Herzog  <[email protected]>
3156    
3157            * Thuban/Model/save.py: Remove some unused imports including the
3158            __future__ import for nested_scopes as Thuban relies on Python 2.2
3159            now.
3160            (XMLWriter.encode): Remove the special case for a None argument.
3161            In the saver encode is always called with a string argument.
3162    
3163    2003-05-16  Bernhard Herzog  <[email protected]>
3164    
3165            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
3166            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
3167            of the bug was that e.g. float("1.2") would fail. Thuban now
3168            requires 2.4.x.
3169            
3170    2003-05-16  Frank Koormann   <[email protected]>
3171    
3172            Printing enhancement and WMF export (under Win32)
3173    
3174            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
3175            ScreenRenderer. Renders Map, Legend and Scalebar for export.
3176            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
3177            PrintRender.
3178    
3179            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
3180            to fullfil information needed for PrinterRenderer.
3181            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
3182            (MapCanvas.Print): Adapted to new MapPrintout.
3183            (OutputTransform): General calculations to transform from canvas
3184            coordinates to export/printing devices.
3185    
3186            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
3187            new method_command to call ExportMap, with platform dependency (only
3188            __WXMSW__)
3189      
3190            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
3191            of scalebar drawing area as new parameters.
3192            
3193            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
3194    
3195            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
3196            Update to extended scalebar.DrawScalebar header.
3197    
3198            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
3199    
3200            * test/test_scalebar.py: Made test executable as standalone.
3201    
3202    2003-05-16  Bernhard Herzog  <[email protected]>
3203    
3204            * Thuban/Model/table.py (Table): Remove this compatibility alias
3205            for DBFTable.
3206    
3207            * test/test_table.py: Import DBFTable as Table because that alias
3208            doesn't exist anymore.
3209    
3210            * Thuban/UI/classgen.py: Remove some unused imports
3211    
3212    2003-05-14  Jonathan Coles   <[email protected]>
3213    
3214            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
3215            Fix docstring.
3216            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
3217            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
3218            values of the supplied range to determine the beginning and end
3219            bounds of the generated classes.
3220    
3221            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
3222            do not have a leading 0 (.5 is now accepted as well as 0.5).
3223    
3224            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
3225            call to ClassGenerator.GenUniformDistribution.
3226    
3227            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
3228            layout bug with the 'Projection' label.
3229    
3230            * test/support.py (FloatTestCase): New. Needed for the Range tests.
3231    
3232            * test/test_range.py: New. Imported from SciParam.
3233    
3234    2003-05-12  Jonathan Coles   <[email protected]>
3235    
3236            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
3237            to table.UniqueValues() with calls that retrieve all the values
3238            from the table. This will need to be replaced by a method on table
3239            which can simply return the list (perhaps more efficiently).
3240    
3241    2003-05-12  Jonathan Coles   <[email protected]>
3242    
3243            The return value of ClassGenerator.CalculateQuantiles has changed.
3244            Refer to the documentation for details.
3245    
3246            * test/test_classgen.py: Modified Quantile tests to use the
3247            new return values.
3248    
3249            * Thuban/Model/classgen.py
3250            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
3251            use new return values from CalculateQuantiles to produce the correct
3252            range bounds in the Classification.
3253            (ClassGenerator.CalculateQuantiles): Add more comments describing
3254            the return values and parameters. Make minor adjustments to improve
3255            the legibility of the code. Fix problem with adjusted not being set
3256            in most cases.
3257    
3258    2003-05-12  Frank Koormann <[email protected]>
3259            
3260            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
3261            and latin1. Fixes #1851 finally.
3262    
3263    2003-05-09  Jonathan Coles   <[email protected]>
3264    
3265            * test/test_classgen.py: New. Tests the Quantile algorithm.
3266    
3267            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
3268            Clean up debugging statement, add comments, fix a small bug in the
3269            returned adjusted percentiles.
3270            
3271    2003-05-09  Jonathan Coles   <[email protected]>
3272    
3273            Introduces Range class from SciParam into the ClassGroupRange class,
3274            and such ranges can now be saved and loaded from disk.
3275    
3276            Quantiles are now available in the Classification Generator.
3277    
3278            Initial support for building Queries on a table. Doesn't do anything
3279            but run some tests.
3280    
3281            * Thuban/Model/classification.py: Explicit imports.
3282            (ClassGroupRange): Use the Range class to store the underlying
3283            range information. The interface remains the same, except for
3284            GetRange(), and you can also supply a Range object as the min
3285            parameter to SetRange or __init__.
3286    
3287            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
3288            string appropriately for use in Thuban. Fixes RTbug #1851.
3289            (SessionLoader.end_projection): Handle the context of the
3290            projection tag a bit better by looking at what objects are not
3291            None. There was an assumption that a projection tag for a map
3292            could occur before any layers.
3293            (SessionLoader.start_clrange): Provide backward compatibility for
3294            reading min/max values as well as the new range parameter.
3295    
3296            * Thuban/Model/map.py: Explicit imports.
3297    
3298            * Thuban/Model/resource.py: Import _.
3299            (ProjFileSaver.write): write header using projfile.dtd.
3300    
3301            * Thuban/Model/save.py: Explicit imports.
3302            (XMLWriter.encode): New. Encode the given string from a format
3303            used by Thuban into UTF-8. Fixes RTbug #1851.
3304    
3305            * Thuban/UI/classgen.py: Explicit imports.
3306            (ClassGenDialog.__init__): Clean up the code and add support
3307            for Quantiles.
3308            (ClassGenDialog.OnOK): Add support for Quantiles.
3309            (GenQuantilesPanel): New. Input panel for Quantiles.
3310            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
3311            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
3312    
3313            * Thuban/Model/classgen.py: New. Contains all the classes named above.
3314    
3315            * Thuban/UI/classifier.py: Explicit imports.
3316            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
3317            ClassTable.SetValueAsCustom): Reworked to use new Range class.
3318    
3319            * Thuban/UI/legend.py: Explicit imports.
3320    
3321            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
3322            a Table menu and associated method calls.
3323            (MainWindow.choose_color): Removed. No longer needed.
3324    
3325            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
3326            should be disabled if no projection is selected in the available
3327            list.
3328    
3329            * Thuban/UI/renderer.py: Explicit imports.
3330    
3331            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
3332            with correctly selecting the rows and issuing the right events.
3333            Be sure to call Skip() to allow the grid to do some of its own
3334            handling which allows the rows to actually be selected.
3335            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
3336            selecting multiple shapes.
3337            (LayerTableFrame): Support for building Queries.
3338            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
3339    
3340            * Thuban/UI/tree.py: Explicit imports.
3341    
3342            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
3343            table view can call it.
3344    
3345            * test/test_classification.py: Explicit imports.
3346            (TestClassification.test_ClassGroupRange): Fix test for new
3347            Range class.
3348    
3349            * Doc/thuban.dtd: Add range parameter for clrange.
3350    
3351            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
3352            object in ClassGroupRange, and also uesd for inputting ranges in
3353            the classifer table and elsewhere.
3354    
3355            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
3356            yet.
3357    
3358    2003-05-09  Frank Koormann <[email protected]>
3359    
3360            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
3361    
3362    2003-05-08  Frank Koormann <[email protected]>
3363    
3364            Coding style updates
3365    
3366            * test/test_scalebar.py: Replaced tab indentation by spaces.
3367    
3368            * Thuban/UI/scalebar.py: Explicit imports.
3369    
3370    2003-05-08  Frank Koormann <[email protected]>
3371    
3372            * Thuban/UI/scalebar.py
3373            (ScaleBar.DrawScalebar): Format string bug fixed.
3374    
3375    2003-05-08  Frank Koormann <[email protected]>
3376    
3377            Reorganization of scalebar component (no wx in Thuban/Model)
3378    
3379            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
3380            (deriveInterval):
3381            Calculate scalebar interval and unit which fits in width for scale.
3382            (roundInterval): Round float.
3383    
3384            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
3385    
3386            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
3387    
3388            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
3389    
3390    2003-05-08  Frank Koormann <[email protected]>
3391    
3392            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
3393            Initialize ScaleBar with canvas.map
3394    
3395            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
3396            round intervals to display smarter lengths
3397            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
3398            layer. If the maps has no projection applied grey the scalebar.
3399    
3400    2003-05-07  Frank Koormann <[email protected]>
3401            
3402            Basic Scalebar features added.
3403    
3404            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
3405    
3406            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
3407            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
3408            and the renderer.
3409    
3410            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
3411    
3412            * Thuban/UI/messages.py: SCALE_CHANGED added.
3413    
3414    2003-05-07  Bernhard Herzog  <[email protected]>
3415    
3416            * Thuban/Model/session.py (Session.__init__): New instance
3417            variable shapestores to hold a list of all open shapestore objects
3418            (Session.ShapeStores): New. Accessor method for the shapestores
3419            list.
3420            (Session._add_shapestore, Session._clean_weak_store_refs): New.
3421            Internal methods to maintain the shapestores list.
3422            (Session.Tables): New. Return all tables open in the session.
3423            (Session.OpenShapefile): Insert the new ShapeStore into the
3424            shapestores list.
3425    
3426            * test/test_session.py (TestSessionSimple.test_initial_state): Add
3427            tests for ShapeStores and Tables
3428            (TestSessionWithContent.test_shape_stores)
3429            (TestSessionWithContent.test_tables): New. Test cases for
3430            ShapeStores and Tables
3431    
3432    2003-05-07  Bernhard Herzog  <[email protected]>
3433    
3434            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
3435            Add comments about the optimizations used.
3436            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
3437            Implement the ReadValue table interface method.
3438    
3439            * test/test_transientdb.py
3440            (TestTransientTable.run_iceland_political_tests)
3441            (TestTransientTable.test_transient_joined_table): Add tests for
3442            ReadValue
3443    
3444    2003-05-07  Frank Koormann <[email protected]>
3445    
3446            * Resources/Bitmaps/fulllayerextent.xpm,
3447            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
3448            new icons.
3449    
3450    2003-05-06  Bernhard Herzog  <[email protected]>
3451    
3452            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
3453            New. Simply delegate to the transient table's version.
3454    
3455            * test/test_transientdb.py
3456            (TestTransientTable.test_auto_transient_table_query): New. Test
3457            case for AutoTransientTable's SimpleQuery
3458    
3459    2003-05-06  Bernhard Herzog  <[email protected]>
3460    
3461            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
3462            Implement a simple query method for the query dialog
3463            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
3464            the row index or shapeid.
3465            (TransientTable.create): Insert the right value of the row index
3466            (TransientJoinedTable.create): Copy the row index of the left
3467            table to the joined result table
3468    
3469            * test/test_transientdb.py
3470            (TestTransientTable.test_transient_table_read_twice): Fix
3471            doc-string
3472            (TestTransientTable.test_transient_table_query): New. Test for the
3473            SimpleQuery method
3474    
3475    2003-05-06  Bernhard Herzog  <[email protected]>
3476    
3477            Convert all table users to use the new table interface. This only
3478            covers Thuban itself, not GREAT-ER or other applications built on
3479            Thuban yet, so the compatibility interface stays in place for the
3480            time being but it now issues DeprecationWarnings.
3481    
3482            Finally, the new Table interface has a new method, HasColumn.
3483    
3484            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
3485            issue deprecation warnings when they're. The warnings refer to the
3486            caller of the method.
3487            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
3488            for the deprecation warnings
3489    
3490            * test/test_table.py: Ignore the deprecation warnings for the old
3491            table in the tests in this module. The purpose of the tests is to
3492            test the old interface, after all.
3493    
3494            * test/test_transientdb.py
3495            (TestTransientTable.run_iceland_political_tests): Use the
3496            constants for the types. Add a test for HasColumn
3497            (TestTransientTable.test_transient_joined_table): Adapt to new
3498            table interface. Add a test for HasColumn
3499            (TestTransientTable.test_transient_table_read_twice): Adapt to new
3500            table interface
3501    
3502            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
3503            Adapt to new table interface
3504    
3505            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
3506            new table interface
3507    
3508            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
3509            (RecordTable.SetTable): Adapt to new table interface
3510    
3511            * Thuban/UI/classifier.py (Classifier.__init__)
3512            (Classifier.__init__): Adapt to new table interface
3513    
3514            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
3515            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
3516            to new table interface
3517    
3518            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
3519            (AutoTransientTable.HasColumn): Implement the new table interface
3520            method
3521            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
3522            (AutoTransientTable.UniqueValues): Adapt to new table interface
3523    
3524            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
3525            Adapt to new table interface
3526    
3527            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
3528            simplify opening shapefiles a bit easier.
3529            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
3530            (TestLayer.test_point_layer): Use the new helper method
3531            (TestLayer.test_get_field_type): New. Test for the GetFieldType
3532            method
3533    
3534            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
3535            the new table method
3536    
3537            * test/test_memory_table.py (TestMemoryTable.test_has_column):
3538            Test for the new table method HasColumn
3539    
3540    2003-05-06  Jonathan Coles   <[email protected]>
3541    
3542            Addresses the "Selection Extent" wish of RTbug #1787.
3543    
3544            * Resources/Bitmaps/fulllayerextent.xpm,
3545            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
3546            extent. These are just place holders for the real bitmaps.
3547    
3548            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
3549            calculate the bounding box once (the first time compute_bbox() is
3550            called).
3551            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
3552            the bounding box for the shapes in lat/long coordinates.
3553    
3554            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
3555            option.
3556            (MainWindow.has_selected_shapes): New. Returns true if there are
3557            any selected shapes.
3558            (MainWindow.FullSelectionExtent): New. Calls
3559            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
3560            (_has_selected_shapes): New. Returns true if there are any
3561            selected shapes.
3562    
3563            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
3564            true if there are any selected shapes.
3565    
3566            * Thuban/UI/view.py (MapCanvas): Added delegated method
3567            HasSelectedShapes.
3568            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
3569            shapes on the canvas using the map projection (if any).
3570    
3571            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
3572            for Layer.ShapesBoundingBox().
3573    
3574    2003-05-06  Bernhard Herzog  <[email protected]>
3575    
3576            * Resources/Projections/defaults.proj: Fix spelling of Mercator
3577    
3578    2003-05-05  Jonathan Coles   <[email protected]>
3579    
3580            Addresses the "Full Layer Extent" wish of RTbug #1787.
3581    
3582            * Resources/Projections/defaults.proj: Added UK National Grid.
3583    
3584            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
3585            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
3586            when the user selects the menu option.
3587    
3588            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
3589            scales the given layer on the canvas using the map projection.
3590    
3591    2003-05-05  Bernhard Herzog  <[email protected]>
3592    
3593            Convert the table implementations to a new table interface. All
3594            tables use a common mixin class to provide backwards compatibility
3595            until all table users have been updated.
3596    
3597            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
3598            provide backwards compatibility for table classes implementing the
3599            new interface
3600            (DBFTable, MemoryTable): Implement the new table interface. Use
3601            OldTableInterfaceMixin as base for compatibility
3602            (DBFColumn, MemoryColumn): New. Column description for DBFTable
3603            and MemoryTable resp.
3604    
3605            * test/test_dbf_table.py: New. Test cases for the DBFTable with
3606            the new table interface.
3607    
3608            * test/test_memory_table.py: New. Test cases for the MemoryTable
3609            with the new table interface.
3610    
3611            * test/test_table.py: Document the all tests in this file as only
3612            for backwards compatibility. The equivalent tests for the new
3613            interface are in test_memory_table.py and test_dbf_table.py
3614            (MemoryTableTest.test_read): field_info should be returning tuples
3615            with four items
3616            (MemoryTableTest.test_write): Make doc-string a more precise.
3617    
3618            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
3619            table interface. Derive from from OldTableInterfaceMixin for
3620            compatibility.
3621            (TransientTableBase.create): New intance variable column_map to
3622            map from names and indices to column objects
3623            (TransientTable.create): Use the new table interface of the input
3624            table
3625            (AutoTransientTable): Convert to new table interface. Derive from
3626            from OldTableInterfaceMixin for compatibility.
3627            (AutoTransientTable.write_record): Removed. It's not implemented
3628            yet and we still have to decide how to handle writing with the new
3629            table and data framework.
3630    
3631            * test/test_transientdb.py
3632            (TestTransientTable.run_iceland_political_tests)
3633            (TestTransientTable.test_transient_joined_table): Use the new
3634            table interface
3635    
3636    2003-05-05  Jonathan Coles   <[email protected]>
3637    
3638            This is namely a collection of UI updates to improve user interactivity.
3639            Tabbing between controls now exists and you can use ESC to close dialog
3640            boxes; ENTER will active the default button.
3641    
3642            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
3643            order that the controls are created so that tabbing works correctly.
3644            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
3645            wxDialog can handle the default button correctly.
3646            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
3647            same reasons as for OnOK.
3648            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
3649            when we ask the table for the maximum/minimum values of a field
3650            which could take a very long time.
3651    
3652            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
3653            order that the controls are created so that tabbing works correctly.
3654            (SelectPropertiesDialog.__init__): Rearrange the order that the
3655            controls are created so that tabbing works correctly.
3656    
3657            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
3658            to derive from a wxDialog but behave like the original implementation
3659            which was derived from a wxFrame. wxDialog provides useful key
3660            handling functionality like ESC calling OnCancel and ENTER calling
3661            OnOK which is lost with wxFrame.
3662    
3663            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
3664            new dialogs.
3665    
3666            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
3667            order that the controls are created so that tabbing works correctly.
3668            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
3669            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
3670            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
3671            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
3672            can provide the "UK National Grid" as a default projection.
3673            (UTMPanel.__init__): Rearrange the order that the controls are
3674            created so that tabbing works correctly.
3675    
3676    2003-05-05  Bernhard Herzog  <[email protected]>
3677    
3678            * extensions/thuban/wxproj.cpp: Fix some of the comments.
3679            (project_point): If a map projection but no layer projection is
3680            given, convert degrees to radians before applying the map
3681            projection.
3682    
3683            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
3684            (TableGrid.allow_messages): New methods to make it possible to
3685            inhibit message sending.
3686            (TableGrid.issue): Only send the message if not inhibited.
3687            (LayerTableGrid.select_shape): Use the new methods to make sure
3688            that no ROW_SELECTED message is sent while we're updating the
3689            selected rows to match the selected shapes.
3690    
3691    2003-05-02  Jan-Oliver Wagner <[email protected]>
3692    
3693            Implementation of MemoryTable.
3694    
3695            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
3696            implementation that operates on a list of tuples. All of the data
3697            are kept in the memory.
3698    
3699            * test/test_table.py (MemoryTableTest): New.
3700    
3701            * test/test_transientdb.py (SimpleTable): Removed.
3702            (TestTransientTable.test_transient_joined_table,
3703            (TestTransientTable.test_transient_table_read_twice): Replaced
3704            SimpleTable by MemoryTable.
3705    
3706    2003-04-30  Jonathan Coles   <[email protected]>
3707    
3708            * Data/iceland_sample.thuban: Now contains correct projections
3709            for each of the layers.
3710    
3711            * Resources/Projections/defaults.proj: Geographic projection
3712            contains unit conversion parameter.
3713    
3714    2003-04-30  Jonathan Coles   <[email protected]>
3715    
3716            The most important part of this putback is the projection changes.
3717            It should now be possible to specify the projection that a layer
3718            is in and then specify a different projection for the map. The
3719            projection dialog has an extra parameter for a geographic projection
3720            which lets the user select if the input is in degrees or radians.
3721    
3722            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
3723            to say that the parameter is a tuple of unprojected
3724            points (which is what the callers to this method were assuming).
3725            Also, since the points are unprojected we need to projected them.
3726    
3727            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
3728            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
3729            groups are selected, move the layer up/down. Fixes RTbug #1833.
3730    
3731            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
3732    
3733            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
3734            parameter in call to SetClientData.
3735            (GeoPanel): Add support for selecting the units that the
3736            source data is in (Radians or Degrees).
3737    
3738            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
3739            the rendering loop by reducing the number of if's, removing the
3740            unnecessary try/except block, and checking if the old group
3741            is the same as the new one (which happens a lot if there is
3742            no classification, or lots of shapes are in the same group).
3743    
3744            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
3745            around the redraw routine to try to catch problems that the user
3746            may create by selecting invalid projections for the data set and
3747            map. Clears the display if there are any problems and prints the
3748            error.
3749            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
3750            rectangle.
3751    
3752            * extensions/thuban/wxproj.cpp (project_point): First invert the
3753            supplied point (which should be in projected coordinates) using
3754            the layer's projection and then project the point using the
3755            map's projection.
3756            (project_points): Use project_point() to project each point.
3757    
3758    2003-04-30  Jan-Oliver Wagner <[email protected]>
3759    
3760            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
3761            don't set the Classification to None if the classfication field
3762            is None (ie only a DEFAULT).
3763    
3764    2003-04-30  Bernhard Herzog  <[email protected]>
3765    
3766            * Thuban/UI/view.py: Fix some typos.
3767    
3768            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
3769            not pop up the dialog if the selection becomes empty (this could
3770            happen if e.g. a new selection is opened while the identify tool
3771            is active and dialog had been closed)
3772    
3773    2003-04-30  Bernhard Herzog  <[email protected]>
3774    
3775            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
3776            instance variable read_record_last_result
3777            (TransientTableBase.read_record): Make sure reading the same
3778            record twice works. The implementation uses the new instance
3779            variable read_record_last_result
3780    
3781            * test/test_transientdb.py
3782            (TestTransientTable.test_transient_table_read_twice): New test
3783            case for the above bug-fix.
3784    
3785    2003-04-29  Jonathan Coles   <[email protected]>
3786    
3787            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
3788    
3789            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
3790    
3791            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
3792            (ClassTable.SetValueAsCustom): Rename keyword argument in
3793            ClassGroup* constructors to match argument name.
3794    
3795    2003-04-29  Bernhard Herzog  <[email protected]>
3796    
3797            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
3798            transient DB if it exists to make sure it doesn't leave a journal
3799            file in the temp directory.
3800    
3801            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
3802            self.conn to None after closing the connection to make sure it's
3803            not closed twice
3804    
3805    2003-04-29  Jonathan Coles   <[email protected]>
3806    
3807            Add a visible parameter in the layer XML tag. The default value is
3808            "true". If anything other than "false" is specified we also assume
3809            "true". Addresses RTbug #1025.
3810    
3811            * Doc/thuban.dtd: Add visible parameter to a layer.
3812    
3813            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
3814            of visible from 1 to True.
3815            (Layer.__init__): Change default value of visible from 1 to True.
3816    
3817            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
3818            parameter.
3819    
3820            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
3821            parameter.
3822    
3823            * test/test_load.py: Add new test data contents_test_visible.
3824            (LoadSessionTest.setUp): save test data.
3825            (LoadSessionTest.testLayerVisibility): Test if the visible flag
3826            is loaded correctly.
3827    
3828            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
3829            for saving an invisible layer.
3830    
3831    2003-04-29  Jonathan Coles   <[email protected]>
3832    
3833            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
3834            legend dialog box and tell it to change its map to the one
3835            supplied to SetMap(). Fixes RTbug #1770.
3836    
3837  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
3838    
3839          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 3887 
3887          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
3888          session object alive for a long time.          session object alive for a long time.
3889    
3890  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
3891    
3892          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
3893          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.1609

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26