/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 860 by frank, Thu May 8 10:41:36 2003 UTC revision 1069 by bh, Tue May 27 15:02:48 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
4    
5            * Thuban/Model/session.py (Session.UnreferencedTables): New method
6            to return tables that are not referenced by other tables or shape
7            stores and can be removed.
8            (Session.RemoveTable): Issue a TABLE_REMOVED message after
9            removing the table
10    
11            * Thuban/UI/mainwindow.py: Remove unused imports
12            (MainWindow.TableClose): Implement.
13    
14            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
15            messages so that the frame will be automatically closed when a new
16            session is opened or the table is removed.
17            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
18            __init__
19            (TableFrame.close_on_session_replaced)
20            (TableFrame.close_on_table_removed): New. Subscribers that close
21            the window
22    
23            * test/test_session.py (TestSessionMessages.test_remove_table)
24            (TestSessionSimple.test_remove_table): Move the test to
25            TestSessionSimple and add test for the TABLE_REMOVED message
26            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
27            (TestSessionSimple.test_unreferenced_tables) New. Test for the
28            UnreferencedTables method.
29            (UnreferencedTablesTests): New. Class with some more sophisticated
30            tests for UnreferencedTables.
31    
32    2003-05-27  Frank Koormann  <[email protected]>
33    
34            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
35            display has some unwanted side effects. Removed again.
36    
37    2003-05-27  Frank Koormann  <[email protected]>
38    
39            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
40    
41            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
42    
43    2003-05-27  Jan-Oliver Wagner <[email protected]>
44    
45            * test/test_menu.py (MenuTest.test): Added test for
46            Menu.RemoveItem().
47    
48            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
49            the menu.
50    
51    2003-05-27  Frank Koormann  <[email protected]>
52            
53            Nonmodal dialogs without parent (i.e. they can fall behind the main
54            window)
55    
56            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
57            all dialogs in the dialogs dictionary and the canvas.
58    
59            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
60            parent, i.e. can fall behind other windows.
61            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
62            dictionary before removing it.
63    
64            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
65    
66            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
67            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
68            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
69    
70    2003-05-27  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
73            tableview dialog
74            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
75            Also, don't use the table's titles as the dialog names. The titles
76            aren't guaranteed to be unique.
77            (MainWindow.TableOpen): Open a table view dialog after opening the
78            table
79    
80    2003-05-27  Bernhard Herzog  <[email protected]>
81    
82            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
83            effect can be achieved by simply closing the window showing the
84            table.
85            (MainWindow.TableHide): Removed.
86            (main_menu): Removed "table_hide"
87    
88    2003-05-27  Frank Koormann  <[email protected]>
89    
90            Fix legend tree display problems under Win32
91    
92            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
93            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
94            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
95    
96            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
97    
98    2003-05-27  Jan-Oliver Wagner <[email protected]>
99    
100            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
101            'after' now allows to insert separators almost anywhere in the menu.
102    
103    2003-05-27  Frank Koormann  <[email protected]>
104    
105            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
106            "S" of selection box label to hint on hot key (Alt-S). Works under
107            Win32 but is ignored under GTK.
108    
109    2003-05-26  Frank Koormann  <[email protected]>
110    
111            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
112            Center Choices.
113    
114    2003-05-26  Bernhard Herzog  <[email protected]>
115    
116            Remove the Precision methods again. They're too DBF specific to be
117            part of the table interface and they're only used in table_to_dbf
118            anyway.
119            
120            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
121            fixed precision of 12 for doubles.
122            (TransientTableBase.Precision): Removed
123            (AutoTransientTable.Width): Delegate to self.table.
124    
125            * Thuban/Model/table.py (DBFTable.Precision)
126            (MemoryTable.Precision): Removed.
127            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
128            (table_to_dbf): Use a fixed precision of 12 for floats unless the
129            column object specifies something else.
130    
131            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
132            test for table_to_dbf
133    
134    2003-05-26  Bernhard Herzog  <[email protected]>
135    
136            * test/test_transientdb.py
137            (TestTransientTable.run_iceland_political_tests): Fix a comment.
138    
139    2003-05-26  Bernhard Herzog  <[email protected]>
140    
141            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
142            implementation. Mark parts of the file format strings for
143            localization.
144    
145            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
146            file and add the table to the tables managed by the session
147    
148            * test/test_session.py (TestSessionSimple.test_open_table_file):
149            New. test case for OpenTableFile
150    
151    2003-05-26  Jan-Oliver Wagner <[email protected]>
152    
153            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
154            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
155            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
156            Replace the true/false of wxWindows by True/False of Python 2.2.1.
157    
158    2003-05-26  Jan-Oliver Wagner <[email protected]>
159    
160            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
161            already a selection present, update the grid accordingly.
162    
163            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
164            resizeable and increase its initial size.
165    
166    2003-05-26  Frank Koormann  <[email protected]>
167    
168            Table export functionality
169    
170            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
171            Return width (in characters) for a column.
172            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
173            (table_to_dbf): Write table to dbf file.
174            (table_to_csv): Write table to csv file.
175    
176            * Thuban/Model/transientdb.py (TransientTableBase.Width,
177            TransientTableBase.Precision): Return column width and precision.
178    
179            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
180            or table_to_csv depending on file selection.
181    
182            * test/test_dbf_table.py:
183            Test table_to_dbf (extension of former part of test).
184    
185            * test/test_csv_table.py:
186            Test table_to_csv.
187    
188    2003-05-23  Jan-Oliver Wagner <[email protected]>
189    
190            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
191            Use QueryTableFrame instead of TableFrame.
192    
193            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
194            table window with 'Layer Table:' instead of 'Table:'.
195    
196    2003-05-23  Jan-Oliver Wagner <[email protected]>
197    
198            Give all tables a title via mix-in TitledObject.LayerShowTable
199    
200            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
201            only if it exists.
202    
203            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
204            and call its init-method with a default title. Remove Title() method.
205    
206            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
207            AutoTransientTable): mix-in TitledObject and call its init-method with
208            a default title. Remove Title() method.
209    
210    2003-05-23  Bernhard Herzog  <[email protected]>
211    
212            * Thuban/Model/session.py (Session.AddShapeStore): Define
213            AddShapeStore analogously to AddTable.
214    
215            * test/test_session.py (TestSessionSimple.test_add_shapestore):
216            New. Test for AddShapeStore
217    
218    2003-05-23  Jan-Oliver Wagner <[email protected]>
219    
220            Introducing QueryTableFrame and a very coarse ShowTable implementation.
221    
222            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
223            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
224            The latter implements the selection GUI without dependency on a layer.
225            LayerTableFrame now is derived from QueryTableFrame and connects
226            to a layer.
227    
228            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
229            implementation that still needs work.
230    
231            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
232    
233    2003-05-22  Frank Koormann  <[email protected]>
234    
235            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
236            Added "outer_join = False" as optional parameter.
237            (TransientJoinedTable.create): If outer join is true, perform a
238            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
239            the left table. Records not matching are filled with 0 / None.
240    
241            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
242            (JoinDialog.OnJoin): Consider outer join check box.
243    
244    2003-05-22  Bernhard Herzog  <[email protected]>
245    
246            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
247            somewhat safer way. Storing the traceback in a local variable can
248            lead to memory leaks
249    
250    2003-05-22  Bernhard Herzog  <[email protected]>
251    
252            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
253            the wxMessageDialog's Destroy() method.
254    
255    2003-05-22  Frank Koormann  <[email protected]>
256    
257            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
258            TransientTable.Title()
259    
260    2003-05-22  Frank Koormann  <[email protected]>
261    
262            Join Dialog, initial version.
263    
264            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
265    
266            * Thuban/UI/join.py (JoinDialog): Functional implementation of
267            former framework. Renamed Table1/Table2 to LeftTable/RightTable
268            in all occurences.
269    
270            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
271            Typo fixed.
272    
273    2003-05-22  Bernhard Herzog  <[email protected]>
274    
275            Give the tables titles so that the GUI can display more meaningful
276            names. For now the titles are fixed but depend on e.g. filenames
277            or the titles of the joined tables.
278    
279            * Thuban/Model/transientdb.py (TransientTable.Title)
280            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
281    
282            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
283    
284            * test/test_transientdb.py
285            (TestTransientTable.test_auto_transient_table_title): New. Test
286            for the Title method
287            (TestTransientTable.test_transient_joined_table)
288            (TestTransientTable.test_transient_table): Add test for the Title
289            methods
290    
291            * test/test_memory_table.py (TestMemoryTable.test_title): New.
292            Test for the Title method
293    
294            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
295            the Title method
296    
297    2003-05-22  Bernhard Herzog  <[email protected]>
298    
299            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
300            Provide a better way to destroy the layers
301            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
302            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
303            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
304            the new way to destroy the layers.
305            (TestLayer.test_derived_store): New. Test for using a layer with a
306            DerivedShapeStore
307    
308            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
309            filename if the shape store actually has one.
310    
311    2003-05-22  Bernhard Herzog  <[email protected]>
312    
313            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
314            for the filename
315    
316            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
317            for the FileName method
318            (TestDBFTableWriting.test_write): Fix spelling of filename
319    
320    2003-05-22  Thomas Koester  <[email protected]>
321    
322            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
323            from SciParam that now really is immutable.
324    
325    2003-05-22  Frank Koormann  <[email protected]>
326    
327            Layer Top/Bottom placement added to legend.
328    
329            * Thuban/UI/legend.py
330            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
331            bound to tool events.
332            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
333            New, methods binding the event methods with the map methods.
334    
335            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
336            layer at top/bottom of layer stack.
337    
338            * Resources/Bitmaps/top_layer.xpm: New button icon.
339    
340            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
341    
342    2003-05-22  Bernhard Herzog  <[email protected]>
343    
344            * Thuban/Model/session.py (Session.RemoveTable): New method to
345            remove tables
346    
347            * test/test_session.py (TestSessionSimple.test_remove_table): New.
348            Test for RemoveTable
349    
350    2003-05-22  Thomas Koester  <[email protected]>
351    
352            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
353            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
354    
355    2003-05-22  Bernhard Herzog  <[email protected]>
356    
357            Implement a way to discover dependencies between tables and
358            shapestores.
359    
360            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
361            (TransientJoinedTable.Dependencies)
362            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
363            interface
364            (TransientJoinedTable.__init__): Keep tack of the original table
365            objects in addition to the corresponding transient tables.
366    
367            * Thuban/Model/table.py (DBFTable.Dependencies)
368            (MemoryTable.Dependencies): New. Implement the dependencies
369            interface
370    
371            * Thuban/Model/data.py (ShapeTable): New. Helper class for
372            ShapefileStore
373            (ShapefileStore.__init__): Use ShapeTable instead of
374            AutoTransientTable
375            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
376            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
377            methods for filename and type
378            (ShapefileStore.Dependencies): New. Implement the dependencies
379            interface
380            (DerivedShapeStore): New class to replace SimpleStore. The main
381            difference to SimpleStore is that it depends not on a shapefile
382            but another shapestore which expresses the dependencies a bit
383            better
384            (SimpleStore.__init__): Add deprecation warning.
385    
386            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
387            Test for the Dependencies method.
388    
389            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
390            New. Test for the Dependencies method.
391    
392            * test/test_transientdb.py
393            (TestTransientTable.test_auto_transient_table_dependencies): New.
394            Test for the Dependencies method.
395            (TestTransientTable.test_transient_joined_table): Add test for the
396            Dependencies method.
397    
398            * test/test_session.py (TestSessionSimple.setUp)
399            (TestSessionSimple.tearDown): New. Implement a better way to
400            destroy the sessions.
401            (TestSessionSimple.test_initial_state)
402            (TestSessionSimple.test_add_table): Bind session to self.session
403            so that it's destroyed by tearDown
404            (TestSessionSimple.test_open_shapefile): New. Test for
405            OpenShapefile and the object it returns
406    
407    2003-05-22  Bernhard Herzog  <[email protected]>
408    
409            * Thuban/Model/session.py (Session.AddTable): New method to
410            register tables with the session.
411            (Session.Tables): Return the tables registered with AddTable too.
412    
413            * test/test_session.py (TestSessionSimple.test_add_table): New.
414            Test case for the AddTable method
415    
416    2003-05-22  Frank Koormann  <[email protected]>
417    
418            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
419            lower right corner, center labels for selections, initialize controls
420            in reasonable order for keyboard navigation.
421    
422            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
423            (ProjFrame.__DoOnProjAvail): Determine position of current projection
424            using the wxListBox.FindString() method. Still a problem (#1886)
425    
426            * Thuban/UI/classifier.py
427            (Classifier.__init__, SelectPropertiesDialog.__init__)
428    
429            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
430            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
431            different classification types from here to __init__.
432            (GenUniquePanel.__init__): Set the column width of the first field
433            in the Field ListCtrl to the full width.
434    
435            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
436            Button to 'Export'. Center Buttons in Selection Box, set Focus to
437            Grid.
438            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
439            changes focus to the Selection when pressing "Alt-S".
440    
441            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
442            the text if not visible. The italic font sometimes exceeds the
443            rendering area.
444    
445    2003-05-21  Jonathan Coles   <[email protected]>
446    
447            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
448            to OnClose so that Thuban closes correctly.
449    
450            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
451            DockFrame.OnClose, not DockFrame._OnClose.
452    
453    2003-05-21  Jonathan Coles   <[email protected]>
454    
455            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
456            references to 'inf' and use new Range __init__ to pass floats
457            directly rather than converting them to strings first.
458            Fixes RTBug #1876.
459    
460            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
461            Use new Range ___init__ to pass floats.
462    
463            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
464            filename is a valid image file. Throw IOError otherwise.
465    
466            * Thuban/Model/range.py: Brought over new Range from SciParam that
467            is immutable and has an __init__ which can accept floats.
468    
469            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
470            into try block. AddLayer doesn't throw any exceptions anymore.
471            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
472            try block.
473    
474            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
475            the first item in choices. Fixes RTBug #1882.
476    
477            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
478            has gone to 0 which is a serious problem. abort.
479            (MapRenderer.draw_raster_layer): Catch IOError seperately and
480            print the error from GDAL.
481    
482            * Thuban/UI/tableview.py (TableGrid.__init__): Call
483            ToggleEventListeners to turn on listening.
484            (TableGrid.ToggleEventListeners): New. Turns event listening on
485            and off so as to prevent excessive messages.
486            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
487            to suppress excessive messages when selecting many rows.
488            Fixes RTBug #1880.
489    
490            * Thuban/UI/view.py: Added checks against if scale == 0. This
491            is a serious problem that can occur when an image without
492            geo data is loading and causes the map projection bounds to
493            go to infinity. Right now, the solution is to simply try
494            to recover.
495    
496            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
497            to set the MFILEReceiver attributes even if the data is NULL.
498    
499            * extensions/thuban/gdalwarp.cpp: Improved the error handling
500            and passed GDAL messages back up to the Python layer. Also
501            tried to fix some memory leaks that were present in the original
502            utility but didn't matter because the program aborted.
503    
504            * test/test_range.py: Copied over tests from SciParam. Removed
505            tests against importing. Fixes RTBug #1867.
506    
507    2003-05-21  Bernhard Herzog  <[email protected]>
508    
509            * test/test_load.py: Remove unused imports and restructure the
510            test code
511            (LoadSessionTest): Split into one class for each test and turn
512            LoadSessionTest itself into the base class for all such session
513            tests.
514            (ClassificationTest): New base class for load tests that test
515            classifications
516            (TestSingleLayer, TestLayerVisibility, TestClassification)
517            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
518            for the individual tests
519    
520            * test/support.py (FileLoadTestCase.filename): New base class for
521            file loading tests
522    
523    2003-05-21  Jan-Oliver Wagner <[email protected]>
524    
525            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
526            Mercator' to 'UTM Zone 32' as a more convenient example.
527            Added 'Gauss Krueger Zone 6'.
528    
529            * Data/iceland_sample_raster.thuban: political polygon now
530            filled transparent to have the raster image visible at once.
531    
532    2003-05-21  Frank Koormann  <[email protected]>
533    
534            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
535            OnClose() to keep in sync with extensions. Internally Thuban
536            still uses "underscored" names.
537    
538    2003-05-20  Jonathan Coles   <[email protected]>
539    
540            This puts back Raster layer support. These layers support projections
541            through the GDAL library. Currently, the CVS version is being used.
542            There are no Debian packages available although this may change soon.
543            A GDAL driver was extended to support writing to memory rather to
544            files.
545    
546            There is still some work that needs to be done, such as some error
547            handling when loading invalid images or when there is a problem
548            projecting the image. This putback simply checks in the majority
549            of the work.
550    
551            * setup.py: Add gdalwarp library extension.
552    
553            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
554            Defaults to False, but can be overridden by subclasses if they
555            support classification.
556            (RasterLayer): New. Defines a new layer that represents an
557            image.
558    
559            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
560            tag handler.
561            (SessionLoader.start_layer): Encode the filename.
562            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
563            New. Supports reading a rasterlayer tag.
564    
565            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
566    
567            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
568            get a string in Latin1. If we get such as string convert it to
569            unicode first, otherwise leave if alone before encoding.
570            (SessionSaver.write_layer): Add support for writing both Layers
571            and RasterLayers.
572    
573            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
574            The right argument may not be a string, it could also be a Column.
575    
576            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
577            Make initial window size 600x400. Fixes RTBug #1872.
578    
579            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
580            the dialog is constructed so that we can support layers that
581            do not have classifications.
582            (Classifier._OnTry): Only build a classification if the layer
583            supports one.
584    
585            * Thuban/UI/legend.py: Change all checks that a layer is an
586            instance of Layer into checks against BaseLayer.
587            (LegendTree.__FillTreeLayer): Only add children to a branch if
588            the layer supports classification.
589    
590            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
591            MainWindow.OpenSession): Don't proceed with an action if the
592            user chooses Cancel when they are asked to save changes.
593            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
594            user to select an image file. Create a new RasterLayer and add
595            it to the map.
596    
597            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
598            for rendering RasterLayer layers.
599            (MapRenderer.draw_raster_layer): Actually method that calls
600            the GDALWarp python wrapper and constructs an image from the
601            data returned.
602    
603            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
604            Choices symbols to match those used in the table query method.
605            Replace deprecated method calls on table with new method names.
606    
607            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
608            how small the scale can get. This still needs more testing.
609    
610            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
611            Provides a driver to output in .bmp format.
612    
613            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
614            New. Provides IO routines which write to memory, rather than a file.
615    
616            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
617            of the gdalwarp utility provided in GDAL. Added function calls
618            that can be accessed from python.
619    
620            * Data/iceland_sample_raster.thuban: New. Sample file that uses
621            a raster layer.
622    
623            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
624            layer image data.
625    
626            * Doc/thuban.dtd: Added rasterlayer attribute definition.
627    
628            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
629            tests associated with the raster layer code.
630    
631            * test/test_transientdb.py
632            (TestTransientTable.test_auto_transient_table_query): Added a test
633            for using a Column object as the "right" parameter to a query.
634    
635    2003-05-19  Frank Koormann  <[email protected]>
636    
637            * Thuban/version.py (get_changelog_date):
638            Catch exceptions if ChangeLog does not exist.
639    
640            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
641    
642    2003-05-19  Frank Koormann  <[email protected]>
643    
644            Extended version information for Thuban
645    
646            * Thuban/version.py: New, version information for Thuban: Last
647            modification date and last ChangeLog entry date.
648    
649            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
650            information: Display Thuban, wxPython and Python version.
651    
652    2003-05-16  Bernhard Herzog  <[email protected]>
653    
654            * Thuban/Model/save.py: Remove some unused imports including the
655            __future__ import for nested_scopes as Thuban relies on Python 2.2
656            now.
657            (XMLWriter.encode): Remove the special case for a None argument.
658            In the saver encode is always called with a string argument.
659    
660    2003-05-16  Bernhard Herzog  <[email protected]>
661    
662            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
663            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
664            of the bug was that e.g. float("1.2") would fail. Thuban now
665            requires 2.4.x.
666            
667    2003-05-16  Frank Koormann   <[email protected]>
668    
669            Printing enhancement and WMF export (under Win32)
670    
671            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
672            ScreenRenderer. Renders Map, Legend and Scalebar for export.
673            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
674            PrintRender.
675    
676            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
677            to fullfil information needed for PrinterRenderer.
678            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
679            (MapCanvas.Print): Adapted to new MapPrintout.
680            (OutputTransform): General calculations to transform from canvas
681            coordinates to export/printing devices.
682    
683            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
684            new method_command to call ExportMap, with platform dependency (only
685            __WXMSW__)
686      
687            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
688            of scalebar drawing area as new parameters.
689            
690            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
691    
692            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
693            Update to extended scalebar.DrawScalebar header.
694    
695            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
696    
697            * test/test_scalebar.py: Made test executable as standalone.
698    
699    2003-05-16  Bernhard Herzog  <[email protected]>
700    
701            * Thuban/Model/table.py (Table): Remove this compatibility alias
702            for DBFTable.
703    
704            * test/test_table.py: Import DBFTable as Table because that alias
705            doesn't exist anymore.
706    
707            * Thuban/UI/classgen.py: Remove some unused imports
708    
709    2003-05-14  Jonathan Coles   <[email protected]>
710    
711            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
712            Fix docstring.
713            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
714            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
715            values of the supplied range to determine the beginning and end
716            bounds of the generated classes.
717    
718            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
719            do not have a leading 0 (.5 is now accepted as well as 0.5).
720    
721            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
722            call to ClassGenerator.GenUniformDistribution.
723    
724            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
725            layout bug with the 'Projection' label.
726    
727            * test/support.py (FloatTestCase): New. Needed for the Range tests.
728    
729            * test/test_range.py: New. Imported from SciParam.
730    
731    2003-05-12  Jonathan Coles   <[email protected]>
732    
733            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
734            to table.UniqueValues() with calls that retrieve all the values
735            from the table. This will need to be replaced by a method on table
736            which can simply return the list (perhaps more efficiently).
737    
738    2003-05-12  Jonathan Coles   <[email protected]>
739    
740            The return value of ClassGenerator.CalculateQuantiles has changed.
741            Refer to the documentation for details.
742    
743            * test/test_classgen.py: Modified Quantile tests to use the
744            new return values.
745    
746            * Thuban/Model/classgen.py
747            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
748            use new return values from CalculateQuantiles to produce the correct
749            range bounds in the Classification.
750            (ClassGenerator.CalculateQuantiles): Add more comments describing
751            the return values and parameters. Make minor adjustments to improve
752            the legibility of the code. Fix problem with adjusted not being set
753            in most cases.
754    
755    2003-05-12  Frank Koormann <[email protected]>
756            
757            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
758            and latin1. Fixes #1851 finally.
759    
760    2003-05-09  Jonathan Coles   <[email protected]>
761    
762            * test/test_classgen.py: New. Tests the Quantile algorithm.
763    
764            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
765            Clean up debugging statement, add comments, fix a small bug in the
766            returned adjusted percentiles.
767            
768    2003-05-09  Jonathan Coles   <[email protected]>
769    
770            Introduces Range class from SciParam into the ClassGroupRange class,
771            and such ranges can now be saved and loaded from disk.
772    
773            Quantiles are now available in the Classification Generator.
774    
775            Initial support for building Queries on a table. Doesn't do anything
776            but run some tests.
777    
778            * Thuban/Model/classification.py: Explicit imports.
779            (ClassGroupRange): Use the Range class to store the underlying
780            range information. The interface remains the same, except for
781            GetRange(), and you can also supply a Range object as the min
782            parameter to SetRange or __init__.
783    
784            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
785            string appropriately for use in Thuban. Fixes RTbug #1851.
786            (SessionLoader.end_projection): Handle the context of the
787            projection tag a bit better by looking at what objects are not
788            None. There was an assumption that a projection tag for a map
789            could occur before any layers.
790            (SessionLoader.start_clrange): Provide backward compatibility for
791            reading min/max values as well as the new range parameter.
792    
793            * Thuban/Model/map.py: Explicit imports.
794    
795            * Thuban/Model/resource.py: Import _.
796            (ProjFileSaver.write): write header using projfile.dtd.
797    
798            * Thuban/Model/save.py: Explicit imports.
799            (XMLWriter.encode): New. Encode the given string from a format
800            used by Thuban into UTF-8. Fixes RTbug #1851.
801    
802            * Thuban/UI/classgen.py: Explicit imports.
803            (ClassGenDialog.__init__): Clean up the code and add support
804            for Quantiles.
805            (ClassGenDialog.OnOK): Add support for Quantiles.
806            (GenQuantilesPanel): New. Input panel for Quantiles.
807            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
808            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
809    
810            * Thuban/Model/classgen.py: New. Contains all the classes named above.
811    
812            * Thuban/UI/classifier.py: Explicit imports.
813            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
814            ClassTable.SetValueAsCustom): Reworked to use new Range class.
815    
816            * Thuban/UI/legend.py: Explicit imports.
817    
818            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
819            a Table menu and associated method calls.
820            (MainWindow.choose_color): Removed. No longer needed.
821    
822            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
823            should be disabled if no projection is selected in the available
824            list.
825    
826            * Thuban/UI/renderer.py: Explicit imports.
827    
828            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
829            with correctly selecting the rows and issuing the right events.
830            Be sure to call Skip() to allow the grid to do some of its own
831            handling which allows the rows to actually be selected.
832            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
833            selecting multiple shapes.
834            (LayerTableFrame): Support for building Queries.
835            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
836    
837            * Thuban/UI/tree.py: Explicit imports.
838    
839            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
840            table view can call it.
841    
842            * test/test_classification.py: Explicit imports.
843            (TestClassification.test_ClassGroupRange): Fix test for new
844            Range class.
845    
846            * Doc/thuban.dtd: Add range parameter for clrange.
847    
848            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
849            object in ClassGroupRange, and also uesd for inputting ranges in
850            the classifer table and elsewhere.
851    
852            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
853            yet.
854    
855    2003-05-09  Frank Koormann <[email protected]>
856    
857            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
858    
859    2003-05-08  Frank Koormann <[email protected]>
860    
861            Coding style updates
862    
863            * test/test_scalebar.py: Replaced tab indentation by spaces.
864    
865            * Thuban/UI/scalebar.py: Explicit imports.
866    
867    2003-05-08  Frank Koormann <[email protected]>
868    
869            * Thuban/UI/scalebar.py
870            (ScaleBar.DrawScalebar): Format string bug fixed.
871    
872    2003-05-08  Frank Koormann <[email protected]>
873    
874            Reorganization of scalebar component (no wx in Thuban/Model)
875    
876            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
877            (deriveInterval):
878            Calculate scalebar interval and unit which fits in width for scale.
879            (roundInterval): Round float.
880    
881            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
882    
883            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
884    
885            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
886    
887  2003-05-08  Frank Koormann <[email protected]>  2003-05-08  Frank Koormann <[email protected]>
888    
889          * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):          * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):

Legend:
Removed from v.860  
changed lines
  Added in v.1069

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26