/[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 1112 by bh, Fri May 30 09:55:04 2003 UTC revision 1532 by frank, Thu Jul 31 10:58:24 2003 UTC
# Line 1  Line 1 
1    2003-07-31  Frank Koormann   <[email protected]>
2    
3            * Doc/manual/thuban-manual.xml:
4            Changed the screenshot elements to figure.
5            Changed some variablelist elements to itemizedlist.
6            Added section on GDAL formats.
7    
8    2003-07-31  Jonathan Coles   <[email protected]>
9    
10            * Doc/manual/thuban-manual.xml: Added a few sentences about
11            the Fix Border Color option when generating classes.
12    
13    2003-07-30  Jonathan Coles   <[email protected]>
14    
15            * Thuban/Model/classgen.py: Add docstrings. Rename specific
16            Ramp instances to use lower_case_style.
17    
18            * Thuban/UI/classgen.py: Use renamed Ramp instances.
19            
20            * Thuban/UI/classifier.py: Add docstrings.
21    
22            * Thuban/UI/dock.py: Add docstrings.
23    
24            * test/test_classgen.py: Use renamed Ramp instances.
25    
26    2003-07-30  Bernhard Herzog  <[email protected]>
27    
28            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
29            was never used in Thuban.
30    
31    2003-07-30  Bernhard Herzog  <[email protected]>
32    
33            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
34            method directly instead of going through the transient_table
35            method. This faster because transient_table may force the copy of
36            a DBF file into the transient database and setting a table's title
37            doesnm't affect the title of the associated transient table, so
38            this fixes RT #2042
39    
40            * Thuban/UI/main.py (__version__): Don't import the already
41            removed show_exception_dialog.
42    
43    2003-07-29  Jonathan Coles   <[email protected]>
44    
45            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
46            Put back this method and remove the equivalent function since we
47            are setting the exception hook from within this class (OnInit).
48    
49    2003-07-29  Jonathan Coles   <[email protected]>
50    
51            * Doc/manual/images/5_2_custom_ramp.png,
52            Doc/manual/images/5_2_quantiles.png,
53            Doc/manual/images/5_2_uniform_dist.png,
54            Doc/manual/images/5_2_unique_values.png,
55            Doc/manual/images/8_int_error.png: New screen shots.
56    
57            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
58            some points, and added more screen shots.
59    
60    2003-07-29  Bernhard Herzog  <[email protected]>
61    
62            * Thuban/Model/data.py: Remove the now unused import of warnings
63    
64    2003-07-29  Bernhard Herzog  <[email protected]>
65    
66            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
67            deprecated since before the 0.8 release and isn't used in Thuban
68            itself anymore.
69    
70            * Thuban/Model/transientdb.py: Remove some unnecessary imports
71    
72    2003-07-29  Jonathan Coles   <[email protected]>
73    
74            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
75            python exception hook here so that we are sure to catch any
76            Thuban exception that happen during initialization.
77    
78            * Thuban/UI/main.py (main): Don't set the exception hook here,
79            it will get set in ThubanApplication.OnInit.
80    
81    2003-07-29  Jonathan Coles   <[email protected]>
82                                                                                
83            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
84            Removed and called it show_exception_dialog() so that the exception
85            handler can be set before the class is created.
86                                                                                
87            * Thuban/UI/main.py (main): Install the exception handler before
88            a ThubanApplication is created.
89                                                                                    
90    2003-07-29  Bernhard Herzog  <[email protected]>
91    
92            * po/it.po: New. Italian translation by Maurizio Napolitano
93    
94            * po/ru.po: New. Russian translation by Alex Shevlakov
95    
96    2003-07-29  Frank Koormann   <[email protected]>
97    
98            * Doc/manual/thuban-manual.xml: Extended section on supported
99            projections.
100            
101    2003-07-29  Frank Koormann   <[email protected]>
102    
103            * Doc/manual/thuban-manual.xml: gaspell-checked.
104    
105    2003-07-29  Jonathan Coles   <[email protected]>
106    
107            * Doc/manual/images/3_5_legend.png: Added border to improve look
108            on white background.
109    
110    2003-07-29  Jonathan Coles   <[email protected]>
111    
112            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
113            descriptions for the legend toolbar.
114    
115            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
116            cursor from dialog box.
117    
118    2003-07-28  Jonathan Coles   <[email protected]>
119    
120            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
121    
122            * Doc/manual/images/2_4_session_tree.png,
123            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
124            Doc/manual/images/4_2_layer_properties.png,
125            Doc/manual/images/4_2_raster_layer_properties.png,
126            Doc/manual/images/5_3_genclass.png,
127            Doc/manual/images/5_classification.png,
128            Doc/manual/images/6_projection.png,
129            Doc/manual/images/7_1_table_view.png,
130            Doc/manual/images/7_2_5_join.png: New screenshots.
131    
132    2003-07-24  Jonathan Coles   <[email protected]>
133    
134            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
135    
136    2003-07-24  Jonathan Coles   <[email protected]>
137    
138            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
139            chapter on Layer Management.
140    
141            * Doc/manual/Makefile: New. Makefile to generate all formats for the
142            manual and images.
143    
144    2003-07-24  Bernhard Herzog  <[email protected]>
145    
146            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
147            it annoys lintian which warns about these files not being
148            executable. The #1 isn't necessary here since if you absolutely
149            must execute them you can always say "python <filename>".
150    
151            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
152            superfluous code to set brush and pen for point shapes
153    
154            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
155            belong in viewport anyway
156    
157    2003-07-24  Frank Koormann   <[email protected]>
158    
159            * Doc/manual/thuban-manual.xml: Added section on table management.
160    
161    2003-07-24  Bernhard Herzog  <[email protected]>
162    
163            * test/runtests.py (main): Recognize the long "verbose" option
164            correctly.
165    
166    2003-07-22  Jonathan Coles   <[email protected]>
167    
168            * Doc/manual/thuban-manual.xml: Continue to write first revision
169            of the manual.
170    
171            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
172            with Begin/EndDrawing() calls to ensure we aren't doing to
173            many updates to the dc during rendering.
174            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
175            a pen and brush argument so they need to be passed to the function.
176    
177            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
178            Calculates the minimum and maximum scale values. Factored out
179            of set_view_transform so that it could be used to zoom all the
180            way into a single point.
181            (ViewPort.set_view_transform): Call calc_min_max_scales().
182            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
183            if only a single point is selected.
184    
185            * Doc/manual/images/1_2_legend_close.png,
186            Doc/manual/images/1_2_legend_dock.png,
187            Doc/manual/images/1_2_mainwindow.png,
188            Doc/manual/images/1_2_mainwindow.ps,
189            Doc/manual/images/1_2_mainwindow.sk,
190            Doc/manual/images/3_2_fullextent.png,
191            Doc/manual/images/3_2_fulllayerextent.png,
192            Doc/manual/images/3_2_fullshapeextent.png,
193            Doc/manual/images/3_2_pan.png,
194            Doc/manual/images/3_2_zoomin.png,
195            Doc/manual/images/3_2_zoomout.png,
196            Doc/manual/images/3_3_identify.png,
197            Doc/manual/images/3_3_label.png,
198            Doc/manual/images/3_5_invisible.png,
199            Doc/manual/images/3_5_movedown.png,
200            Doc/manual/images/3_5_moveup.png,
201            Doc/manual/images/3_5_props.png,
202            Doc/manual/images/3_5_tobottom.png,
203            Doc/manual/images/3_5_totop.png,
204            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
205    
206    2003-07-18  Bernhard Herzog  <[email protected]>
207    
208            * Thuban/UI/messages.py (MAP_REPLACED): New message.
209    
210            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
211            after the new map has been assigned
212    
213            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
214            Delegate MAP_REPLACED to the canvas too
215            (MainWindow.prepare_new_session): Removed. Thanks to the new
216            MAP_REPLACED message it's no longer needed
217            (MainWindow.OpenSession, MainWindow.NewSession):
218            prepare_new_session has been removed.
219    
220            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
221            MAP_REPLACED so that we can close the dialog if a new map is set.
222            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
223            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
224            dialog
225    
226            * test/test_viewport.py (SimpleViewPortTest)
227            (SimpleViewPortTest.test_default_size): Add doc-strings
228            (ViewPortTest.setUp): Bind map to self.map so we can use it in
229            tests. Subscribe to MAP_REPLACED messages too.
230            (ViewPortTest.tearDown): No need to explicitly unsubscribe
231            (ViewPortTest.test_set_map): New test for the SetMap method.
232    
233    2003-07-18  Bernhard Herzog  <[email protected]>
234    
235            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
236            Move this test from ViewPortTest.setUp to this new separate test
237            case. setUp is not the place for the actual tests.
238            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
239            more of the test from setUp to the new test test_inital_settings.
240            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
241            (ViewPortTest.test_proj_conv): Split test_proj_conv into
242            test_win_to_proj and test_proj_to_win and make the tests easier to
243            understand
244            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
245            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
246            (ViewPortTest.test_unprojected_rect_around_point)
247            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
248            Reformat to increase readability.
249    
250    2003-07-18  Bernhard Herzog  <[email protected]>
251    
252            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
253    
254    2003-07-18  Bernhard Herzog  <[email protected]>
255    
256            * test/runtests.py: The test suite can now be run without an X
257            connection. To make sure this remains true, remove the DISPLAY
258            environment variable so that an error occurs if the wxGTK is
259            imported accidentally
260    
261    2003-07-18  Bernhard Herzog  <[email protected]>
262    
263            * Thuban/UI/viewport.py: Remove unused imports
264    
265            * Thuban/UI/view.py: Remove unused imports
266    
267    2003-07-18  Bernhard Herzog  <[email protected]>
268    
269            * test/test_export.py Remove unused imports. The OutputTransform
270            function is now in viewport.py and is called output_transform
271            (TestScalebar.test_output_transform)
272            (TestScalebar.test_OutputTransform): Renamed to
273            test_output_transform and updated to use output_transform instead
274            of OutputTransform
275    
276            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
277            renamed.
278            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
279            renamed to output_transform
280    
281            * Thuban/UI/viewport.py (OutputTransform, output_transform):
282            Rename to output_transform
283    
284    2003-07-18  Bernhard Herzog  <[email protected]>
285    
286            * Thuban/Model/layer.py (Layer.__init__): Rename
287            classificationField to classificatin_column and init it here so
288            that it can be used in SetClassificationColumn
289            (Layer.GetClassificationColumn, Layer.GetClassificationField):
290            Rename to GetClassificationColumn.
291            (Layer.SetClassificationColumn, Layer.SetClassificationField):
292            Rename to SetClassificationColumn and issue a LAYER_CHANGED
293            message if the column changes.
294            (Layer._classification_changed, Layer.ClassChanged): Rename to
295            _classification_changed. Update the callers.
296            (Layer.SetShapeStore): Further field->column renames.
297    
298            * Thuban/Model/load.py (SessionLoader.start_classification)
299            (SessionLoader.start_clpoint): Updates because of
300            field->column method name changes in the Layer class
301    
302            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
303            because of field->column method name changes in the Layer class
304    
305            * Thuban/UI/classifier.py (Classifier.__init__)
306            (Classifier._OnTry, Classifier._OnRevert): Updates because of
307            field->column method name changes in the Layer class
308    
309            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
310            because of field->column method name changes in the Layer class
311    
312            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
313            of field->column method name changes in the Layer class
314    
315            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
316            (SaveSessionTest.testClassifiedLayer): Update because of
317            field->column method name changes in the Layer class
318    
319            * test/test_layer.py (SetShapeStoreTests.setUp)
320            (SetShapeStoreTests.test_sanity): Update because of field->column
321            method name changes in the Layer class
322            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
323            (TestLayerModification.test_sanity)
324            (TestLayerModification.test_initial_settings): remove unsued code
325            and rename to test_sanity.
326            (TestLayerModification.test_set_classification): New test for
327            SetClassification and SetClassificationField.
328    
329    2003-07-18  Bernhard Herzog  <[email protected]>
330    
331            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
332            the non-fixed values as well. The old test would have accepted a
333            fixed ramp that only returnes the fixed properties
334    
335    2003-07-17  Jonathan Coles   <[email protected]>
336    
337            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
338            shots for the manual. The XCF file is the source image and
339            has additional layers to support changes.
340    
341            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
342    
343            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
344            Return both the new class and the field name.
345    
346            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
347            fit the map to the window as this changes any zoom level that
348            the user may have set.
349    
350    2003-07-16  Jonathan Coles   <[email protected]>
351    
352            * Thuban/Model/classgen.py (generate_singletons,
353            generate_uniform_distribution, generate_quantiles): Remove
354            fixes parameter, but maintain the same functionality by having
355            the calling function pass a FixedRamp object for the ramp.
356            (FixedRamp): New. Adapts a ramp to have fixed property values.
357    
358            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
359            (Classification): Inherit from Publisher.
360            (Classification.__init__): Remove the layer parameter.
361            Classifications no longer need to have a parent layer.
362            (Classification.GetField, Classification.GetFieldType,
363            Classification.SetFieldInfo): Removed. The field name is stored
364            in the layer, and the type can be retreived by calling
365            Layer.GetFieldType().
366            (Classification._set_layer, Classification.GetLayer): Removed.
367            Classifications no longer have a parent layer.
368    
369            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
370            classification.
371            (Layer.SetShapeStore): Reset the classification first while
372            we still have the old shape store to work with.
373            (Layer.GetClassificationField, Layer.SetClassificationField):
374            New. Method for getting/setting the field to classify on.
375            (Layer.SetClassification): Simplified now that the layer
376            simply has to hold a reference to the classification and not
377            tell the classification who owns it.
378            Fixes RTbug #2023.
379    
380            * Thuban/Model/load.py (SessionLoader.start_classification):
381            Set the field name on the layer, not the classification.
382    
383            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
384            classification is modified.
385    
386            * Thuban/Model/save.py (SessionSaver.write_classification):
387            Get the field name and type from the layer.
388    
389            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
390            parameter records to rows and add docstring. Fixes RTbug #1997.
391    
392            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
393            ramp when we need to fix certain values of a ramp rather than
394            using the old fixes parameter. Fixes RTbug #2024.
395    
396            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
397            parameter.
398            (ClassTable.Reset): Add fieldType parameter and use it, rather
399            than asking the classification.
400            (Classifier.__init__): Remember the original class's field
401            and ask the layer for the field type, rather than the classification.
402            (Classifier.__SetGridTable): Retrieve the field and field type
403            for the table because they are not in the classification.
404            (Classifier._OnTry, Classifier._OnRevert): Set the classification
405            field on the layer in addition to the classification itself.
406    
407            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
408            classification field from layer.
409    
410            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
411            classification field from layer. Split up tests and remove
412            *-imports. Fixes RTbug #1992.
413    
414            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
415    
416            * test/test_classification.py
417            (TestClassification.test_classification): Remove tests for methods
418            that no longer exist.
419    
420            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
421            __init__ no longer has a field parameter, use SetClassificationField.
422            (SetShapeStoreTests.test_sanity): Use layer object to get class
423            field info.
424    
425            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
426            SetClassificationField on layer to set class field info.
427    
428            * test/test_viewport.py: Renamed from test/test_view.py.
429    
430    2003-07-16  Jan-Oliver Wagner <[email protected]>
431    
432            * Doc/manual/thuban-manual.xml: Added authors and an initial
433            coarse structure.
434    
435    2003-07-15  Bernhard Herzog  <[email protected]>
436    
437            * test/support.py (FloatComparisonMixin): This is a mix-in class
438            and therefore should not be derived from any other class.
439    
440            * test/test_range.py (RangeTest): FloatComparisonMixin is a
441            mix-in, so derive from TestCase as well.
442    
443    2003-07-15  Bernhard Herzog  <[email protected]>
444    
445            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
446            draw_func handling a bit to remove one layer of indirection. This
447            makes the renderer about 10% faster in the non-classifying case
448            and the code a bit cleaner
449            (MapRenderer.draw_point_shape): Add the pen and brush parameters
450            and set them in the dc. Now the draw_point_shape method and
451            wxproj's draw_polygon_shape function have basically the same
452            signature so that both can be directly used as draw_func
453    
454    2003-07-15  Bernhard Herzog  <[email protected]>
455    
456            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
457            string values (in addition to the labels) as UTF 8
458    
459            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
460            values if the field type is string
461    
462            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
463            saving a session with non-ascii string classification values.
464    
465            * test/test_load.py (TestClassification.file_contents)
466            (TestClassification.test): Check for non-ascii values in string
467            classifications
468    
469    2003-07-14  Jonathan Coles   <[email protected]>
470    
471            * test/test_view.py: New. Tests for ViewPort.
472    
473    2003-07-14  Frank Koormann   <[email protected]>
474    
475            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
476            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
477    
478            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
479            unicode strings from session file: session title, map title and
480            projection name.
481            
482    2003-07-10  Jonathan Coles   <[email protected]>
483    
484            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
485            drag_stop, not drag_move when the mouse is released.
486    
487    2003-07-10  Jonathan Coles   <[email protected]>
488    
489            The most important part of this is the seperation of view.py into
490            two pieces. viewport.py now has a class called ViewPort which
491            contains all the non-wx parts of view.py and can therefore be
492            tested. view.py contains only the wx-specific parts and is fairly
493            simple.
494    
495            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
496            RTTbug #1992.
497            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
498            RTTbug #1992.
499    
500            * Thuban/Model/classgen.py (generate_singletons,
501            generate_uniform_distribution, generate_quantiles):
502            Added 'fixes' parameter so that property attributes can
503            be held constant over the generated classification groups.
504            (CustomRamp.GetProperties): Remove unused variables.
505    
506            * Thuban/Model/map.py (Map.SetProjection): Send the old
507            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
508            event.
509    
510            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
511            parameter which is a list of records that restricts which
512            records are saved. Fixes RTbug #1997.
513    
514            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
515            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
516    
517            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
518            to allow the user to fix line color/width on generated groups.
519            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
520            functions to optionally fix group properties.
521    
522            * Thuban/UI/main.py (main): Set exception hook to the
523            ShowExceptionDialog. Fixes RTbug #1993.
524    
525            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
526            the table window when it is selectd to be shown.
527    
528            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
529            Export Selection button and move the export buttons underneath
530            the table.
531            (QueryTableFrame.UpdateStatusText): Added event argument so
532            that it can respond to grid selection events. The status text
533            is now updated even when the table is not associated with a
534            layer as was previously assumed.
535            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
536            UpdateStatusText responds to these events.
537            (QueryTableFrame.OnSaveAs): Renamed to doExport.
538            (QueryTableFrame.doExport): Helper function that saves the
539            entire table, or selected rows, to a file.
540            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
541            Respond to export button events and call doExport.
542    
543            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
544            the function doesn't return NULL without first setting a Python
545            Error.
546    
547            * test/runtests.py (main): Only print "Unknown option" for
548            unsupported options.
549    
550            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
551            optional epsilon argument to specify floating point accuracy.
552            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
553            for each item test.
554    
555            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
556            tests for saving selected records.
557    
558            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
559            tests for saving selected records.
560    
561            * test/test_map.py (TestMapWithContents.test_set_projection):
562            MAP_PROJECTION_CHANGED events send the old projection.
563    
564            * test/test_session.py
565            (TestSessionWithContent.test_forward_map_projection):
566            MAP_PROJECTION_CHANGED events send the old projection.
567    
568            * test/test_table.py (TableTest): Update tests to use non-deprecated
569            functions.
570    
571    2003-07-08  Bernhard Herzog  <[email protected]>
572    
573            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
574            constants in the column objects are the standard ones defined in
575            the table module.
576    
577            * test/test_transientdb.py
578            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
579            exporting transient tables as DBF works. This should catch the bug
580            just fixed in TransientTableBase.Width.
581    
582    2003-07-08  Bernhard Herzog  <[email protected]>
583    
584            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
585            interpolated colors correctly.
586    
587            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
588            New. Test case for the fix in classgen.py
589    
590    2003-07-08  Bernhard Herzog  <[email protected]>
591    
592            * test/runtests.py (main): Make the default output less verbose
593            and add a verbosity option (-v) to get the old output
594    
595    2003-07-08  Bernhard Herzog  <[email protected]>
596    
597            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
598            0.9.
599    
600            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
601            New. Return the join type
602    
603            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
604            DTD
605            (SessionSaver.write_data_containers): Save the join type for
606            joined tables
607    
608            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
609            namespace
610            (SessionLoader.start_jointable): Handle the jointype attribute
611    
612            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
613            as of Thuban 0.8. These are now tests to determine whether Thuban
614            can still read files generated by Thuban 0.8
615    
616            * test/test_load.py (LoadSessionTest.dtd)
617            (TestSingleLayer.file_contents)
618            (TestLayerVisibility.file_contents, TestLabels.file_contents)
619            (TestLayerProjection.file_contents)
620            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
621            (TestJoinedTable.file_contents)
622            (TestLoadError.file_contents): Update for new DTD
623            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
624            for new join type attribute
625    
626            * test/test_save.py (SaveSessionTest.dtd)
627            (SaveSessionTest.testEmptySession)
628            (SaveSessionTest.testSingleLayer)
629            (SaveSessionTest.testLayerProjection)
630            (SaveSessionTest.testRasterLayer)
631            (SaveSessionTest.testClassifiedLayer)
632            (SaveSessionTest.test_dbf_table)
633            (SaveSessionTest.test_joined_table): Update for new DTD
634            (SaveSessionTest.test_joined_table): Add test for new join type
635            attribute
636    
637    2003-07-04  Bernhard Herzog  <[email protected]>
638    
639            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
640            function for table_to_dbf
641            (table_to_dbf): Deal with names longer than the 10 character limit
642    
643            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
644            doc-string
645            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
646            long column names
647    
648    2003-07-03  Bernhard Herzog  <[email protected]>
649    
650            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
651    
652    2003-07-03  Bernhard Herzog  <[email protected]>
653    
654            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
655            for the Thuban manual and README with some basic information about
656            the manual
657    
658    2003-07-03  Bernhard Herzog  <[email protected]>
659    
660            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
661            Update doc-string
662            (TransientJoinedTable.create): Do not modify the column objects of
663            the input tables in place and copy all columns of the input tables
664            into the joined table after all.
665    
666            * test/test_transientdb.py
667            (TestTransientTable.test_transient_joined_table_same_column_name):
668            Update to reflect the new behavior
669            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
670            Update to reflect the new behavior
671            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
672            New test case for a bug which modified the column objects in place
673    
674    2003-07-02  Jonathan Coles   <[email protected]>
675    
676            * Thuban/Model/classgen.py (generate_singletons,
677            generate_uniform_distribution, generate_quantiles,
678            GenQuantiles0): Make sure maxValue isn't less than
679            one, otherwise we could divide by zero.
680    
681            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
682            ClassGenTest.doClassSingleTest): Call doBoundsTest to
683            check the end classification groups against the
684            proper property values.
685            (ClassGenTest.doBoundsTest): New. Checks the first and
686            last classification groups to make sure their properties
687            are the correct upper and lower bounds for a color ramp.
688    
689    2003-07-02  Jonathan Coles   <[email protected]>
690    
691            * Thuban/Model/classgen.py (generate_singletons,
692            generate_uniform_distribution, generate_quantiles,
693            GenQuantiles0): The denominator was one to high when
694            calculating the index for the ramp causing the index
695            to never to reach one.
696    
697    2003-07-02  Jonathan Coles   <[email protected]>
698    
699            Changed the singature of ClassGroupRange.__init__ and
700            ClassGroupRange.SetRange() so that the min/max values are
701            passed as a tuple. This makes a better calling scheme for
702            when a Range object is passed instead.
703    
704            * Thuban/Model/classgen.py: Fixed parameters to
705            ClassGroupRange constructor.
706    
707            * Thuban/Model/classification.py (ClassGroupRange.__init__):
708            Consolidate the min/max parameters into a single _range which
709            can either be a tuple or a Range object.
710            (ClassGroupRange.SetRange): Consolidate the min/max parameters
711            into a single _range which can either be a tuple or a Range object.
712    
713            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
714            call to ClassGroupRange constructor to use a tuple.
715    
716            * Thuban/Model/layer.py (Layer.SetClassification): Switch
717            the classification instance variable to the new class
718            before calling _set_layer otherwise subscribers to a
719            LAYER_CHANGED event will not see any difference.
720    
721            * test/test_classification.py: Fix tests of ClassGroupRange
722            so that they use the new signature.
723    
724            * test/test_load.py: Fix use of ClassGroupRange so that it
725            uses the new signature.
726    
727            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
728            uses the new signature.
729    
730            * test/test_save.py: Fix use of ClassGroupRange so that it
731            uses the new signature.
732    
733    
734    2003-07-01  Jonathan Coles   <[email protected]>
735    
736            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
737            Import used objects/class from color.
738            (generate_singletons): We don't
739            need the numGroups parameter anymore because we are using
740            the new ramps with GetProperties().
741            (generate_uniform_distribution): Use new ramp method
742            GetProperties().
743            (generate_quantiles, GenQuantiles0): Use new ramp method
744            GetProperties().
745            (CustomRamp.SetNumGroups): Removed. The ramps now map
746            a value from 0 to 1 to class properties so the number
747            of groups is not needed ahead of time.
748            (CustomRamp.next): Removed. CustomRamp does not support
749            interation anymore.
750            (CustomRamp.GetProperties): Returns a ClassGroupProperties
751            object based on the index value from 0 to 1 that is
752            passed to it.
753            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
754            Made into instances of Monochromatic class instread of
755            deriving from it.
756            (HotToCold.SetNumGroups): Removed. See CustomRamp.
757            (HotToCold.next): Removed. See CustomRamp.
758    
759            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
760            (Classification.SetField, Classification.SetFieldType):
761            Replaced with SetFieldInfo.
762            (Classification.SetFieldInfo): New. Does a better job of
763            what SetField and SetFieldType used to do by combining
764            their function since they should really always be done
765            at the same time.
766            (Classification.SetLayer): Renamed to _set_layer.
767            (Classification._set_layer): Should only be called from
768            Layer's SetClassification. This does not cause a recursive
769            call as SetLayer did because we know that Layer knows about
770            the classification.
771    
772            * Thuban/Model/color.py: Fixes RTbug #1971.
773            (_Transparent): Renamed from Transparent so it doesn't
774            conflict with the module variable.
775            (Transparent, Black): Renamed from Color.Transparent,
776            Color.Black so they are not class variables.
777    
778            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
779            (Layer.Destroy): We don't need to call SetClassification
780            anymore to clear out the back reference in the classifcation
781            to the layer. It's better to set it to None using _set_layer,
782            and we won't be creating another clas object too.
783            (Layer.SetClassification): Classification._set_layer is not
784            recursive so remove all the locking variables. Also clean
785            up the code so that it remains unchanged if something fails.
786    
787            * Thuban/Model/load.py: Fixes RTbug #1971.
788            (SessionLoader.start_classification): Call
789            Classification.SetFieldInfo().
790    
791            * Thuban/Model/save.py: Removed import of Color which wasn't
792            being used.
793    
794            * Thuban/UI/classgen.py: Fixes RTbug #1972.
795            (ClassGenDialog.__init__): Color ramps are now instances
796            already so we don't need to create any new objects.
797            (ClassGenDialog.OnOK): Check for numGroups is no longer
798            necessary because we never use it.
799    
800            * Thuban/UI/classifier.py: Fixes RTbug #1971.
801            (Classifier.__BuildClassification, Classifier.__SetGridTable):
802            Call Classification.SetFieldInfo() instead of SetFieldType.
803    
804            * Thuban/UI/renderer.py: Fixes RTbug #1971.
805    
806            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
807            (MapCanvas.__init__): Subscribe to the idle time event. Set
808            background color to white.
809            (MapCanvas.OnPaint): Set a flag indicating that we should
810            render the map during idle time. If we already have a bitmap
811            just draw it now.
812            (MapCanvas.OnIdle): New. Render the map only during idle time.
813            This also fixes a problem with the busy cursor under gtk.
814    
815            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
816            Fix calls to generate_singletons because the signature changed.
817    
818            * test/test_classification.py: Fix color references and
819            change calls to Classification.[SetField|SetFieldType] to
820            SetFieldInfo.
821    
822            * test/test_load.py: Fix color references.
823    
824            * test/test_load_0_2.py: Fix color references.
825    
826            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
827            Change calls to Classification.[SetField|SetFieldType] to
828            SetFieldInfo.
829    
830    2003-07-01  Frank Koormann   <[email protected]>
831    
832            MERGE from the greater-ms3 branch.
833    
834            * test/test_transientdb.py
835            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
836            New. Test join of two tables with partly equal column names.
837    
838            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
839            If duplicates in left and right tables column names are found,
840            append '_' (underscores) to the name until it is unique.
841            Create always new internal names for the resulting table and reference
842            columns in the join statement with <table>.<column>
843    
844    2003-07-01  Bernhard Herzog  <[email protected]>
845    
846            * test/test_transientdb.py
847            (TestTransientTable.test_transient_joined_table_same_column_name):
848            New. Test whether joining on columns with the same names in both
849            tables works.
850            
851            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
852            sure to use the right internal names even when joining on field
853            with the same names in both tables. Also, detect duplicate names
854            in the joined table correctly.
855    
856    2003-07-01  Frank Koormann   <[email protected]>
857    
858            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
859            Reverse List of layers to render in same order as in desktop legend.
860    
861    2003-06-30  Jonathan Coles   <[email protected]>
862    
863            * Thuban/version.py (make_tuple): Takes a version string
864            and splits it into a tuple of at most three integers.
865            Used make_tuple() to make tuple versions of the version
866            numbers.
867    
868            * Thuban/UI/about.py: Add Thuban email addresses.
869    
870    2003-06-30  Jonathan Coles   <[email protected]>
871    
872            * Thuban/version.py: SQLite/PySQLite version dependencies
873            were too high.
874    
875    2003-06-30  Jonathan Coles   <[email protected]>
876    
877            * Thuban/version.py: Update version to 0.8.1
878            
879            * MANIFEST.in: Added Projections so that default.proj is
880            included.
881    
882    2003-06-26  Jonathan Coles   <[email protected]>
883    
884            New About box with lots more information including library
885            versions and credits. More/better version checking before
886            Thuban starts.
887    
888            * Thuban/UI/about.py: New. New About box that displays
889            library version information and credits.
890    
891            * Thuban/version.py: Added new 'versions' dictionary which
892            contains the verions of various libraries which are checked
893            when the module loads.
894            (verify_versions): Check all version numbers and returns
895            a list of errors.
896    
897            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
898            Reset the status of the buttons as the situation warrants,
899            but in a better more reliable way by not relying on the
900            current status to determine what needs to change.
901    
902            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
903            (verify_versions): Remove most of the code since it is
904            now in Thuban.version.verify_versions.o
905    
906            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
907            About box in Thuban.UI.about.
908    
909            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
910            Returns the version of gdal library being used as a string.
911    
912            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
913            Removed.
914            (get_proj_version): Return the version of PROJ that the file
915            was compiled with.
916            (get_gtk_version): Return th version of GTK that the file
917            was compiled with.
918    
919    2003-06-25  Jonathan Coles   <[email protected]>
920    
921            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
922            of the SelectPropertiesDialog should be self so the window
923            appears on top.
924            (ClassGroupPropertiesCtrl.DoEdit): The parent
925            of the SelectPropertiesDialog should be self so the window
926            appears on top.
927    
928            * Thuban/UI/resource.py: Cleaned up how we determine file
929            extensions.
930            (GetImageResource): Return an wxImage from our Resources.
931    
932    2003-06-24  Jonathan Coles   <[email protected]>
933    
934            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
935            Check that a layer has a classification before trying
936            to get it. Raster layers don't have classifications.
937    
938    2003-06-23  Jonathan Coles   <[email protected]>
939            
940            * setup.py: Add Resources/XML to resource list.
941        
942    2003-06-23  Jonathan Coles   <[email protected]>
943    
944            * setup.cfg: Fix copyright dates
945        
946    2003-06-23  Jonathan Coles   <[email protected]>
947    
948            * MANIFEST.in: Update with Resources/XML
949    
950            * setup.py: Don't include Locale resources yet as we don't
951            have any and it causes problems building the distribution
952            for Windows. Update version to 0.8.0.
953    
954            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
955    
956            * Thuban/UI/mainwindow.py: Add blank line at the end because
957            file was not being read correctly building the Windows
958            distribution.
959    
960    2003-06-23  Jonathan Coles   <[email protected]>
961    
962            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
963    
964            * Thuban/version.py: Temporarily update longversion for
965            the 0.8 release so that it doesn't have the cvs revision.
966    
967    2003-06-23  Jonathan Coles   <[email protected]>
968    
969            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
970            to make sure that we don't create reentrant possibilities with
971            wxYield.
972    
973            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
974            directly to avoid the wxSafeYield() call which generates an
975            OnPaint event causing infinite recursion. Don't try to catch
976            exception anymore. This was for before there were limits on map
977            scaling.
978    
979    2003-06-23  Bernhard Herzog  <[email protected]>
980    
981            Bug fix for RT #1961:
982    
983            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
984            Register DerivedShapestores with the session
985    
986            * Thuban/Model/session.py (Session.Tables): Make sure each table
987            is only listed once.
988    
989            * test/test_load.py (TestJoinedTable.test): Add check_format call.
990            Update file contents to match the one written out.
991    
992    2003-06-20  Bernhard Herzog  <[email protected]>
993    
994            * test/xmlsupport.py (SaxEventLister.startElementNS)
995            (SaxEventLister.endElementNS): Do not include the qname. Python
996            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
997            is (presumably incorrectly) None, whereas it's a string with the
998            element name in the later versions.
999    
1000            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
1001            (TestEventList.test_even_list_namespace): Update tests to reflect
1002            the new behaviour
1003            (TestEventList.test_even_list_id_normalization): Fix doc-string
1004    
1005    2003-06-20  Jonathan Coles   <[email protected]>
1006    
1007            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
1008            by deriving classes to determine if that layer supports shapes.
1009            (Layer): Override HasShapes and return true.
1010    
1011            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
1012            instead of a direct call to wx[Begin|End]CusyCursor().
1013            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
1014            table data.
1015    
1016            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
1017            New. Wrappers around the wxWindows functions that allow us to
1018            make additional calls such as wxYield which gives the native
1019            system a chance to update the cursor correctly.
1020    
1021            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
1022            instead of a direct call to wx[Begin|End]CusyCursor().
1023    
1024            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
1025            instead of a direct call to wx[Begin|End]CusyCursor().
1026            (MapCanvas.find_shape_at): Check if the current search layer
1027            support shapes, otherwise go on to the next layer.
1028    
1029            * test/test_layer.py: Add tests in each type of layer for
1030            HasClassification() and HasShapes()
1031    
1032    2003-06-20  Jonathan Coles   <[email protected]>
1033    
1034            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
1035            turning on the busy cursor to allow the system to change the
1036            cursor before we begin painting. This fixes a problem that
1037            was occuring only under GTK. Fixes RTbug #1840.
1038    
1039    2003-06-20  Bernhard Herzog  <[email protected]>
1040    
1041            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
1042            version.
1043    
1044            * Thuban/Model/save.py (sort_data_stores): New. Make topological
1045            sort of the data sources so they can be written with sources that
1046            data sources that depend on other data sources come after the
1047            sources they depend on.
1048            (SessionSaver.__init__): Add idmap instance variable to map from
1049            objects to the ids used in the file.
1050            (SessionSaver.get_id, SessionSaver.define_id)
1051            (SessionSaver.has_id): New. Methods to manage the idmap
1052            (SessionSaver.write): Use thuban-0.8.dtd
1053            (SessionSaver.write_session): Add a namespace on the session and
1054            write out the data sources before the maps.
1055            (SessionSaver.write_data_containers): New. Write the data
1056            containers.
1057            (SessionSaver.write_layer): Layer elements now refer to a
1058            shapestore and don't contain filenames anymore.
1059    
1060            * Thuban/Model/load.py (LoadError): Exception class to raise when
1061            errors in the files are discovered
1062            (SessionLoader.__init__): Define dispatchers for elements with a
1063            thuban-0.8 namespace too.
1064            (SessionLoader.check_attrs): New helper method to check and
1065            convert attributes
1066            (AttrDesc): New. Helper class for SessionLoader.check_attrs
1067            (SessionLoader.start_fileshapesource)
1068            (SessionLoader.start_derivedshapesource)
1069            (SessionLoader.start_filetable, SessionLoader.start_jointable):
1070            Handlers for the new elements in the new fileformat
1071            (SessionLoader.start_layer): Handle the shapestore attribute in
1072            addition to filename.
1073            (SessionLoader.start_table, SessionLoader.end_table): Removed.
1074            They were never used in the old formats and aren't needed for the
1075            new.
1076    
1077            * Thuban/Model/session.py (Session.DataContainers): New method to
1078            return all "data containers", i.e. shapestores and tables
1079    
1080            * test/xmlsupport.py (SaxEventLister.__init__)
1081            (SaxEventLister.startElementNS, sax_eventlist): Add support to
1082            normalize IDs.
1083    
1084            * test/test_xmlsupport.py
1085            (TestEventList.test_even_list_id_normalization): New test case for
1086            id normalization
1087    
1088            * test/test_load.py (LoadSessionTest.check_format): Use ID
1089            normalization
1090            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
1091            class atrributes used for ID normalization
1092            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
1093            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
1094            file format
1095            (TestJoinedTable): New test for loading sessions with joined
1096            tables.
1097            (TestLoadError): New. Test whether missing required attributes
1098            cause a LoadError.
1099    
1100            * test/test_save.py (SaveSessionTest.thubanids)
1101            (SaveSessionTest.thubanidrefs): New class attributes for ID
1102            normalization in .thuban files.
1103            (SaveSessionTest.compare_xml): Use id-normalization.
1104            (SaveSessionTest.testEmptySession)
1105            (SaveSessionTest.testLayerProjection)
1106            (SaveSessionTest.testRasterLayer)
1107            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
1108            (SaveSessionTest.testLayerProjection): The filename used was the
1109            same as for testSingleLayer. Use a different one.
1110            (SaveSessionTest.test_dbf_table)
1111            (SaveSessionTest.test_joined_table): New test cases for saving the
1112            new data sources structures.
1113            (TestStoreSort, MockDataStore): Classes to test the sorting of the
1114            data stores for writing.
1115    
1116            * test/runtests.py: Add CVS keywords
1117    
1118    2003-06-20  Jonathan Coles   <[email protected]>
1119    
1120            * test/test_session.py
1121            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
1122            Use the cultural_landmark-point.dbf file for the store so that
1123            the table rows and shape count match.
1124    
1125    2003-06-20  Jonathan Coles   <[email protected]>
1126    
1127            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
1128            an exception if the number of shapes is different from the
1129            number of rows in the table. Address RTbug #1933.
1130    
1131            * test/test_layer.py (TestLayer.test_derived_store): Add
1132            a test for the new exception in DerivedShapeStore.__init__.
1133    
1134            * test/support.py (FloatTestCase): Removed since there is
1135            already FloatComparisonMixin. Fixes RTbug #1954.
1136            (FloatComparisonMixin.assertFloatEqual): Include test for
1137            infinity that was part of FloatTestCase.
1138    
1139            * test/test_range.py (RangeTest): Inherit from
1140            support.FloatComparisonMixin now that we don't have
1141            support.FloatTestCase.
1142    
1143    2003-06-20  Bernhard Herzog  <[email protected]>
1144    
1145            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
1146            the implementation in xmlsupport instead.
1147            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
1148    
1149            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
1150            of test_save
1151    
1152    2003-06-20  Bernhard Herzog  <[email protected]>
1153    
1154            * test/test_load.py (LoadSessionTest.check_format): New helper
1155            method to make sure the test files we load might have been written
1156            by the current thuban version.
1157            (ClassificationTest.TestLayers, TestSingleLayer.test)
1158            (TestLayerVisibility.test, TestClassification.test)
1159            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
1160            Add check_format() calls and fix the thuban data to match the data
1161            that would be written by saving the session loaded from it.
1162    
1163            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
1164            the same class and function in test_save.
1165    
1166            * test/test_xmlsupport.py (TestEventList): New. test cases for
1167            sax_eventlist
1168    
1169    2003-06-20  Bernhard Herzog  <[email protected]>
1170    
1171            * Resources/XML/thuban.dtd: Add comment about which versions of
1172            Thuban are covered by this DTD
1173            (map): Fix content model for layers and raster layers. There can
1174            be any number or layers and raster layers in any order.
1175    
1176    2003-06-20  Jonathan Coles   <[email protected]>
1177    
1178            This is mainly about fixing RTbug #1949.
1179    
1180            * Thuban/Model/classification.py: Remove "from __future__"
1181            import statement since python 2.2 is the earliest supported
1182            version.
1183    
1184            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
1185            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
1186            depending on the units this projection *forwards* into.
1187    
1188            * Thuban/Model/save.py (SessionSaver.write_classification):
1189            Remove unnecessary use of lambdas and nested functions.
1190    
1191            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
1192            adjustment here if the map projection uses degrees.
1193    
1194            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
1195            scale adjust code since it is now done before calling
1196            this method. Don't do anything if the map projection
1197            is None.
1198    
1199    2003-06-19  Bernhard Herzog  <[email protected]>
1200    
1201            Move version specific load tests to their own file.
1202    
1203            * test/test_load.py: Expand the doc-string to explain a bit how to
1204            handle file format changes.
1205            (TestClassification.test): Update the docstring as this test is
1206            not about Thuban 0.2 anymore.
1207    
1208            * test/test_load_0_2.py: New file with the load tests for thuban
1209            files created with Thuban 0.2 and earlier.
1210    
1211    2003-06-19  Bernhard Herzog  <[email protected]>
1212    
1213            Add XML validation to some of the tests. Validation will only be
1214            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
1215            To make the DTD available to the test cases it's moved into
1216            Resources/XML
1217    
1218            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
1219            for versions up to and including 0.2. Two slight changes: added an
1220            encoding specification and fixed the comment which refered to
1221            GRASS, not Thuban
1222    
1223            * test/xmlsupport.py: New support module for tests involving XML.
1224            Currently there's a mix-in class for XML validation.
1225    
1226            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
1227    
1228            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
1229            so that we can validate the
1230            (SaveSessionTest.testEmptySession)
1231            (SaveSessionTest.testSingleLayer)
1232            (SaveSessionTest.testSingleLayer)
1233            (SaveSessionTest.testLayerProjection)
1234            (SaveSessionTest.testRasterLayer)
1235            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
1236    
1237            * test/runtests.py (main): Call print_additional_summary instead
1238            of print_garbage_information
1239    
1240            * test/support.py (resource_dir): New function to return the
1241            "Resource" subdirectory
1242            (print_additional_summary): New function to combine several
1243            summary functions
1244            (run_tests): Use print_additional_summary instead of calling
1245            print_garbage_information directly
1246    
1247    2003-06-19  Bernhard Herzog  <[email protected]>
1248    
1249            * Doc/thuban.dtd (classification): Correct the content model of
1250            the classification element.
1251            (projection): Add the "name" attribute
1252    
1253    2003-06-19  Frank Koormann   <[email protected]>
1254    
1255            MERGE from the greater-ms3 branch.
1256    
1257            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
1258            scale if projection is latlong to get better estimate.
1259    
1260            Fix problem of hidden properties dialog under windows after double
1261            click on layer tree:
1262            The tree control always gets an Expanded / Collapsed event after
1263            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
1264            raises the already displayed window.
1265    
1266            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
1267            raiseProperties initialized to prevent endless loops
1268            (LegendTree._OnItemActivated): Depending on self.raiseProperties
1269            simply raise the properties or open the dialog and issue a second
1270            event.
1271    
1272    2003-06-18  Jonathan Coles   <[email protected]>
1273    
1274            * setup.py: Fix a few problems that occured under Windows.
1275    
1276    2003-06-18  Jonathan Coles   <[email protected]>
1277    
1278            When Thuban loaded the map was redrawn twice because the
1279            legend was being opened after the mainwindow was created
1280            and not during its creation. This meant the map was drawn
1281            initially and then had to be redrawn when the legend
1282            caused the display to change. Now the legend is opened
1283            in the mainwindow constructor which resolves this issue.
1284    
1285            Also, although we were checking for the existence of
1286            gdal and gdalwarp modules, the gdalwarp extension was
1287            still being compiled (which may fail if the system doesn't
1288            have gdal installed). the build_ext command to setup.py
1289            now accepts the flags --with-gdal and --without-gdal.
1290            If --without-gdal is specified setup.py will try to
1291            use the gdal parameters specified by gdal-config. Under
1292            windows, those parameters have to be set in setup.py
1293            as with proj4 an wxWindows.
1294    
1295            * setup.py: Use a list instead of seperate variables for
1296            extension parameters so we can create a generic function
1297            that runs an appropriate *-config script.
1298            (run_cs_script): Renamed from run_wx_script and modified
1299            to accept a second argument which is a list of lists to
1300            be filled in by the values returned from running the command.
1301            (thuban_build_ext): New. Extends the build_ext command and
1302            provides the options --with-gdal/--without-gdal which then
1303            optionally includes the gdalwarp extension.
1304    
1305            * Thuban/Model/resource.py: First check if we can import
1306            the gdalwarp Thuban extension before checking for gdal.
1307            Also added some comments.
1308            
1309            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
1310            the map is None which may be the case if none has been loaded
1311            yet.
1312    
1313            * Thuban/UI/main.py (main): Remove call to ShowLegend.
1314    
1315            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
1316    
1317            * Thuban/UI/renderer.py: Check for gdal support before importing
1318            gdalwarp.
1319            (MapRenderer.render_map): Only try to optimize if we have gdal
1320            support otherwise nothing will get drawn.
1321    
1322            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
1323            during startup before a map has been created. Check if map is None
1324            before using it and do nothing if it is.
1325    
1326    2003-06-17  Jonathan Coles   <[email protected]>
1327    
1328            Fix the problem with raster layers under Windows that caused
1329            Thuban to crash. The view should respond to layer projection
1330            changed events to update the display. Changes to a projection
1331            should not cause the map to be set to full extent.
1332            
1333            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
1334            current_map_proj to remember the current map projection so that
1335            when the projection changes we know what the previous projection
1336            was.
1337            (MapCanvas.SetMap): Unsubscribe and subscribe to
1338            LAYER_PROJECTION_CHANGED events.
1339            (MapCanvas.projection_changed): Split into two methods that respond
1340            to map and layer projection changes.
1341            (MapCanvas.map_projection_changed): New. Takes the current view and
1342            projects it using the new projection. This does not cause the
1343            map to be redrawn at full extent.
1344            (MapCanvas.layer_projection_changed): New. Cause a redraw which
1345            will draw each layer in its new projection.
1346            
1347            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
1348            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
1349            under Windows.
1350            
1351            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
1352            to twice sizeof(void*) because there are two digits for each
1353            hex byte.
1354    
1355    2003-06-16  Bernhard Herzog  <[email protected]>
1356    
1357            Update to the layer interface: Direct access to the table,
1358            shapetable, shapefile and filename attributes is now actively
1359            deprecated by issuing deprecation warnings for all places where
1360            this happens.
1361    
1362            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
1363            to the instance variables table, shapetable, shapefile and
1364            filename via __getattr__ so that we can issue a deprecation
1365            warning.
1366            (Layer.SetShapeStore): Don't set the deprecated instance variables
1367            any more
1368            (Layer.SetShapeStore): Don't use deprecated layer instance
1369            variables
1370            (Layer.Destroy): No need to explicitly remove the instance
1371            variables any more
1372            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
1373            instance variables
1374    
1375            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1376            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
1377            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
1378            use deprecated layer instance variables
1379    
1380            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
1381            deprecated layer instance variables
1382    
1383            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1384            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
1385            instance variables
1386    
1387            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
1388            deprecated layer instance variables
1389    
1390            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
1391            deprecated layer instance variables
1392    
1393            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
1394            deprecated layer instance variables
1395    
1396            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
1397            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
1398            variables
1399    
1400            * test/runtests.py (main): Turn Thuban's deprecation warnings into
1401            errors so that they're cought by the tests
1402    
1403            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
1404            layer instance variables
1405    
1406    2003-06-16  Jonathan Coles   <[email protected]>
1407    
1408            Fix a problem under Windows whereby if the user double-clicks on a
1409            layer in the legend that tree item will expand or collapse as well
1410            as open the layer properties dialog. The state of the tree item
1411            should not be affected.
1412    
1413            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
1414            preventExpandCollapse and subscribe to expanding and collapsing
1415            events.
1416            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
1417            collapsing events and will veto the event if it has been triggered
1418            by the user double clicking on a layer.
1419            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
1420            that an expanding/collapsing event should be vetoed.
1421    
1422    2003-06-13  Bernhard Herzog  <[email protected]>
1423    
1424            * Thuban/UI/classifier.py (Classifier.OnClose)
1425            (Classifier.map_layers_removed)
1426            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
1427            in OnClose and not in map_layers_removed or
1428            layer_shapestore_replaced to make sure it always happens when the
1429            dialog is closed
1430    
1431    2003-06-13  Jonathan Coles   <[email protected]>
1432    
1433            This puts back a fix for Windows where a panel is needed so that
1434            the background of the table view appears correctly.
1435    
1436            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
1437            object that can be used by derived classes to place any
1438            controls (including the grid) onto.
1439            (QueryTableFrame.__init__): Use the panel as the parent window
1440            for all the controls. Reparent the grid so that the panel is
1441            the parent. Call UpdateStatusText() to correctly initialize
1442            the status bar.
1443    
1444    2003-06-13  Jonathan Coles   <[email protected]>
1445    
1446            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
1447            from wxFrame (as opposed to wxDialog like the other classes)
1448            but otherwise behaves like the other classes. This is needed
1449            for the TableView which isn't really a dialog and needs to
1450            have a status bar and control buttons.
1451    
1452            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
1453            instance variable to keep track of how many rows are selected.
1454            Subscribe once to the the events we are interested in.
1455            (ThubanGrid.OnRangeSelect): Only handle event if event handling
1456            hasn't been turned off.
1457            (ThubanGrid.OnSelectCell): Only handle event if event handling
1458            hasn't been turned off.
1459            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
1460            as an event listener (which changes the event handler stack)
1461            simply set an instance variable to False. This is checked in
1462            the event handlers.
1463            (ThubanGrid.GetNumberSelected): Return the number of currently
1464            selected rows.
1465            (TableFrame): Inherit from ThubanFrame so we can have a
1466            status bar and control buttons.
1467            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
1468            Explicitly set which items are selected in the operator choice and
1469            action choice so there is always a valid selection. Fixes RTbug #1941.
1470            Subscribe to grid cell selection events so we can update the
1471            status bar.
1472            (QueryTableFrame.UpdateStatusText): Update the status bar with
1473            how many rows are in the grid, how many columns, and how many
1474            rows are selected.
1475            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
1476            Call UpdateStatusText when cells are (de)selected.
1477            (QueryTableFrame.OnQuery): Use the string value in the value
1478            combo if either the selected item index is 0 or if the string
1479            cannot be found in the predefined list (this happens if the
1480            user changes the text). Fixes RTbug #1940.
1481            Only turn off the grid event listeners if there a query comes
1482            back with a none empty list of ids. in the case that the list
1483            is empty this causes a grid.ClearSelection() call to actually
1484            clear the grid selection which causes the selected items in
1485            the map to be deselected. Fixes RTbug #1939.
1486    
1487            * test/test_save.py (XMLWriterTest.Encode): Check return values.
1488            Fixes RTbug #1851.
1489    
1490    2003-06-13  Bernhard Herzog  <[email protected]>
1491    
1492            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
1493            self.selected_shape with the current selection to make sure the
1494            contents of the dialog are up to date when it's shown for the
1495            first time.
1496            The dialog used to work without this by luck. The recent fix to
1497            the connector module 'broke' a 'feature' the identify view was
1498            relying on, i.e that subscribing to a message in response to
1499            receiving a message of that type would mean that the new
1500            subscriber would also be called for the same message.
1501            
1502    2003-06-12  Jonathan Coles   <[email protected]>
1503    
1504            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
1505            the image is rendered. Fixes RTbug #1937.
1506    
1507    2003-06-12  Jonathan Coles   <[email protected]>
1508    
1509            * Thuban/Lib/fileutil.py: As is done under Windows, create the
1510            user directory if it doesn't exist on a posix system.
1511            Fixes RTbug #1815.
1512    
1513            * Thuban/Model/resource.py (get_user_proj_files): Moved the
1514            called to get_application_dir here, so that the directory
1515            will only be called if this method is invoked.
1516    
1517            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
1518            the projfilepath if no projection is selected.
1519    
1520    2003-06-12  Jonathan Coles   <[email protected]>
1521    
1522            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
1523            the scalebar if the current map has no projection set.
1524    
1525            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
1526            projfilepath label to just the basename of the projection file
1527            rather than include the entire path.
1528    
1529            * Thuban/Model/resource.py: Fix missed proj functions that
1530            needed to be renamed.
1531    
1532    2003-06-12  Jonathan Coles   <[email protected]>
1533    
1534            * Thuban/Model/classification.py: Removed assert statements that
1535            tested if the variable was an instance of Color.
1536    
1537            * Thuban/Model/color.py (Color): Remove commented code that isn't
1538            used.
1539            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
1540            Fixes RTbug #1835.
1541            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
1542            Needed now that the class doesn't inherit from Color.
1543    
1544    2003-06-12  Jonathan Coles   <[email protected]>
1545    
1546            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
1547            check unicode strings.
1548    
1549            * test/test_layer.py: Check for existence of gdal.
1550    
1551    2003-06-12  Jonathan Coles   <[email protected]>
1552        
1553            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
1554            that was in load.py
1555    
1556            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
1557            that was in save.py
1558    
1559    2003-06-12  Jonathan Coles   <[email protected]>
1560    
1561            This is largely a collection of bug fixes. We also handle the
1562            case where gdal is not on the system. The XMLReader and XMLWriter
1563            classes were moved into there own files to resolve some circular
1564            import references and because they shouldn't really be in the
1565            file that is dediciated to reading/writing session files since
1566            they are also used elsewhere.
1567    
1568            * Thuban/Model/classgen.py: Renamed functions to follow the
1569            function_names_with_underscores style. Fixes RTbug #1903.
1570            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
1571    
1572            * Thuban/Model/layer.py: Import gdal only if it available.
1573            (RasterLayer): Handle the case where the gdal library is unavailable.
1574            Addresses RTbug #1877.
1575    
1576            * Thuban/Model/load.py (XMLReader): Moved into seperate file
1577            xmlreader.py.
1578    
1579    2003-06-12  Jonathan Coles   <[email protected]>
1580    
1581            This is largely a collection of bug fixes. We also handle the
1582            case where gdal is not on the system. The XMLReader and XMLWriter
1583            classes were moved into there own files to resolve some circular
1584            import references and because they shouldn't really be in the
1585            file that is dediciated to reading/writing session files since
1586            they are also used elsewhere.
1587    
1588            * Thuban/Model/classgen.py: Renamed functions to follow the
1589            function_names_with_underscores style. Fixes RTbug #1903.
1590            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
1591    
1592            * Thuban/Model/layer.py: Import gdal only if it available.
1593            (RasterLayer): Handle the case where the gdal library is unavailable.
1594            Addresses RTbug #1877.
1595    
1596            * Thuban/Model/load.py (XMLReader): Moved into seperate file
1597            xmlreader.py.
1598    
1599            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
1600            file xmlwriter.py.
1601    
1602            * Thuban/Model/resource.py: Renamed functions to following the
1603            function_names_with_underscores style.
1604            (has_gdal_support): New function that returns true if the gdal
1605            library is available. Addresses RTbug #1877.
1606    
1607            * Thuban/UI/application.py (ThubanApplication.OpenSession):
1608            Display a message box if the gdal library is not available, but
1609            only if there are any layers that would use it. Addresses RTbug #1877.
1610    
1611            * Thuban/UI/classgen.py: Use renamed projection resource functions.
1612            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
1613            when using integers versus floats.
1614    
1615            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
1616            determine if the "Add Image Layer" menu option should be
1617            greyed out or not. Addresses RTbug #1877.
1618    
1619            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
1620    
1621            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
1622            optimize if a raster layer is visible. Fixes RTbug #1931.
1623            Only draw the raster layer if the gdal library is available.
1624            Addresses RTbug #1877.
1625    
1626            * test/test_classgen.py: Add tests for generate_singletons,
1627            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
1628            (test_calculate_quantiles): Fix some tests to catch the new
1629            ValueError that is raised.
1630    
1631            * test/test_proj.py: Use renamed projection resource functions.
1632    
1633            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
1634            test for saving classified layers. Fixes RTbug #1902.
1635            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
1636    
1637    2003-06-12  Jan-Oliver Wagner <[email protected]>
1638    
1639            Fix for http://intevation.de/rt/webrt?serial_num=1900.
1640    
1641            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
1642    
1643            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
1644            multiplechoicedialog.py rather than from the wxPython library.
1645    
1646    2003-06-11  Frank Koormann  <[email protected]>
1647    
1648            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
1649            update.
1650    
1651    2003-06-11  Frank Koormann  <[email protected]>
1652    
1653            * Thuban/Lib/fileutil.py (get_application_dir): New function to
1654            determine the absolute .thuban/thuban directory under
1655            "posix" (os.expanduser) and "nt" (read AppData registry key).
1656    
1657            * Thuban/Model/resource.py: Use get_application_dir
1658    
1659            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1660            Use get_application_dir.
1661    
1662    2003-06-10  Bernhard Herzog  <[email protected]>
1663    
1664            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
1665            the messages MAP_LAYERS_REMOVED messages
1666            (LayerTableFrame.OnClose): Unsubscribe from it.
1667            (LayerTableFrame.map_layers_removed): New. Receiver for
1668            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
1669            dialog is showing is removed.
1670    
1671    2003-06-10  Bernhard Herzog  <[email protected]>
1672    
1673            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
1674            of the receivers list so that unsubscribing in a receiver doesn't
1675            modify it while iterating over it.
1676    
1677            * test/test_connector.py
1678            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
1679            unsubscribing in a receiver works correctly. See docstring for
1680            details
1681    
1682    2003-06-10  Bernhard Herzog  <[email protected]>
1683    
1684            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
1685            message.
1686    
1687            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
1688            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
1689            LAYER_CHANGED will still be sent if the classification changes.
1690    
1691            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
1692            parameter so we can subscribe to some of its messages
1693            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
1694            and the layer's LAYER_SHAPESTORE_REPLACED
1695            (Classifier.unsubscribe_messages): New. Unsubscribe from message
1696            subscribed to in __init__
1697            (Classifier.map_layers_removed)
1698            (Classifier.layer_shapestore_replaced): receivers for the messages
1699            subscribed to in __init__. Unsubscribe and close the dialog
1700    
1701            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
1702            the map to the Classifier dialog
1703    
1704            * test/test_layer.py (SetShapeStoreTests): Derive from
1705            SubscriberMixin as well so we can test messages
1706            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
1707            messages
1708            (SetShapeStoreTests.tearDown): Clear the messages again
1709            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
1710            for the modified flag too
1711            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
1712            to check whether SetShapeStore sets the modified flag
1713            (SetShapeStoreTests.test_set_shape_store_different_field_name)
1714            (SetShapeStoreTests.test_set_shape_store_same_field)
1715            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
1716            Add tests for the messages. This checks both the new
1717            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
1718    
1719    2003-06-06  Jan-Oliver Wagner <[email protected]>
1720    
1721            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
1722            the menu items.
1723    
1724    2003-06-05  Frank Koormann  <[email protected]>
1725    
1726            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1727            Layout reimplemented without panel. Make life easier to fit the list
1728            in the dialog.
1729    
1730    2003-06-05  Frank Koormann  <[email protected]>
1731    
1732            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
1733            once on initialisation (Former implementation resulted in multiple
1734            entries for each projection).
1735            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
1736            if set, select the projection found under the specified name. This
1737            overwrites any other selection estimate.
1738            Removed projchoice filling from this method.
1739            (ProjFrame._OnSave, ProjFrame._OnAddToList):
1740            Updated call of ProjFrame.__FillAvailList
1741            (LCCPanel._DoLayout): Moved parameter controls in more common order.
1742    
1743            * Resources/Projections/defaults.proj: Extended defaults representing
1744            various common European projections.
1745    
1746    2003-06-05  Frank Koormann  <[email protected]>
1747    
1748            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1749            Use ListCtrl instead of GridCtrl
1750    
1751            * Thuban/Model/resource.py:
1752            Guess location of .thuban directory from tempdir parent directory.
1753    
1754            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1755            Guess location of .thuban directory from tempdir parent directory.
1756    
1757    2003-06-04  Bernhard Herzog  <[email protected]>
1758    
1759            Do not cache the values returned by the tree widget's
1760            GetFirstChild and GetNextChild methods because it led to lots of
1761            segfaults. The new way requires more brute force but is more
1762            reliable.
1763    
1764            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
1765            variable layer2id
1766            (LegendTree.find_layer): New method to do with brute force what
1767            layer2id tried to accomplish
1768            (LegendTree._OnMsgLayerChanged)
1769            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
1770            Use find_layer instead of layer2id
1771            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
1772            update layer2id anymore
1773            (LegendTree._OnMsgMapLayersRemoved)
1774            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
1775    
1776    2003-06-03  Thomas Koester  <[email protected]>
1777    
1778            * Thuban/Model/classgen.py (GenQuantiles0): New function.
1779    
1780    2003-06-02  Bernhard Herzog  <[email protected]>
1781    
1782            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
1783            New commands.
1784            (main_menu): Add the new commands.
1785            (MainWindow.TableRename): New. Implementation of the table_rename
1786            command.
1787            (MainWindow.RenameLayer): New. Implementation of the layer_rename
1788            command.
1789    
1790            * Thuban/Model/session.py (Session.AddTable): call self.changed to
1791            set the modified flag
1792    
1793            * test/test_session.py (TestSessionSimple.test_add_table): Test
1794            whether the modified flag is set properly
1795    
1796            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
1797            instead of issue so that the modified flags get updated.
1798    
1799            * test/test_base.py (SomeTitledObject): Derive from Modifiable
1800            instead of Publisher to reflect reality better and to accomodate
1801            the fact that SetTitle now calls changed instead of issue
1802    
1803    2003-06-02  Bernhard Herzog  <[email protected]>
1804    
1805            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
1806            acquisition has to happen before the try in a try-finally.
1807    
1808    2003-06-02  Bernhard Herzog  <[email protected]>
1809    
1810            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
1811            possible that a layer is removed that is not currently selected in
1812            the legend so don't check for this.
1813    
1814    2003-05-30  Bernhard Herzog  <[email protected]>
1815    
1816            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
1817            variables to None that have direct or indirect references to
1818            shapefiles or dbf files to make sure that they do go away and the
1819            files are closed.
1820    
1821    2003-05-30  Bernhard Herzog  <[email protected]>
1822    
1823            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
1824            availImgListIndices when a new image list is created
1825            
1826    2003-05-30  Bernhard Herzog  <[email protected]>
1827    
1828            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
1829            changing_selection to indicate whether the LegendTree code itself
1830            is currently changing the selection
1831            (LegendTree.normalize_selection): New method to normalize the
1832            selection by selecting the layer item even if the user clicked on
1833            the classification.
1834            (LegendTree._OnSelChanged): normalize the selection. This works
1835            around a bug in wx which doesn't keep track of the selection
1836            properly when subtrees are deleted.
1837    
1838  2003-05-30  Bernhard Herzog  <[email protected]>  2003-05-30  Bernhard Herzog  <[email protected]>
1839    
1840          * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the          * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26