/[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 958 by bh, Wed May 21 17:12:30 2003 UTC revision 1051 by frank, Tue May 27 09:32:07 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Frank Koormann  <[email protected]>
2    
3            Fix legend tree display problems under Win32
4    
5            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
6            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
7            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
8    
9            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
10    
11    2003-05-27  Jan-Oliver Wagner <[email protected]>
12    
13            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
14            'after' now allows to insert separators almost anywhere in the menu.
15    
16    2003-05-27  Frank Koormann  <[email protected]>
17    
18            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
19            "S" of selection box label to hint on hot key (Alt-S). Works under
20            Win32 but is ignored under GTK.
21    
22    2003-05-26  Frank Koormann  <[email protected]>
23    
24            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
25            Center Choices.
26    
27    2003-05-26  Bernhard Herzog  <[email protected]>
28    
29            Remove the Precision methods again. They're too DBF specific to be
30            part of the table interface and they're only used in table_to_dbf
31            anyway.
32            
33            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
34            fixed precision of 12 for doubles.
35            (TransientTableBase.Precision): Removed
36            (AutoTransientTable.Width): Delegate to self.table.
37    
38            * Thuban/Model/table.py (DBFTable.Precision)
39            (MemoryTable.Precision): Removed.
40            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
41            (table_to_dbf): Use a fixed precision of 12 for floats unless the
42            column object specifies something else.
43    
44            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
45            test for table_to_dbf
46    
47    2003-05-26  Bernhard Herzog  <[email protected]>
48    
49            * test/test_transientdb.py
50            (TestTransientTable.run_iceland_political_tests): Fix a comment.
51    
52    2003-05-26  Bernhard Herzog  <[email protected]>
53    
54            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
55            implementation. Mark parts of the file format strings for
56            localization.
57    
58            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
59            file and add the table to the tables managed by the session
60    
61            * test/test_session.py (TestSessionSimple.test_open_table_file):
62            New. test case for OpenTableFile
63    
64    2003-05-26  Jan-Oliver Wagner <[email protected]>
65    
66            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
67            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
68            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
69            Replace the true/false of wxWindows by True/False of Python 2.2.1.
70    
71    2003-05-26  Jan-Oliver Wagner <[email protected]>
72    
73            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
74            already a selection present, update the grid accordingly.
75    
76            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
77            resizeable and increase its initial size.
78    
79    2003-05-26  Frank Koormann  <[email protected]>
80    
81            Table export functionality
82    
83            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
84            Return width (in characters) for a column.
85            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
86            (table_to_dbf): Write table to dbf file.
87            (table_to_csv): Write table to csv file.
88    
89            * Thuban/Model/transientdb.py (TransientTableBase.Width,
90            TransientTableBase.Precision): Return column width and precision.
91    
92            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
93            or table_to_csv depending on file selection.
94    
95            * test/test_dbf_table.py:
96            Test table_to_dbf (extension of former part of test).
97    
98            * test/test_csv_table.py:
99            Test table_to_csv.
100    
101    2003-05-23  Jan-Oliver Wagner <[email protected]>
102    
103            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
104            Use QueryTableFrame instead of TableFrame.
105    
106            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
107            table window with 'Layer Table:' instead of 'Table:'.
108    
109    2003-05-23  Jan-Oliver Wagner <[email protected]>
110    
111            Give all tables a title via mix-in TitledObject.LayerShowTable
112    
113            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
114            only if it exists.
115    
116            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
117            and call its init-method with a default title. Remove Title() method.
118    
119            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
120            AutoTransientTable): mix-in TitledObject and call its init-method with
121            a default title. Remove Title() method.
122    
123    2003-05-23  Bernhard Herzog  <[email protected]>
124    
125            * Thuban/Model/session.py (Session.AddShapeStore): Define
126            AddShapeStore analogously to AddTable.
127    
128            * test/test_session.py (TestSessionSimple.test_add_shapestore):
129            New. Test for AddShapeStore
130    
131    2003-05-23  Jan-Oliver Wagner <[email protected]>
132    
133            Introducing QueryTableFrame and a very coarse ShowTable implementation.
134    
135            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
136            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
137            The latter implements the selection GUI without dependency on a layer.
138            LayerTableFrame now is derived from QueryTableFrame and connects
139            to a layer.
140    
141            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
142            implementation that still needs work.
143    
144            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
145    
146    2003-05-22  Frank Koormann  <[email protected]>
147    
148            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
149            Added "outer_join = False" as optional parameter.
150            (TransientJoinedTable.create): If outer join is true, perform a
151            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
152            the left table. Records not matching are filled with 0 / None.
153    
154            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
155            (JoinDialog.OnJoin): Consider outer join check box.
156    
157    2003-05-22  Bernhard Herzog  <[email protected]>
158    
159            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
160            somewhat safer way. Storing the traceback in a local variable can
161            lead to memory leaks
162    
163    2003-05-22  Bernhard Herzog  <[email protected]>
164    
165            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
166            the wxMessageDialog's Destroy() method.
167    
168    2003-05-22  Frank Koormann  <[email protected]>
169    
170            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
171            TransientTable.Title()
172    
173    2003-05-22  Frank Koormann  <[email protected]>
174    
175            Join Dialog, initial version.
176    
177            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
178    
179            * Thuban/UI/join.py (JoinDialog): Functional implementation of
180            former framework. Renamed Table1/Table2 to LeftTable/RightTable
181            in all occurences.
182    
183            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
184            Typo fixed.
185    
186    2003-05-22  Bernhard Herzog  <[email protected]>
187    
188            Give the tables titles so that the GUI can display more meaningful
189            names. For now the titles are fixed but depend on e.g. filenames
190            or the titles of the joined tables.
191    
192            * Thuban/Model/transientdb.py (TransientTable.Title)
193            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
194    
195            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
196    
197            * test/test_transientdb.py
198            (TestTransientTable.test_auto_transient_table_title): New. Test
199            for the Title method
200            (TestTransientTable.test_transient_joined_table)
201            (TestTransientTable.test_transient_table): Add test for the Title
202            methods
203    
204            * test/test_memory_table.py (TestMemoryTable.test_title): New.
205            Test for the Title method
206    
207            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
208            the Title method
209    
210    2003-05-22  Bernhard Herzog  <[email protected]>
211    
212            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
213            Provide a better way to destroy the layers
214            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
215            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
216            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
217            the new way to destroy the layers.
218            (TestLayer.test_derived_store): New. Test for using a layer with a
219            DerivedShapeStore
220    
221            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
222            filename if the shape store actually has one.
223    
224    2003-05-22  Bernhard Herzog  <[email protected]>
225    
226            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
227            for the filename
228    
229            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
230            for the FileName method
231            (TestDBFTableWriting.test_write): Fix spelling of filename
232    
233    2003-05-22  Thomas Koester  <[email protected]>
234    
235            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
236            from SciParam that now really is immutable.
237    
238    2003-05-22  Frank Koormann  <[email protected]>
239    
240            Layer Top/Bottom placement added to legend.
241    
242            * Thuban/UI/legend.py
243            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
244            bound to tool events.
245            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
246            New, methods binding the event methods with the map methods.
247    
248            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
249            layer at top/bottom of layer stack.
250    
251            * Resources/Bitmaps/top_layer.xpm: New button icon.
252    
253            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
254    
255    2003-05-22  Bernhard Herzog  <[email protected]>
256    
257            * Thuban/Model/session.py (Session.RemoveTable): New method to
258            remove tables
259    
260            * test/test_session.py (TestSessionSimple.test_remove_table): New.
261            Test for RemoveTable
262    
263    2003-05-22  Thomas Koester  <[email protected]>
264    
265            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
266            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
267    
268    2003-05-22  Bernhard Herzog  <[email protected]>
269    
270            Implement a way to discover dependencies between tables and
271            shapestores.
272    
273            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
274            (TransientJoinedTable.Dependencies)
275            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
276            interface
277            (TransientJoinedTable.__init__): Keep tack of the original table
278            objects in addition to the corresponding transient tables.
279    
280            * Thuban/Model/table.py (DBFTable.Dependencies)
281            (MemoryTable.Dependencies): New. Implement the dependencies
282            interface
283    
284            * Thuban/Model/data.py (ShapeTable): New. Helper class for
285            ShapefileStore
286            (ShapefileStore.__init__): Use ShapeTable instead of
287            AutoTransientTable
288            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
289            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
290            methods for filename and type
291            (ShapefileStore.Dependencies): New. Implement the dependencies
292            interface
293            (DerivedShapeStore): New class to replace SimpleStore. The main
294            difference to SimpleStore is that it depends not on a shapefile
295            but another shapestore which expresses the dependencies a bit
296            better
297            (SimpleStore.__init__): Add deprecation warning.
298    
299            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
300            Test for the Dependencies method.
301    
302            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
303            New. Test for the Dependencies method.
304    
305            * test/test_transientdb.py
306            (TestTransientTable.test_auto_transient_table_dependencies): New.
307            Test for the Dependencies method.
308            (TestTransientTable.test_transient_joined_table): Add test for the
309            Dependencies method.
310    
311            * test/test_session.py (TestSessionSimple.setUp)
312            (TestSessionSimple.tearDown): New. Implement a better way to
313            destroy the sessions.
314            (TestSessionSimple.test_initial_state)
315            (TestSessionSimple.test_add_table): Bind session to self.session
316            so that it's destroyed by tearDown
317            (TestSessionSimple.test_open_shapefile): New. Test for
318            OpenShapefile and the object it returns
319    
320    2003-05-22  Bernhard Herzog  <[email protected]>
321    
322            * Thuban/Model/session.py (Session.AddTable): New method to
323            register tables with the session.
324            (Session.Tables): Return the tables registered with AddTable too.
325    
326            * test/test_session.py (TestSessionSimple.test_add_table): New.
327            Test case for the AddTable method
328    
329    2003-05-22  Frank Koormann  <[email protected]>
330    
331            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
332            lower right corner, center labels for selections, initialize controls
333            in reasonable order for keyboard navigation.
334    
335            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
336            (ProjFrame.__DoOnProjAvail): Determine position of current projection
337            using the wxListBox.FindString() method. Still a problem (#1886)
338    
339            * Thuban/UI/classifier.py
340            (Classifier.__init__, SelectPropertiesDialog.__init__)
341    
342            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
343            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
344            different classification types from here to __init__.
345            (GenUniquePanel.__init__): Set the column width of the first field
346            in the Field ListCtrl to the full width.
347    
348            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
349            Button to 'Export'. Center Buttons in Selection Box, set Focus to
350            Grid.
351            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
352            changes focus to the Selection when pressing "Alt-S".
353    
354            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
355            the text if not visible. The italic font sometimes exceeds the
356            rendering area.
357    
358    2003-05-21  Jonathan Coles   <[email protected]>
359    
360            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
361            to OnClose so that Thuban closes correctly.
362    
363            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
364            DockFrame.OnClose, not DockFrame._OnClose.
365    
366    2003-05-21  Jonathan Coles   <[email protected]>
367    
368            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
369            references to 'inf' and use new Range __init__ to pass floats
370            directly rather than converting them to strings first.
371            Fixes RTBug #1876.
372    
373            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
374            Use new Range ___init__ to pass floats.
375    
376            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
377            filename is a valid image file. Throw IOError otherwise.
378    
379            * Thuban/Model/range.py: Brought over new Range from SciParam that
380            is immutable and has an __init__ which can accept floats.
381    
382            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
383            into try block. AddLayer doesn't throw any exceptions anymore.
384            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
385            try block.
386    
387            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
388            the first item in choices. Fixes RTBug #1882.
389    
390            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
391            has gone to 0 which is a serious problem. abort.
392            (MapRenderer.draw_raster_layer): Catch IOError seperately and
393            print the error from GDAL.
394    
395            * Thuban/UI/tableview.py (TableGrid.__init__): Call
396            ToggleEventListeners to turn on listening.
397            (TableGrid.ToggleEventListeners): New. Turns event listening on
398            and off so as to prevent excessive messages.
399            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
400            to suppress excessive messages when selecting many rows.
401            Fixes RTBug #1880.
402    
403            * Thuban/UI/view.py: Added checks against if scale == 0. This
404            is a serious problem that can occur when an image without
405            geo data is loading and causes the map projection bounds to
406            go to infinity. Right now, the solution is to simply try
407            to recover.
408    
409            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
410            to set the MFILEReceiver attributes even if the data is NULL.
411    
412            * extensions/thuban/gdalwarp.cpp: Improved the error handling
413            and passed GDAL messages back up to the Python layer. Also
414            tried to fix some memory leaks that were present in the original
415            utility but didn't matter because the program aborted.
416    
417            * test/test_range.py: Copied over tests from SciParam. Removed
418            tests against importing. Fixes RTBug #1867.
419    
420  2003-05-21  Bernhard Herzog  <[email protected]>  2003-05-21  Bernhard Herzog  <[email protected]>
421    
422          * test/test_load.py: Remove unused imports and restructure the          * test/test_load.py: Remove unused imports and restructure the

Legend:
Removed from v.958  
changed lines
  Added in v.1051

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26