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

Legend:
Removed from v.803  
changed lines
  Added in v.1532

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26