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

Legend:
Removed from v.1191  
changed lines
  Added in v.1465

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26