/[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 1237 by jonathan, Wed Jun 18 15:30:14 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]>  2003-06-18  Jonathan Coles   <[email protected]>
1011    
1012          When Thuban loaded the map was redrawn twice because the          When Thuban loaded the map was redrawn twice because the

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26