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

Legend:
Removed from v.1272  
changed lines
  Added in v.1524

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26