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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26