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

Legend:
Removed from v.848  
changed lines
  Added in v.1470

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26