/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

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

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

Legend:
Removed from v.792  
changed lines
  Added in v.1182

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26