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

Legend:
Removed from v.1258  
changed lines
  Added in v.1463

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26