/[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 1193 by jonathan, Thu Jun 12 17:33:35 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]>  2003-06-12  Jonathan Coles   <[email protected]>
2004    
2005          * extensions/thuban/gdalwarp.cpp: Removed debug printing as          * extensions/thuban/gdalwarp.cpp: Removed debug printing as

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26