/[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 776 by jonathan, Tue Apr 29 14:41:34 2003 UTC revision 917 by frank, Fri May 16 16:26:57 2003 UTC
# Line 1  Line 1 
1    2003-05-16  Frank Koormann   <[email protected]>
2    
3            Printing enhancement and WMF export (under Win32)
4    
5            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
6            ScreenRenderer. Renders Map, Legend and Scalebar for export.
7            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
8            PrintRender.
9    
10            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
11            to fullfil information needed for PrinterRenderer.
12            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
13            (MapCanvas.Print): Adapted to new MapPrintout.
14            (OutputTransform): General calculations to transform from canvas
15            coordinates to export/printing devices.
16    
17            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
18            new method_command to call ExportMap, with platform dependency (only
19            __WXMSW__)
20      
21            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
22            of scalebar drawing area as new parameters.
23            
24            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
25    
26            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
27            Update to extended scalebar.DrawScalebar header.
28    
29            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
30    
31            * test/test_scalebar.py: Made test executable as standalone.
32    
33    2003-05-16  Bernhard Herzog  <[email protected]>
34    
35            * Thuban/Model/table.py (Table): Remove this compatibility alias
36            for DBFTable.
37    
38            * test/test_table.py: Import DBFTable as Table because that alias
39            doesn't exist anymore.
40    
41            * Thuban/UI/classgen.py: Remove some unused imports
42    
43    2003-05-14  Jonathan Coles   <[email protected]>
44    
45            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
46            Fix docstring.
47            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
48            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
49            values of the supplied range to determine the beginning and end
50            bounds of the generated classes.
51    
52            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
53            do not have a leading 0 (.5 is now accepted as well as 0.5).
54    
55            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
56            call to ClassGenerator.GenUniformDistribution.
57    
58            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
59            layout bug with the 'Projection' label.
60    
61            * test/support.py (FloatTestCase): New. Needed for the Range tests.
62    
63            * test/test_range.py: New. Imported from SciParam.
64    
65    2003-05-12  Jonathan Coles   <[email protected]>
66    
67            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
68            to table.UniqueValues() with calls that retrieve all the values
69            from the table. This will need to be replaced by a method on table
70            which can simply return the list (perhaps more efficiently).
71    
72    2003-05-12  Jonathan Coles   <[email protected]>
73    
74            The return value of ClassGenerator.CalculateQuantiles has changed.
75            Refer to the documentation for details.
76    
77            * test/test_classgen.py: Modified Quantile tests to use the
78            new return values.
79    
80            * Thuban/Model/classgen.py
81            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
82            use new return values from CalculateQuantiles to produce the correct
83            range bounds in the Classification.
84            (ClassGenerator.CalculateQuantiles): Add more comments describing
85            the return values and parameters. Make minor adjustments to improve
86            the legibility of the code. Fix problem with adjusted not being set
87            in most cases.
88    
89    2003-05-12  Frank Koormann <[email protected]>
90            
91            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
92            and latin1. Fixes #1851 finally.
93    
94    2003-05-09  Jonathan Coles   <[email protected]>
95    
96            * test/test_classgen.py: New. Tests the Quantile algorithm.
97    
98            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
99            Clean up debugging statement, add comments, fix a small bug in the
100            returned adjusted percentiles.
101            
102    2003-05-09  Jonathan Coles   <[email protected]>
103    
104            Introduces Range class from SciParam into the ClassGroupRange class,
105            and such ranges can now be saved and loaded from disk.
106    
107            Quantiles are now available in the Classification Generator.
108    
109            Initial support for building Queries on a table. Doesn't do anything
110            but run some tests.
111    
112            * Thuban/Model/classification.py: Explicit imports.
113            (ClassGroupRange): Use the Range class to store the underlying
114            range information. The interface remains the same, except for
115            GetRange(), and you can also supply a Range object as the min
116            parameter to SetRange or __init__.
117    
118            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
119            string appropriately for use in Thuban. Fixes RTbug #1851.
120            (SessionLoader.end_projection): Handle the context of the
121            projection tag a bit better by looking at what objects are not
122            None. There was an assumption that a projection tag for a map
123            could occur before any layers.
124            (SessionLoader.start_clrange): Provide backward compatibility for
125            reading min/max values as well as the new range parameter.
126    
127            * Thuban/Model/map.py: Explicit imports.
128    
129            * Thuban/Model/resource.py: Import _.
130            (ProjFileSaver.write): write header using projfile.dtd.
131    
132            * Thuban/Model/save.py: Explicit imports.
133            (XMLWriter.encode): New. Encode the given string from a format
134            used by Thuban into UTF-8. Fixes RTbug #1851.
135    
136            * Thuban/UI/classgen.py: Explicit imports.
137            (ClassGenDialog.__init__): Clean up the code and add support
138            for Quantiles.
139            (ClassGenDialog.OnOK): Add support for Quantiles.
140            (GenQuantilesPanel): New. Input panel for Quantiles.
141            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
142            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
143    
144            * Thuban/Model/classgen.py: New. Contains all the classes named above.
145    
146            * Thuban/UI/classifier.py: Explicit imports.
147            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
148            ClassTable.SetValueAsCustom): Reworked to use new Range class.
149    
150            * Thuban/UI/legend.py: Explicit imports.
151    
152            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
153            a Table menu and associated method calls.
154            (MainWindow.choose_color): Removed. No longer needed.
155    
156            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
157            should be disabled if no projection is selected in the available
158            list.
159    
160            * Thuban/UI/renderer.py: Explicit imports.
161    
162            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
163            with correctly selecting the rows and issuing the right events.
164            Be sure to call Skip() to allow the grid to do some of its own
165            handling which allows the rows to actually be selected.
166            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
167            selecting multiple shapes.
168            (LayerTableFrame): Support for building Queries.
169            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
170    
171            * Thuban/UI/tree.py: Explicit imports.
172    
173            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
174            table view can call it.
175    
176            * test/test_classification.py: Explicit imports.
177            (TestClassification.test_ClassGroupRange): Fix test for new
178            Range class.
179    
180            * Doc/thuban.dtd: Add range parameter for clrange.
181    
182            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
183            object in ClassGroupRange, and also uesd for inputting ranges in
184            the classifer table and elsewhere.
185    
186            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
187            yet.
188    
189    2003-05-09  Frank Koormann <[email protected]>
190    
191            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
192    
193    2003-05-08  Frank Koormann <[email protected]>
194    
195            Coding style updates
196    
197            * test/test_scalebar.py: Replaced tab indentation by spaces.
198    
199            * Thuban/UI/scalebar.py: Explicit imports.
200    
201    2003-05-08  Frank Koormann <[email protected]>
202    
203            * Thuban/UI/scalebar.py
204            (ScaleBar.DrawScalebar): Format string bug fixed.
205    
206    2003-05-08  Frank Koormann <[email protected]>
207    
208            Reorganization of scalebar component (no wx in Thuban/Model)
209    
210            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
211            (deriveInterval):
212            Calculate scalebar interval and unit which fits in width for scale.
213            (roundInterval): Round float.
214    
215            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
216    
217            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
218    
219            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
220    
221    2003-05-08  Frank Koormann <[email protected]>
222    
223            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
224            Initialize ScaleBar with canvas.map
225    
226            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
227            round intervals to display smarter lengths
228            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
229            layer. If the maps has no projection applied grey the scalebar.
230    
231    2003-05-07  Frank Koormann <[email protected]>
232            
233            Basic Scalebar features added.
234    
235            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
236    
237            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
238            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
239            and the renderer.
240    
241            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
242    
243            * Thuban/UI/messages.py: SCALE_CHANGED added.
244    
245    2003-05-07  Bernhard Herzog  <[email protected]>
246    
247            * Thuban/Model/session.py (Session.__init__): New instance
248            variable shapestores to hold a list of all open shapestore objects
249            (Session.ShapeStores): New. Accessor method for the shapestores
250            list.
251            (Session._add_shapestore, Session._clean_weak_store_refs): New.
252            Internal methods to maintain the shapestores list.
253            (Session.Tables): New. Return all tables open in the session.
254            (Session.OpenShapefile): Insert the new ShapeStore into the
255            shapestores list.
256    
257            * test/test_session.py (TestSessionSimple.test_initial_state): Add
258            tests for ShapeStores and Tables
259            (TestSessionWithContent.test_shape_stores)
260            (TestSessionWithContent.test_tables): New. Test cases for
261            ShapeStores and Tables
262    
263    2003-05-07  Bernhard Herzog  <[email protected]>
264    
265            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
266            Add comments about the optimizations used.
267            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
268            Implement the ReadValue table interface method.
269    
270            * test/test_transientdb.py
271            (TestTransientTable.run_iceland_political_tests)
272            (TestTransientTable.test_transient_joined_table): Add tests for
273            ReadValue
274    
275    2003-05-07  Frank Koormann <[email protected]>
276    
277            * Resources/Bitmaps/fulllayerextent.xpm,
278            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
279            new icons.
280    
281    2003-05-06  Bernhard Herzog  <[email protected]>
282    
283            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
284            New. Simply delegate to the transient table's version.
285    
286            * test/test_transientdb.py
287            (TestTransientTable.test_auto_transient_table_query): New. Test
288            case for AutoTransientTable's SimpleQuery
289    
290    2003-05-06  Bernhard Herzog  <[email protected]>
291    
292            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
293            Implement a simple query method for the query dialog
294            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
295            the row index or shapeid.
296            (TransientTable.create): Insert the right value of the row index
297            (TransientJoinedTable.create): Copy the row index of the left
298            table to the joined result table
299    
300            * test/test_transientdb.py
301            (TestTransientTable.test_transient_table_read_twice): Fix
302            doc-string
303            (TestTransientTable.test_transient_table_query): New. Test for the
304            SimpleQuery method
305    
306    2003-05-06  Bernhard Herzog  <[email protected]>
307    
308            Convert all table users to use the new table interface. This only
309            covers Thuban itself, not GREAT-ER or other applications built on
310            Thuban yet, so the compatibility interface stays in place for the
311            time being but it now issues DeprecationWarnings.
312    
313            Finally, the new Table interface has a new method, HasColumn.
314    
315            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
316            issue deprecation warnings when they're. The warnings refer to the
317            caller of the method.
318            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
319            for the deprecation warnings
320    
321            * test/test_table.py: Ignore the deprecation warnings for the old
322            table in the tests in this module. The purpose of the tests is to
323            test the old interface, after all.
324    
325            * test/test_transientdb.py
326            (TestTransientTable.run_iceland_political_tests): Use the
327            constants for the types. Add a test for HasColumn
328            (TestTransientTable.test_transient_joined_table): Adapt to new
329            table interface. Add a test for HasColumn
330            (TestTransientTable.test_transient_table_read_twice): Adapt to new
331            table interface
332    
333            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
334            Adapt to new table interface
335    
336            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
337            new table interface
338    
339            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
340            (RecordTable.SetTable): Adapt to new table interface
341    
342            * Thuban/UI/classifier.py (Classifier.__init__)
343            (Classifier.__init__): Adapt to new table interface
344    
345            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
346            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
347            to new table interface
348    
349            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
350            (AutoTransientTable.HasColumn): Implement the new table interface
351            method
352            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
353            (AutoTransientTable.UniqueValues): Adapt to new table interface
354    
355            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
356            Adapt to new table interface
357    
358            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
359            simplify opening shapefiles a bit easier.
360            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
361            (TestLayer.test_point_layer): Use the new helper method
362            (TestLayer.test_get_field_type): New. Test for the GetFieldType
363            method
364    
365            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
366            the new table method
367    
368            * test/test_memory_table.py (TestMemoryTable.test_has_column):
369            Test for the new table method HasColumn
370    
371    2003-05-06  Jonathan Coles   <[email protected]>
372    
373            Addresses the "Selection Extent" wish of RTbug #1787.
374    
375            * Resources/Bitmaps/fulllayerextent.xpm,
376            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
377            extent. These are just place holders for the real bitmaps.
378    
379            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
380            calculate the bounding box once (the first time compute_bbox() is
381            called).
382            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
383            the bounding box for the shapes in lat/long coordinates.
384    
385            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
386            option.
387            (MainWindow.has_selected_shapes): New. Returns true if there are
388            any selected shapes.
389            (MainWindow.FullSelectionExtent): New. Calls
390            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
391            (_has_selected_shapes): New. Returns true if there are any
392            selected shapes.
393    
394            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
395            true if there are any selected shapes.
396    
397            * Thuban/UI/view.py (MapCanvas): Added delegated method
398            HasSelectedShapes.
399            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
400            shapes on the canvas using the map projection (if any).
401    
402            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
403            for Layer.ShapesBoundingBox().
404    
405    2003-05-06  Bernhard Herzog  <[email protected]>
406    
407            * Resources/Projections/defaults.proj: Fix spelling of Mercator
408    
409    2003-05-05  Jonathan Coles   <[email protected]>
410    
411            Addresses the "Full Layer Extent" wish of RTbug #1787.
412    
413            * Resources/Projections/defaults.proj: Added UK National Grid.
414    
415            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
416            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
417            when the user selects the menu option.
418    
419            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
420            scales the given layer on the canvas using the map projection.
421    
422    2003-05-05  Bernhard Herzog  <[email protected]>
423    
424            Convert the table implementations to a new table interface. All
425            tables use a common mixin class to provide backwards compatibility
426            until all table users have been updated.
427    
428            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
429            provide backwards compatibility for table classes implementing the
430            new interface
431            (DBFTable, MemoryTable): Implement the new table interface. Use
432            OldTableInterfaceMixin as base for compatibility
433            (DBFColumn, MemoryColumn): New. Column description for DBFTable
434            and MemoryTable resp.
435    
436            * test/test_dbf_table.py: New. Test cases for the DBFTable with
437            the new table interface.
438    
439            * test/test_memory_table.py: New. Test cases for the MemoryTable
440            with the new table interface.
441    
442            * test/test_table.py: Document the all tests in this file as only
443            for backwards compatibility. The equivalent tests for the new
444            interface are in test_memory_table.py and test_dbf_table.py
445            (MemoryTableTest.test_read): field_info should be returning tuples
446            with four items
447            (MemoryTableTest.test_write): Make doc-string a more precise.
448    
449            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
450            table interface. Derive from from OldTableInterfaceMixin for
451            compatibility.
452            (TransientTableBase.create): New intance variable column_map to
453            map from names and indices to column objects
454            (TransientTable.create): Use the new table interface of the input
455            table
456            (AutoTransientTable): Convert to new table interface. Derive from
457            from OldTableInterfaceMixin for compatibility.
458            (AutoTransientTable.write_record): Removed. It's not implemented
459            yet and we still have to decide how to handle writing with the new
460            table and data framework.
461    
462            * test/test_transientdb.py
463            (TestTransientTable.run_iceland_political_tests)
464            (TestTransientTable.test_transient_joined_table): Use the new
465            table interface
466    
467    2003-05-05  Jonathan Coles   <[email protected]>
468    
469            This is namely a collection of UI updates to improve user interactivity.
470            Tabbing between controls now exists and you can use ESC to close dialog
471            boxes; ENTER will active the default button.
472    
473            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
474            order that the controls are created so that tabbing works correctly.
475            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
476            wxDialog can handle the default button correctly.
477            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
478            same reasons as for OnOK.
479            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
480            when we ask the table for the maximum/minimum values of a field
481            which could take a very long time.
482    
483            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
484            order that the controls are created so that tabbing works correctly.
485            (SelectPropertiesDialog.__init__): Rearrange the order that the
486            controls are created so that tabbing works correctly.
487    
488            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
489            to derive from a wxDialog but behave like the original implementation
490            which was derived from a wxFrame. wxDialog provides useful key
491            handling functionality like ESC calling OnCancel and ENTER calling
492            OnOK which is lost with wxFrame.
493    
494            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
495            new dialogs.
496    
497            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
498            order that the controls are created so that tabbing works correctly.
499            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
500            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
501            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
502            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
503            can provide the "UK National Grid" as a default projection.
504            (UTMPanel.__init__): Rearrange the order that the controls are
505            created so that tabbing works correctly.
506    
507    2003-05-05  Bernhard Herzog  <[email protected]>
508    
509            * extensions/thuban/wxproj.cpp: Fix some of the comments.
510            (project_point): If a map projection but no layer projection is
511            given, convert degrees to radians before applying the map
512            projection.
513    
514            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
515            (TableGrid.allow_messages): New methods to make it possible to
516            inhibit message sending.
517            (TableGrid.issue): Only send the message if not inhibited.
518            (LayerTableGrid.select_shape): Use the new methods to make sure
519            that no ROW_SELECTED message is sent while we're updating the
520            selected rows to match the selected shapes.
521    
522    2003-05-02  Jan-Oliver Wagner <[email protected]>
523    
524            Implementation of MemoryTable.
525    
526            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
527            implementation that operates on a list of tuples. All of the data
528            are kept in the memory.
529    
530            * test/test_table.py (MemoryTableTest): New.
531    
532            * test/test_transientdb.py (SimpleTable): Removed.
533            (TestTransientTable.test_transient_joined_table,
534            (TestTransientTable.test_transient_table_read_twice): Replaced
535            SimpleTable by MemoryTable.
536    
537    2003-04-30  Jonathan Coles   <[email protected]>
538    
539            * Data/iceland_sample.thuban: Now contains correct projections
540            for each of the layers.
541    
542            * Resources/Projections/defaults.proj: Geographic projection
543            contains unit conversion parameter.
544    
545    2003-04-30  Jonathan Coles   <[email protected]>
546    
547            The most important part of this putback is the projection changes.
548            It should now be possible to specify the projection that a layer
549            is in and then specify a different projection for the map. The
550            projection dialog has an extra parameter for a geographic projection
551            which lets the user select if the input is in degrees or radians.
552    
553            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
554            to say that the parameter is a tuple of unprojected
555            points (which is what the callers to this method were assuming).
556            Also, since the points are unprojected we need to projected them.
557    
558            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
559            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
560            groups are selected, move the layer up/down. Fixes RTbug #1833.
561    
562            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
563    
564            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
565            parameter in call to SetClientData.
566            (GeoPanel): Add support for selecting the units that the
567            source data is in (Radians or Degrees).
568    
569            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
570            the rendering loop by reducing the number of if's, removing the
571            unnecessary try/except block, and checking if the old group
572            is the same as the new one (which happens a lot if there is
573            no classification, or lots of shapes are in the same group).
574    
575            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
576            around the redraw routine to try to catch problems that the user
577            may create by selecting invalid projections for the data set and
578            map. Clears the display if there are any problems and prints the
579            error.
580            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
581            rectangle.
582    
583            * extensions/thuban/wxproj.cpp (project_point): First invert the
584            supplied point (which should be in projected coordinates) using
585            the layer's projection and then project the point using the
586            map's projection.
587            (project_points): Use project_point() to project each point.
588    
589    2003-04-30  Jan-Oliver Wagner <[email protected]>
590    
591            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
592            don't set the Classification to None if the classfication field
593            is None (ie only a DEFAULT).
594    
595    2003-04-30  Bernhard Herzog  <[email protected]>
596    
597            * Thuban/UI/view.py: Fix some typos.
598    
599            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
600            not pop up the dialog if the selection becomes empty (this could
601            happen if e.g. a new selection is opened while the identify tool
602            is active and dialog had been closed)
603    
604    2003-04-30  Bernhard Herzog  <[email protected]>
605    
606            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
607            instance variable read_record_last_result
608            (TransientTableBase.read_record): Make sure reading the same
609            record twice works. The implementation uses the new instance
610            variable read_record_last_result
611    
612            * test/test_transientdb.py
613            (TestTransientTable.test_transient_table_read_twice): New test
614            case for the above bug-fix.
615    
616    2003-04-29  Jonathan Coles   <[email protected]>
617    
618            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
619    
620            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
621    
622            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
623            (ClassTable.SetValueAsCustom): Rename keyword argument in
624            ClassGroup* constructors to match argument name.
625    
626    2003-04-29  Bernhard Herzog  <[email protected]>
627    
628            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
629            transient DB if it exists to make sure it doesn't leave a journal
630            file in the temp directory.
631    
632            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
633            self.conn to None after closing the connection to make sure it's
634            not closed twice
635    
636  2003-04-29  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
637    
638          Add a visible parameter in the layer XML tag. The default value is          Add a visible parameter in the layer XML tag. The default value is

Legend:
Removed from v.776  
changed lines
  Added in v.917

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26