/[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 803 by jonathan, Wed Apr 30 17:07:01 2003 UTC revision 1141 by jan, Fri Jun 6 11:19:25 2003 UTC
# Line 1  Line 1 
1    2003-06-06  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
4            the menu items.
5    
6    2003-06-05  Frank Koormann  <[email protected]>
7    
8            * Thuban/UI/identifyview.py (IdentifyView.__init__):
9            Layout reimplemented without panel. Make life easier to fit the list
10            in the dialog.
11    
12    2003-06-05  Frank Koormann  <[email protected]>
13    
14            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
15            once on initialisation (Former implementation resulted in multiple
16            entries for each projection).
17            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
18            if set, select the projection found under the specified name. This
19            overwrites any other selection estimate.
20            Removed projchoice filling from this method.
21            (ProjFrame._OnSave, ProjFrame._OnAddToList):
22            Updated call of ProjFrame.__FillAvailList
23            (LCCPanel._DoLayout): Moved parameter controls in more common order.
24    
25            * Resources/Projections/defaults.proj: Extended defaults representing
26            various common European projections.
27    
28    2003-06-05  Frank Koormann  <[email protected]>
29    
30            * Thuban/UI/identifyview.py (IdentifyView.__init__):
31            Use ListCtrl instead of GridCtrl
32    
33            * Thuban/Model/resource.py:
34            Guess location of .thuban directory from tempdir parent directory.
35    
36            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
37            Guess location of .thuban directory from tempdir parent directory.
38    
39    2003-06-04  Bernhard Herzog  <[email protected]>
40    
41            Do not cache the values returned by the tree widget's
42            GetFirstChild and GetNextChild methods because it led to lots of
43            segfaults. The new way requires more brute force but is more
44            reliable.
45    
46            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
47            variable layer2id
48            (LegendTree.find_layer): New method to do with brute force what
49            layer2id tried to accomplish
50            (LegendTree._OnMsgLayerChanged)
51            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
52            Use find_layer instead of layer2id
53            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
54            update layer2id anymore
55            (LegendTree._OnMsgMapLayersRemoved)
56            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
57    
58    2003-06-03  Thomas Koester  <[email protected]>
59    
60            * Thuban/Model/classgen.py (GenQuantiles0): New function.
61    
62    2003-06-02  Bernhard Herzog  <[email protected]>
63    
64            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
65            New commands.
66            (main_menu): Add the new commands.
67            (MainWindow.TableRename): New. Implementation of the table_rename
68            command.
69            (MainWindow.RenameLayer): New. Implementation of the layer_rename
70            command.
71    
72            * Thuban/Model/session.py (Session.AddTable): call self.changed to
73            set the modified flag
74    
75            * test/test_session.py (TestSessionSimple.test_add_table): Test
76            whether the modified flag is set properly
77    
78            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
79            instead of issue so that the modified flags get updated.
80    
81            * test/test_base.py (SomeTitledObject): Derive from Modifiable
82            instead of Publisher to reflect reality better and to accomodate
83            the fact that SetTitle now calls changed instead of issue
84    
85    2003-06-02  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
88            acquisition has to happen before the try in a try-finally.
89    
90    2003-06-02  Bernhard Herzog  <[email protected]>
91    
92            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
93            possible that a layer is removed that is not currently selected in
94            the legend so don't check for this.
95    
96    2003-05-30  Bernhard Herzog  <[email protected]>
97    
98            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
99            variables to None that have direct or indirect references to
100            shapefiles or dbf files to make sure that they do go away and the
101            files are closed.
102    
103    2003-05-30  Bernhard Herzog  <[email protected]>
104    
105            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
106            availImgListIndices when a new image list is created
107            
108    2003-05-30  Bernhard Herzog  <[email protected]>
109    
110            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
111            changing_selection to indicate whether the LegendTree code itself
112            is currently changing the selection
113            (LegendTree.normalize_selection): New method to normalize the
114            selection by selecting the layer item even if the user clicked on
115            the classification.
116            (LegendTree._OnSelChanged): normalize the selection. This works
117            around a bug in wx which doesn't keep track of the selection
118            properly when subtrees are deleted.
119    
120    2003-05-30  Bernhard Herzog  <[email protected]>
121    
122            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
123            maximum and minimum scale factors.
124    
125            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
126            changes in classgen.py
127    
128    2003-05-30  Jonathan Coles   <[email protected]>
129    
130            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
131            all the methods functions. Fixes RTBug #1903.
132    
133            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
134            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
135            RTBug #1907.
136    
137            * Thuban/UI/classgen.py: Use classgen functions that were part
138            of the ClassGenerator class. Put try/finally blocks around
139            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
140            RTBug #1904.
141    
142            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
143    
144            * Thuban/UI/legend.py: The legend was cleared and repopulated any
145            time something changed which caused some state to be lost such
146            as which children were expanded or collapsed. Fixes RTBug #1901.
147            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
148            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
149            the legend but not in the map.
150            (LegendTree.__FillTree): Move main functionality out into smaller
151            methods that can be used by other methods.
152            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
153            if they are available.
154            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
155            that we override the wxTreeCtrl method. Iterate over children
156            and call __RemoveLayer.
157            (LegendTree.__AddLayer): New. Add a new layer to the legend.
158            (LegendTree.__RemoveLayer): Remove a layer from the legend.
159            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
160            Should only be called with the id of a layer branch.
161            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
162            Returns the root item or creates one if necessary.
163    
164            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
165            ProjectRasterFile with tuple arguments instead of strings.
166    
167            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
168            with try/finally. Fixes RTBug #1904.
169    
170            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
171            with try/finally. Fixes RTBug #1904.
172            (MapCanvas.FitSelectedToWindow): If a single point is selected
173            simply center it on the display. Fixes RTBug #1849.
174    
175            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
176            to be compiled as a standalone app. Now the code can only be
177            called from Python which simplifies the parameter passing.
178            (ProjectRasterFile): Handle Python arguments. Remove code that
179            checks for a destination dataset. Add more clean up code.
180    
181            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
182            TestMapWithContents.test_lower_layer_bottom):
183            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
184            Fixes RTBug #1907.
185    
186            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
187            extent to the map when the legend is toggled. Fixes RTBug #1881.
188    
189    2003-05-29  Jan-Oliver Wagner <[email protected]>
190    
191            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
192            unsubscribes all that is subcribed in __init__.
193    
194    2003-05-28  Bernhard Herzog  <[email protected]>
195    
196            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
197            (MainWindow.CanDuplicateLayer): New methods to implement the
198            Layer/Duplicate command.
199            (layer_duplicate command): New.
200            (main_menu): Add layer_duplicate to the Layer menu.
201    
202    2003-05-28  Bernhard Herzog  <[email protected]>
203    
204            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
205            renderer so that NULL/None values get displayed differently (by a
206            gray rectangle).
207            (TableGrid.__init__): Override the default renderers
208    
209    2003-05-28  Bernhard Herzog  <[email protected]>
210    
211            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
212            classification to "None" if the type of the field has changed.
213    
214            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
215            test for the Layer.SetShapeStore method
216    
217    2003-05-28  Jan-Oliver Wagner <[email protected]>
218    
219            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
220            does not necessarily have a filename).
221    
222    2003-05-28  Jan-Oliver Wagner <[email protected]>
223    
224            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
225            sort the selection list for the dialog.
226    
227    2003-05-28  Frank Koormann  <[email protected]>
228    
229            * extensions/thuban/wxproj.cpp
230            (project_point): Removed cast to int for projected point coordinates.
231            (shape_centroid): Return last point if all polygon vertices fall
232            to one point.
233    
234    2003-05-28  Bernhard Herzog  <[email protected]>
235    
236            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
237            with layers that don't have shapestores, i.e. raster layers.
238    
239    2003-05-28  Bernhard Herzog  <[email protected]>
240    
241            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
242            when determining the title from the filename.
243    
244            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
245            reflect changes in the way the title is derived from the filename
246    
247    2003-05-28  Frank Koormann  <[email protected]>
248    
249            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
250            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
251    
252    2003-05-27  Bernhard Herzog  <[email protected]>
253    
254            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
255            delegate SelectedLayer.
256            (MainWindow.LayerUnjoinTable): Implement.
257            (_can_unjoin): New. Helper function for the sensitivity of the
258            layer/unjoin command.
259    
260            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
261            (DerivedShapeStore.OrigShapeStore): New. Return the original
262            shapestore. Used to figure out how to unjoin.
263            (DerivedShapeStore.Shapefile): Fix a typo.
264    
265    2003-05-27  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
268            well
269            (JoinDialog.__init__): Use the layer parameter and only build the
270            left choice when a layer is given
271            (JoinDialog.OnJoin): Handle layer joins as well
272            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
273            that the user selects the "Select..." item. The sensitivitly
274            updating is now in update_sensitivity
275            (JoinDialog.y): New method to refactor the sensitivity update of
276            the join button into its own method.
277    
278            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
279    
280    2003-05-27  Bernhard Herzog  <[email protected]>
281    
282            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
283            iff there are unreferenced tables in the session
284    
285    2003-05-27  Bernhard Herzog  <[email protected]>
286    
287            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
288    
289            * Thuban/Model/session.py (Session.UnreferencedTables): New method
290            to return tables that are not referenced by other tables or shape
291            stores and can be removed.
292            (Session.RemoveTable): Issue a TABLE_REMOVED message after
293            removing the table
294    
295            * Thuban/UI/mainwindow.py: Remove unused imports
296            (MainWindow.TableClose): Implement.
297    
298            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
299            messages so that the frame will be automatically closed when a new
300            session is opened or the table is removed.
301            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
302            __init__
303            (TableFrame.close_on_session_replaced)
304            (TableFrame.close_on_table_removed): New. Subscribers that close
305            the window
306    
307            * test/test_session.py (TestSessionMessages.test_remove_table)
308            (TestSessionSimple.test_remove_table): Move the test to
309            TestSessionSimple and add test for the TABLE_REMOVED message
310            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
311            (TestSessionSimple.test_unreferenced_tables) New. Test for the
312            UnreferencedTables method.
313            (UnreferencedTablesTests): New. Class with some more sophisticated
314            tests for UnreferencedTables.
315    
316    2003-05-27  Frank Koormann  <[email protected]>
317    
318            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
319            display has some unwanted side effects. Removed again.
320    
321    2003-05-27  Frank Koormann  <[email protected]>
322    
323            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
324    
325            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
326    
327    2003-05-27  Jan-Oliver Wagner <[email protected]>
328    
329            * test/test_menu.py (MenuTest.test): Added test for
330            Menu.RemoveItem().
331    
332            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
333            the menu.
334    
335    2003-05-27  Frank Koormann  <[email protected]>
336            
337            Nonmodal dialogs without parent (i.e. they can fall behind the main
338            window)
339    
340            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
341            all dialogs in the dialogs dictionary and the canvas.
342    
343            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
344            parent, i.e. can fall behind other windows.
345            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
346            dictionary before removing it.
347    
348            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
349    
350            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
351            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
352            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
353    
354    2003-05-27  Bernhard Herzog  <[email protected]>
355    
356            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
357            tableview dialog
358            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
359            Also, don't use the table's titles as the dialog names. The titles
360            aren't guaranteed to be unique.
361            (MainWindow.TableOpen): Open a table view dialog after opening the
362            table
363    
364    2003-05-27  Bernhard Herzog  <[email protected]>
365    
366            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
367            effect can be achieved by simply closing the window showing the
368            table.
369            (MainWindow.TableHide): Removed.
370            (main_menu): Removed "table_hide"
371    
372    2003-05-27  Frank Koormann  <[email protected]>
373    
374            Fix legend tree display problems under Win32
375    
376            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
377            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
378            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
379    
380            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
381    
382    2003-05-27  Jan-Oliver Wagner <[email protected]>
383    
384            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
385            'after' now allows to insert separators almost anywhere in the menu.
386    
387    2003-05-27  Frank Koormann  <[email protected]>
388    
389            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
390            "S" of selection box label to hint on hot key (Alt-S). Works under
391            Win32 but is ignored under GTK.
392    
393    2003-05-26  Frank Koormann  <[email protected]>
394    
395            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
396            Center Choices.
397    
398    2003-05-26  Bernhard Herzog  <[email protected]>
399    
400            Remove the Precision methods again. They're too DBF specific to be
401            part of the table interface and they're only used in table_to_dbf
402            anyway.
403            
404            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
405            fixed precision of 12 for doubles.
406            (TransientTableBase.Precision): Removed
407            (AutoTransientTable.Width): Delegate to self.table.
408    
409            * Thuban/Model/table.py (DBFTable.Precision)
410            (MemoryTable.Precision): Removed.
411            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
412            (table_to_dbf): Use a fixed precision of 12 for floats unless the
413            column object specifies something else.
414    
415            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
416            test for table_to_dbf
417    
418    2003-05-26  Bernhard Herzog  <[email protected]>
419    
420            * test/test_transientdb.py
421            (TestTransientTable.run_iceland_political_tests): Fix a comment.
422    
423    2003-05-26  Bernhard Herzog  <[email protected]>
424    
425            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
426            implementation. Mark parts of the file format strings for
427            localization.
428    
429            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
430            file and add the table to the tables managed by the session
431    
432            * test/test_session.py (TestSessionSimple.test_open_table_file):
433            New. test case for OpenTableFile
434    
435    2003-05-26  Jan-Oliver Wagner <[email protected]>
436    
437            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
438            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
439            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
440            Replace the true/false of wxWindows by True/False of Python 2.2.1.
441    
442    2003-05-26  Jan-Oliver Wagner <[email protected]>
443    
444            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
445            already a selection present, update the grid accordingly.
446    
447            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
448            resizeable and increase its initial size.
449    
450    2003-05-26  Frank Koormann  <[email protected]>
451    
452            Table export functionality
453    
454            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
455            Return width (in characters) for a column.
456            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
457            (table_to_dbf): Write table to dbf file.
458            (table_to_csv): Write table to csv file.
459    
460            * Thuban/Model/transientdb.py (TransientTableBase.Width,
461            TransientTableBase.Precision): Return column width and precision.
462    
463            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
464            or table_to_csv depending on file selection.
465    
466            * test/test_dbf_table.py:
467            Test table_to_dbf (extension of former part of test).
468    
469            * test/test_csv_table.py:
470            Test table_to_csv.
471    
472    2003-05-23  Jan-Oliver Wagner <[email protected]>
473    
474            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
475            Use QueryTableFrame instead of TableFrame.
476    
477            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
478            table window with 'Layer Table:' instead of 'Table:'.
479    
480    2003-05-23  Jan-Oliver Wagner <[email protected]>
481    
482            Give all tables a title via mix-in TitledObject.LayerShowTable
483    
484            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
485            only if it exists.
486    
487            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
488            and call its init-method with a default title. Remove Title() method.
489    
490            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
491            AutoTransientTable): mix-in TitledObject and call its init-method with
492            a default title. Remove Title() method.
493    
494    2003-05-23  Bernhard Herzog  <[email protected]>
495    
496            * Thuban/Model/session.py (Session.AddShapeStore): Define
497            AddShapeStore analogously to AddTable.
498    
499            * test/test_session.py (TestSessionSimple.test_add_shapestore):
500            New. Test for AddShapeStore
501    
502    2003-05-23  Jan-Oliver Wagner <[email protected]>
503    
504            Introducing QueryTableFrame and a very coarse ShowTable implementation.
505    
506            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
507            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
508            The latter implements the selection GUI without dependency on a layer.
509            LayerTableFrame now is derived from QueryTableFrame and connects
510            to a layer.
511    
512            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
513            implementation that still needs work.
514    
515            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
516    
517    2003-05-22  Frank Koormann  <[email protected]>
518    
519            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
520            Added "outer_join = False" as optional parameter.
521            (TransientJoinedTable.create): If outer join is true, perform a
522            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
523            the left table. Records not matching are filled with 0 / None.
524    
525            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
526            (JoinDialog.OnJoin): Consider outer join check box.
527    
528    2003-05-22  Bernhard Herzog  <[email protected]>
529    
530            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
531            somewhat safer way. Storing the traceback in a local variable can
532            lead to memory leaks
533    
534    2003-05-22  Bernhard Herzog  <[email protected]>
535    
536            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
537            the wxMessageDialog's Destroy() method.
538    
539    2003-05-22  Frank Koormann  <[email protected]>
540    
541            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
542            TransientTable.Title()
543    
544    2003-05-22  Frank Koormann  <[email protected]>
545    
546            Join Dialog, initial version.
547    
548            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
549    
550            * Thuban/UI/join.py (JoinDialog): Functional implementation of
551            former framework. Renamed Table1/Table2 to LeftTable/RightTable
552            in all occurences.
553    
554            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
555            Typo fixed.
556    
557    2003-05-22  Bernhard Herzog  <[email protected]>
558    
559            Give the tables titles so that the GUI can display more meaningful
560            names. For now the titles are fixed but depend on e.g. filenames
561            or the titles of the joined tables.
562    
563            * Thuban/Model/transientdb.py (TransientTable.Title)
564            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
565    
566            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
567    
568            * test/test_transientdb.py
569            (TestTransientTable.test_auto_transient_table_title): New. Test
570            for the Title method
571            (TestTransientTable.test_transient_joined_table)
572            (TestTransientTable.test_transient_table): Add test for the Title
573            methods
574    
575            * test/test_memory_table.py (TestMemoryTable.test_title): New.
576            Test for the Title method
577    
578            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
579            the Title method
580    
581    2003-05-22  Bernhard Herzog  <[email protected]>
582    
583            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
584            Provide a better way to destroy the layers
585            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
586            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
587            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
588            the new way to destroy the layers.
589            (TestLayer.test_derived_store): New. Test for using a layer with a
590            DerivedShapeStore
591    
592            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
593            filename if the shape store actually has one.
594    
595    2003-05-22  Bernhard Herzog  <[email protected]>
596    
597            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
598            for the filename
599    
600            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
601            for the FileName method
602            (TestDBFTableWriting.test_write): Fix spelling of filename
603    
604    2003-05-22  Thomas Koester  <[email protected]>
605    
606            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
607            from SciParam that now really is immutable.
608    
609    2003-05-22  Frank Koormann  <[email protected]>
610    
611            Layer Top/Bottom placement added to legend.
612    
613            * Thuban/UI/legend.py
614            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
615            bound to tool events.
616            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
617            New, methods binding the event methods with the map methods.
618    
619            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
620            layer at top/bottom of layer stack.
621    
622            * Resources/Bitmaps/top_layer.xpm: New button icon.
623    
624            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
625    
626    2003-05-22  Bernhard Herzog  <[email protected]>
627    
628            * Thuban/Model/session.py (Session.RemoveTable): New method to
629            remove tables
630    
631            * test/test_session.py (TestSessionSimple.test_remove_table): New.
632            Test for RemoveTable
633    
634    2003-05-22  Thomas Koester  <[email protected]>
635    
636            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
637            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
638    
639    2003-05-22  Bernhard Herzog  <[email protected]>
640    
641            Implement a way to discover dependencies between tables and
642            shapestores.
643    
644            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
645            (TransientJoinedTable.Dependencies)
646            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
647            interface
648            (TransientJoinedTable.__init__): Keep tack of the original table
649            objects in addition to the corresponding transient tables.
650    
651            * Thuban/Model/table.py (DBFTable.Dependencies)
652            (MemoryTable.Dependencies): New. Implement the dependencies
653            interface
654    
655            * Thuban/Model/data.py (ShapeTable): New. Helper class for
656            ShapefileStore
657            (ShapefileStore.__init__): Use ShapeTable instead of
658            AutoTransientTable
659            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
660            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
661            methods for filename and type
662            (ShapefileStore.Dependencies): New. Implement the dependencies
663            interface
664            (DerivedShapeStore): New class to replace SimpleStore. The main
665            difference to SimpleStore is that it depends not on a shapefile
666            but another shapestore which expresses the dependencies a bit
667            better
668            (SimpleStore.__init__): Add deprecation warning.
669    
670            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
671            Test for the Dependencies method.
672    
673            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
674            New. Test for the Dependencies method.
675    
676            * test/test_transientdb.py
677            (TestTransientTable.test_auto_transient_table_dependencies): New.
678            Test for the Dependencies method.
679            (TestTransientTable.test_transient_joined_table): Add test for the
680            Dependencies method.
681    
682            * test/test_session.py (TestSessionSimple.setUp)
683            (TestSessionSimple.tearDown): New. Implement a better way to
684            destroy the sessions.
685            (TestSessionSimple.test_initial_state)
686            (TestSessionSimple.test_add_table): Bind session to self.session
687            so that it's destroyed by tearDown
688            (TestSessionSimple.test_open_shapefile): New. Test for
689            OpenShapefile and the object it returns
690    
691    2003-05-22  Bernhard Herzog  <[email protected]>
692    
693            * Thuban/Model/session.py (Session.AddTable): New method to
694            register tables with the session.
695            (Session.Tables): Return the tables registered with AddTable too.
696    
697            * test/test_session.py (TestSessionSimple.test_add_table): New.
698            Test case for the AddTable method
699    
700    2003-05-22  Frank Koormann  <[email protected]>
701    
702            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
703            lower right corner, center labels for selections, initialize controls
704            in reasonable order for keyboard navigation.
705    
706            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
707            (ProjFrame.__DoOnProjAvail): Determine position of current projection
708            using the wxListBox.FindString() method. Still a problem (#1886)
709    
710            * Thuban/UI/classifier.py
711            (Classifier.__init__, SelectPropertiesDialog.__init__)
712    
713            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
714            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
715            different classification types from here to __init__.
716            (GenUniquePanel.__init__): Set the column width of the first field
717            in the Field ListCtrl to the full width.
718    
719            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
720            Button to 'Export'. Center Buttons in Selection Box, set Focus to
721            Grid.
722            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
723            changes focus to the Selection when pressing "Alt-S".
724    
725            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
726            the text if not visible. The italic font sometimes exceeds the
727            rendering area.
728    
729    2003-05-21  Jonathan Coles   <[email protected]>
730    
731            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
732            to OnClose so that Thuban closes correctly.
733    
734            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
735            DockFrame.OnClose, not DockFrame._OnClose.
736    
737    2003-05-21  Jonathan Coles   <[email protected]>
738    
739            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
740            references to 'inf' and use new Range __init__ to pass floats
741            directly rather than converting them to strings first.
742            Fixes RTBug #1876.
743    
744            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
745            Use new Range ___init__ to pass floats.
746    
747            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
748            filename is a valid image file. Throw IOError otherwise.
749    
750            * Thuban/Model/range.py: Brought over new Range from SciParam that
751            is immutable and has an __init__ which can accept floats.
752    
753            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
754            into try block. AddLayer doesn't throw any exceptions anymore.
755            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
756            try block.
757    
758            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
759            the first item in choices. Fixes RTBug #1882.
760    
761            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
762            has gone to 0 which is a serious problem. abort.
763            (MapRenderer.draw_raster_layer): Catch IOError seperately and
764            print the error from GDAL.
765    
766            * Thuban/UI/tableview.py (TableGrid.__init__): Call
767            ToggleEventListeners to turn on listening.
768            (TableGrid.ToggleEventListeners): New. Turns event listening on
769            and off so as to prevent excessive messages.
770            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
771            to suppress excessive messages when selecting many rows.
772            Fixes RTBug #1880.
773    
774            * Thuban/UI/view.py: Added checks against if scale == 0. This
775            is a serious problem that can occur when an image without
776            geo data is loading and causes the map projection bounds to
777            go to infinity. Right now, the solution is to simply try
778            to recover.
779    
780            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
781            to set the MFILEReceiver attributes even if the data is NULL.
782    
783            * extensions/thuban/gdalwarp.cpp: Improved the error handling
784            and passed GDAL messages back up to the Python layer. Also
785            tried to fix some memory leaks that were present in the original
786            utility but didn't matter because the program aborted.
787    
788            * test/test_range.py: Copied over tests from SciParam. Removed
789            tests against importing. Fixes RTBug #1867.
790    
791    2003-05-21  Bernhard Herzog  <[email protected]>
792    
793            * test/test_load.py: Remove unused imports and restructure the
794            test code
795            (LoadSessionTest): Split into one class for each test and turn
796            LoadSessionTest itself into the base class for all such session
797            tests.
798            (ClassificationTest): New base class for load tests that test
799            classifications
800            (TestSingleLayer, TestLayerVisibility, TestClassification)
801            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
802            for the individual tests
803    
804            * test/support.py (FileLoadTestCase.filename): New base class for
805            file loading tests
806    
807    2003-05-21  Jan-Oliver Wagner <[email protected]>
808    
809            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
810            Mercator' to 'UTM Zone 32' as a more convenient example.
811            Added 'Gauss Krueger Zone 6'.
812    
813            * Data/iceland_sample_raster.thuban: political polygon now
814            filled transparent to have the raster image visible at once.
815    
816    2003-05-21  Frank Koormann  <[email protected]>
817    
818            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
819            OnClose() to keep in sync with extensions. Internally Thuban
820            still uses "underscored" names.
821    
822    2003-05-20  Jonathan Coles   <[email protected]>
823    
824            This puts back Raster layer support. These layers support projections
825            through the GDAL library. Currently, the CVS version is being used.
826            There are no Debian packages available although this may change soon.
827            A GDAL driver was extended to support writing to memory rather to
828            files.
829    
830            There is still some work that needs to be done, such as some error
831            handling when loading invalid images or when there is a problem
832            projecting the image. This putback simply checks in the majority
833            of the work.
834    
835            * setup.py: Add gdalwarp library extension.
836    
837            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
838            Defaults to False, but can be overridden by subclasses if they
839            support classification.
840            (RasterLayer): New. Defines a new layer that represents an
841            image.
842    
843            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
844            tag handler.
845            (SessionLoader.start_layer): Encode the filename.
846            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
847            New. Supports reading a rasterlayer tag.
848    
849            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
850    
851            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
852            get a string in Latin1. If we get such as string convert it to
853            unicode first, otherwise leave if alone before encoding.
854            (SessionSaver.write_layer): Add support for writing both Layers
855            and RasterLayers.
856    
857            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
858            The right argument may not be a string, it could also be a Column.
859    
860            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
861            Make initial window size 600x400. Fixes RTBug #1872.
862    
863            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
864            the dialog is constructed so that we can support layers that
865            do not have classifications.
866            (Classifier._OnTry): Only build a classification if the layer
867            supports one.
868    
869            * Thuban/UI/legend.py: Change all checks that a layer is an
870            instance of Layer into checks against BaseLayer.
871            (LegendTree.__FillTreeLayer): Only add children to a branch if
872            the layer supports classification.
873    
874            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
875            MainWindow.OpenSession): Don't proceed with an action if the
876            user chooses Cancel when they are asked to save changes.
877            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
878            user to select an image file. Create a new RasterLayer and add
879            it to the map.
880    
881            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
882            for rendering RasterLayer layers.
883            (MapRenderer.draw_raster_layer): Actually method that calls
884            the GDALWarp python wrapper and constructs an image from the
885            data returned.
886    
887            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
888            Choices symbols to match those used in the table query method.
889            Replace deprecated method calls on table with new method names.
890    
891            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
892            how small the scale can get. This still needs more testing.
893    
894            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
895            Provides a driver to output in .bmp format.
896    
897            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
898            New. Provides IO routines which write to memory, rather than a file.
899    
900            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
901            of the gdalwarp utility provided in GDAL. Added function calls
902            that can be accessed from python.
903    
904            * Data/iceland_sample_raster.thuban: New. Sample file that uses
905            a raster layer.
906    
907            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
908            layer image data.
909    
910            * Doc/thuban.dtd: Added rasterlayer attribute definition.
911    
912            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
913            tests associated with the raster layer code.
914    
915            * test/test_transientdb.py
916            (TestTransientTable.test_auto_transient_table_query): Added a test
917            for using a Column object as the "right" parameter to a query.
918    
919    2003-05-19  Frank Koormann  <[email protected]>
920    
921            * Thuban/version.py (get_changelog_date):
922            Catch exceptions if ChangeLog does not exist.
923    
924            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
925    
926    2003-05-19  Frank Koormann  <[email protected]>
927    
928            Extended version information for Thuban
929    
930            * Thuban/version.py: New, version information for Thuban: Last
931            modification date and last ChangeLog entry date.
932    
933            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
934            information: Display Thuban, wxPython and Python version.
935    
936    2003-05-16  Bernhard Herzog  <[email protected]>
937    
938            * Thuban/Model/save.py: Remove some unused imports including the
939            __future__ import for nested_scopes as Thuban relies on Python 2.2
940            now.
941            (XMLWriter.encode): Remove the special case for a None argument.
942            In the saver encode is always called with a string argument.
943    
944    2003-05-16  Bernhard Herzog  <[email protected]>
945    
946            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
947            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
948            of the bug was that e.g. float("1.2") would fail. Thuban now
949            requires 2.4.x.
950            
951    2003-05-16  Frank Koormann   <[email protected]>
952    
953            Printing enhancement and WMF export (under Win32)
954    
955            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
956            ScreenRenderer. Renders Map, Legend and Scalebar for export.
957            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
958            PrintRender.
959    
960            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
961            to fullfil information needed for PrinterRenderer.
962            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
963            (MapCanvas.Print): Adapted to new MapPrintout.
964            (OutputTransform): General calculations to transform from canvas
965            coordinates to export/printing devices.
966    
967            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
968            new method_command to call ExportMap, with platform dependency (only
969            __WXMSW__)
970      
971            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
972            of scalebar drawing area as new parameters.
973            
974            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
975    
976            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
977            Update to extended scalebar.DrawScalebar header.
978    
979            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
980    
981            * test/test_scalebar.py: Made test executable as standalone.
982    
983    2003-05-16  Bernhard Herzog  <[email protected]>
984    
985            * Thuban/Model/table.py (Table): Remove this compatibility alias
986            for DBFTable.
987    
988            * test/test_table.py: Import DBFTable as Table because that alias
989            doesn't exist anymore.
990    
991            * Thuban/UI/classgen.py: Remove some unused imports
992    
993    2003-05-14  Jonathan Coles   <[email protected]>
994    
995            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
996            Fix docstring.
997            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
998            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
999            values of the supplied range to determine the beginning and end
1000            bounds of the generated classes.
1001    
1002            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
1003            do not have a leading 0 (.5 is now accepted as well as 0.5).
1004    
1005            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
1006            call to ClassGenerator.GenUniformDistribution.
1007    
1008            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
1009            layout bug with the 'Projection' label.
1010    
1011            * test/support.py (FloatTestCase): New. Needed for the Range tests.
1012    
1013            * test/test_range.py: New. Imported from SciParam.
1014    
1015    2003-05-12  Jonathan Coles   <[email protected]>
1016    
1017            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
1018            to table.UniqueValues() with calls that retrieve all the values
1019            from the table. This will need to be replaced by a method on table
1020            which can simply return the list (perhaps more efficiently).
1021    
1022    2003-05-12  Jonathan Coles   <[email protected]>
1023    
1024            The return value of ClassGenerator.CalculateQuantiles has changed.
1025            Refer to the documentation for details.
1026    
1027            * test/test_classgen.py: Modified Quantile tests to use the
1028            new return values.
1029    
1030            * Thuban/Model/classgen.py
1031            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
1032            use new return values from CalculateQuantiles to produce the correct
1033            range bounds in the Classification.
1034            (ClassGenerator.CalculateQuantiles): Add more comments describing
1035            the return values and parameters. Make minor adjustments to improve
1036            the legibility of the code. Fix problem with adjusted not being set
1037            in most cases.
1038    
1039    2003-05-12  Frank Koormann <[email protected]>
1040            
1041            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
1042            and latin1. Fixes #1851 finally.
1043    
1044    2003-05-09  Jonathan Coles   <[email protected]>
1045    
1046            * test/test_classgen.py: New. Tests the Quantile algorithm.
1047    
1048            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
1049            Clean up debugging statement, add comments, fix a small bug in the
1050            returned adjusted percentiles.
1051            
1052    2003-05-09  Jonathan Coles   <[email protected]>
1053    
1054            Introduces Range class from SciParam into the ClassGroupRange class,
1055            and such ranges can now be saved and loaded from disk.
1056    
1057            Quantiles are now available in the Classification Generator.
1058    
1059            Initial support for building Queries on a table. Doesn't do anything
1060            but run some tests.
1061    
1062            * Thuban/Model/classification.py: Explicit imports.
1063            (ClassGroupRange): Use the Range class to store the underlying
1064            range information. The interface remains the same, except for
1065            GetRange(), and you can also supply a Range object as the min
1066            parameter to SetRange or __init__.
1067    
1068            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
1069            string appropriately for use in Thuban. Fixes RTbug #1851.
1070            (SessionLoader.end_projection): Handle the context of the
1071            projection tag a bit better by looking at what objects are not
1072            None. There was an assumption that a projection tag for a map
1073            could occur before any layers.
1074            (SessionLoader.start_clrange): Provide backward compatibility for
1075            reading min/max values as well as the new range parameter.
1076    
1077            * Thuban/Model/map.py: Explicit imports.
1078    
1079            * Thuban/Model/resource.py: Import _.
1080            (ProjFileSaver.write): write header using projfile.dtd.
1081    
1082            * Thuban/Model/save.py: Explicit imports.
1083            (XMLWriter.encode): New. Encode the given string from a format
1084            used by Thuban into UTF-8. Fixes RTbug #1851.
1085    
1086            * Thuban/UI/classgen.py: Explicit imports.
1087            (ClassGenDialog.__init__): Clean up the code and add support
1088            for Quantiles.
1089            (ClassGenDialog.OnOK): Add support for Quantiles.
1090            (GenQuantilesPanel): New. Input panel for Quantiles.
1091            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
1092            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
1093    
1094            * Thuban/Model/classgen.py: New. Contains all the classes named above.
1095    
1096            * Thuban/UI/classifier.py: Explicit imports.
1097            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
1098            ClassTable.SetValueAsCustom): Reworked to use new Range class.
1099    
1100            * Thuban/UI/legend.py: Explicit imports.
1101    
1102            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
1103            a Table menu and associated method calls.
1104            (MainWindow.choose_color): Removed. No longer needed.
1105    
1106            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
1107            should be disabled if no projection is selected in the available
1108            list.
1109    
1110            * Thuban/UI/renderer.py: Explicit imports.
1111    
1112            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
1113            with correctly selecting the rows and issuing the right events.
1114            Be sure to call Skip() to allow the grid to do some of its own
1115            handling which allows the rows to actually be selected.
1116            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
1117            selecting multiple shapes.
1118            (LayerTableFrame): Support for building Queries.
1119            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
1120    
1121            * Thuban/UI/tree.py: Explicit imports.
1122    
1123            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
1124            table view can call it.
1125    
1126            * test/test_classification.py: Explicit imports.
1127            (TestClassification.test_ClassGroupRange): Fix test for new
1128            Range class.
1129    
1130            * Doc/thuban.dtd: Add range parameter for clrange.
1131    
1132            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
1133            object in ClassGroupRange, and also uesd for inputting ranges in
1134            the classifer table and elsewhere.
1135    
1136            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
1137            yet.
1138    
1139    2003-05-09  Frank Koormann <[email protected]>
1140    
1141            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
1142    
1143    2003-05-08  Frank Koormann <[email protected]>
1144    
1145            Coding style updates
1146    
1147            * test/test_scalebar.py: Replaced tab indentation by spaces.
1148    
1149            * Thuban/UI/scalebar.py: Explicit imports.
1150    
1151    2003-05-08  Frank Koormann <[email protected]>
1152    
1153            * Thuban/UI/scalebar.py
1154            (ScaleBar.DrawScalebar): Format string bug fixed.
1155    
1156    2003-05-08  Frank Koormann <[email protected]>
1157    
1158            Reorganization of scalebar component (no wx in Thuban/Model)
1159    
1160            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
1161            (deriveInterval):
1162            Calculate scalebar interval and unit which fits in width for scale.
1163            (roundInterval): Round float.
1164    
1165            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
1166    
1167            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
1168    
1169            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
1170    
1171    2003-05-08  Frank Koormann <[email protected]>
1172    
1173            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
1174            Initialize ScaleBar with canvas.map
1175    
1176            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
1177            round intervals to display smarter lengths
1178            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
1179            layer. If the maps has no projection applied grey the scalebar.
1180    
1181    2003-05-07  Frank Koormann <[email protected]>
1182            
1183            Basic Scalebar features added.
1184    
1185            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
1186    
1187            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
1188            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
1189            and the renderer.
1190    
1191            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
1192    
1193            * Thuban/UI/messages.py: SCALE_CHANGED added.
1194    
1195    2003-05-07  Bernhard Herzog  <[email protected]>
1196    
1197            * Thuban/Model/session.py (Session.__init__): New instance
1198            variable shapestores to hold a list of all open shapestore objects
1199            (Session.ShapeStores): New. Accessor method for the shapestores
1200            list.
1201            (Session._add_shapestore, Session._clean_weak_store_refs): New.
1202            Internal methods to maintain the shapestores list.
1203            (Session.Tables): New. Return all tables open in the session.
1204            (Session.OpenShapefile): Insert the new ShapeStore into the
1205            shapestores list.
1206    
1207            * test/test_session.py (TestSessionSimple.test_initial_state): Add
1208            tests for ShapeStores and Tables
1209            (TestSessionWithContent.test_shape_stores)
1210            (TestSessionWithContent.test_tables): New. Test cases for
1211            ShapeStores and Tables
1212    
1213    2003-05-07  Bernhard Herzog  <[email protected]>
1214    
1215            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
1216            Add comments about the optimizations used.
1217            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
1218            Implement the ReadValue table interface method.
1219    
1220            * test/test_transientdb.py
1221            (TestTransientTable.run_iceland_political_tests)
1222            (TestTransientTable.test_transient_joined_table): Add tests for
1223            ReadValue
1224    
1225    2003-05-07  Frank Koormann <[email protected]>
1226    
1227            * Resources/Bitmaps/fulllayerextent.xpm,
1228            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
1229            new icons.
1230    
1231    2003-05-06  Bernhard Herzog  <[email protected]>
1232    
1233            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
1234            New. Simply delegate to the transient table's version.
1235    
1236            * test/test_transientdb.py
1237            (TestTransientTable.test_auto_transient_table_query): New. Test
1238            case for AutoTransientTable's SimpleQuery
1239    
1240    2003-05-06  Bernhard Herzog  <[email protected]>
1241    
1242            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
1243            Implement a simple query method for the query dialog
1244            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
1245            the row index or shapeid.
1246            (TransientTable.create): Insert the right value of the row index
1247            (TransientJoinedTable.create): Copy the row index of the left
1248            table to the joined result table
1249    
1250            * test/test_transientdb.py
1251            (TestTransientTable.test_transient_table_read_twice): Fix
1252            doc-string
1253            (TestTransientTable.test_transient_table_query): New. Test for the
1254            SimpleQuery method
1255    
1256    2003-05-06  Bernhard Herzog  <[email protected]>
1257    
1258            Convert all table users to use the new table interface. This only
1259            covers Thuban itself, not GREAT-ER or other applications built on
1260            Thuban yet, so the compatibility interface stays in place for the
1261            time being but it now issues DeprecationWarnings.
1262    
1263            Finally, the new Table interface has a new method, HasColumn.
1264    
1265            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
1266            issue deprecation warnings when they're. The warnings refer to the
1267            caller of the method.
1268            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
1269            for the deprecation warnings
1270    
1271            * test/test_table.py: Ignore the deprecation warnings for the old
1272            table in the tests in this module. The purpose of the tests is to
1273            test the old interface, after all.
1274    
1275            * test/test_transientdb.py
1276            (TestTransientTable.run_iceland_political_tests): Use the
1277            constants for the types. Add a test for HasColumn
1278            (TestTransientTable.test_transient_joined_table): Adapt to new
1279            table interface. Add a test for HasColumn
1280            (TestTransientTable.test_transient_table_read_twice): Adapt to new
1281            table interface
1282    
1283            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
1284            Adapt to new table interface
1285    
1286            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
1287            new table interface
1288    
1289            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
1290            (RecordTable.SetTable): Adapt to new table interface
1291    
1292            * Thuban/UI/classifier.py (Classifier.__init__)
1293            (Classifier.__init__): Adapt to new table interface
1294    
1295            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
1296            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
1297            to new table interface
1298    
1299            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
1300            (AutoTransientTable.HasColumn): Implement the new table interface
1301            method
1302            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
1303            (AutoTransientTable.UniqueValues): Adapt to new table interface
1304    
1305            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
1306            Adapt to new table interface
1307    
1308            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
1309            simplify opening shapefiles a bit easier.
1310            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1311            (TestLayer.test_point_layer): Use the new helper method
1312            (TestLayer.test_get_field_type): New. Test for the GetFieldType
1313            method
1314    
1315            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
1316            the new table method
1317    
1318            * test/test_memory_table.py (TestMemoryTable.test_has_column):
1319            Test for the new table method HasColumn
1320    
1321    2003-05-06  Jonathan Coles   <[email protected]>
1322    
1323            Addresses the "Selection Extent" wish of RTbug #1787.
1324    
1325            * Resources/Bitmaps/fulllayerextent.xpm,
1326            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
1327            extent. These are just place holders for the real bitmaps.
1328    
1329            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
1330            calculate the bounding box once (the first time compute_bbox() is
1331            called).
1332            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
1333            the bounding box for the shapes in lat/long coordinates.
1334    
1335            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
1336            option.
1337            (MainWindow.has_selected_shapes): New. Returns true if there are
1338            any selected shapes.
1339            (MainWindow.FullSelectionExtent): New. Calls
1340            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
1341            (_has_selected_shapes): New. Returns true if there are any
1342            selected shapes.
1343    
1344            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
1345            true if there are any selected shapes.
1346    
1347            * Thuban/UI/view.py (MapCanvas): Added delegated method
1348            HasSelectedShapes.
1349            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
1350            shapes on the canvas using the map projection (if any).
1351    
1352            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1353            for Layer.ShapesBoundingBox().
1354    
1355    2003-05-06  Bernhard Herzog  <[email protected]>
1356    
1357            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1358    
1359    2003-05-05  Jonathan Coles   <[email protected]>
1360    
1361            Addresses the "Full Layer Extent" wish of RTbug #1787.
1362    
1363            * Resources/Projections/defaults.proj: Added UK National Grid.
1364    
1365            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1366            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1367            when the user selects the menu option.
1368    
1369            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1370            scales the given layer on the canvas using the map projection.
1371    
1372    2003-05-05  Bernhard Herzog  <[email protected]>
1373    
1374            Convert the table implementations to a new table interface. All
1375            tables use a common mixin class to provide backwards compatibility
1376            until all table users have been updated.
1377    
1378            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1379            provide backwards compatibility for table classes implementing the
1380            new interface
1381            (DBFTable, MemoryTable): Implement the new table interface. Use
1382            OldTableInterfaceMixin as base for compatibility
1383            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1384            and MemoryTable resp.
1385    
1386            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1387            the new table interface.
1388    
1389            * test/test_memory_table.py: New. Test cases for the MemoryTable
1390            with the new table interface.
1391    
1392            * test/test_table.py: Document the all tests in this file as only
1393            for backwards compatibility. The equivalent tests for the new
1394            interface are in test_memory_table.py and test_dbf_table.py
1395            (MemoryTableTest.test_read): field_info should be returning tuples
1396            with four items
1397            (MemoryTableTest.test_write): Make doc-string a more precise.
1398    
1399            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1400            table interface. Derive from from OldTableInterfaceMixin for
1401            compatibility.
1402            (TransientTableBase.create): New intance variable column_map to
1403            map from names and indices to column objects
1404            (TransientTable.create): Use the new table interface of the input
1405            table
1406            (AutoTransientTable): Convert to new table interface. Derive from
1407            from OldTableInterfaceMixin for compatibility.
1408            (AutoTransientTable.write_record): Removed. It's not implemented
1409            yet and we still have to decide how to handle writing with the new
1410            table and data framework.
1411    
1412            * test/test_transientdb.py
1413            (TestTransientTable.run_iceland_political_tests)
1414            (TestTransientTable.test_transient_joined_table): Use the new
1415            table interface
1416    
1417    2003-05-05  Jonathan Coles   <[email protected]>
1418    
1419            This is namely a collection of UI updates to improve user interactivity.
1420            Tabbing between controls now exists and you can use ESC to close dialog
1421            boxes; ENTER will active the default button.
1422    
1423            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1424            order that the controls are created so that tabbing works correctly.
1425            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1426            wxDialog can handle the default button correctly.
1427            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1428            same reasons as for OnOK.
1429            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1430            when we ask the table for the maximum/minimum values of a field
1431            which could take a very long time.
1432    
1433            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1434            order that the controls are created so that tabbing works correctly.
1435            (SelectPropertiesDialog.__init__): Rearrange the order that the
1436            controls are created so that tabbing works correctly.
1437    
1438            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1439            to derive from a wxDialog but behave like the original implementation
1440            which was derived from a wxFrame. wxDialog provides useful key
1441            handling functionality like ESC calling OnCancel and ENTER calling
1442            OnOK which is lost with wxFrame.
1443    
1444            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1445            new dialogs.
1446    
1447            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1448            order that the controls are created so that tabbing works correctly.
1449            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1450            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1451            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1452            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1453            can provide the "UK National Grid" as a default projection.
1454            (UTMPanel.__init__): Rearrange the order that the controls are
1455            created so that tabbing works correctly.
1456    
1457    2003-05-05  Bernhard Herzog  <[email protected]>
1458    
1459            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1460            (project_point): If a map projection but no layer projection is
1461            given, convert degrees to radians before applying the map
1462            projection.
1463    
1464            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1465            (TableGrid.allow_messages): New methods to make it possible to
1466            inhibit message sending.
1467            (TableGrid.issue): Only send the message if not inhibited.
1468            (LayerTableGrid.select_shape): Use the new methods to make sure
1469            that no ROW_SELECTED message is sent while we're updating the
1470            selected rows to match the selected shapes.
1471    
1472    2003-05-02  Jan-Oliver Wagner <[email protected]>
1473    
1474            Implementation of MemoryTable.
1475    
1476            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1477            implementation that operates on a list of tuples. All of the data
1478            are kept in the memory.
1479    
1480            * test/test_table.py (MemoryTableTest): New.
1481    
1482            * test/test_transientdb.py (SimpleTable): Removed.
1483            (TestTransientTable.test_transient_joined_table,
1484            (TestTransientTable.test_transient_table_read_twice): Replaced
1485            SimpleTable by MemoryTable.
1486    
1487  2003-04-30  Jonathan Coles   <[email protected]>  2003-04-30  Jonathan Coles   <[email protected]>
1488    
1489          * Data/iceland_sample.thuban: Now contains correct projections          * Data/iceland_sample.thuban: Now contains correct projections

Legend:
Removed from v.803  
changed lines
  Added in v.1141

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26