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

Legend:
Removed from v.1128  
changed lines
  Added in v.1455

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26