/[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 672 by bh, Tue Apr 15 18:20:53 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]>
637    
638            Add a visible parameter in the layer XML tag. The default value is
639            "true". If anything other than "false" is specified we also assume
640            "true". Addresses RTbug #1025.
641    
642            * Doc/thuban.dtd: Add visible parameter to a layer.
643    
644            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
645            of visible from 1 to True.
646            (Layer.__init__): Change default value of visible from 1 to True.
647    
648            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
649            parameter.
650    
651            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
652            parameter.
653    
654            * test/test_load.py: Add new test data contents_test_visible.
655            (LoadSessionTest.setUp): save test data.
656            (LoadSessionTest.testLayerVisibility): Test if the visible flag
657            is loaded correctly.
658    
659            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
660            for saving an invisible layer.
661    
662    2003-04-29  Jonathan Coles   <[email protected]>
663    
664            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
665            legend dialog box and tell it to change its map to the one
666            supplied to SetMap(). Fixes RTbug #1770.
667    
668    2003-04-29  Bernhard Herzog  <[email protected]>
669    
670            Next step of table implementation. Introduce a transient database
671            using SQLite that some of the data is copied to on demand. This
672            allows us to do joins and other operations that require an index
673            for good performance with reasonable efficiency. Thuban now needs
674            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
675            haven't tested that.
676            
677            * Thuban/Model/transientdb.py: New. Transient database
678            implementation.
679    
680            * test/test_transientdb.py: New. Tests for the transient DB
681            classes.
682    
683            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
684            classes to help automatically remove temporary files and
685            directories.
686            (Session.__init__): New instance variables temp_dir for the
687            temporary directory and transient_db for the SQLite database
688            (Session.temp_directory): New. Create a temporary directory if not
689            yet done and return its name. Use AutoRemoveDir to have it
690            automatically deleted
691            (Session.TransientDB): Instantiate the transient database if not
692            done yet and return it.
693    
694            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
695            AutoTransientTable so that data is copied to the transient DB on
696            demand.
697            (SimpleStore): New class that simply combines a table and a
698            shapefile
699    
700            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
701            DBFTable and update its doc-string to reflect the fact that this
702            is only the table interface to a DBF file. Table is now an alias
703            for DBFTable for temporary backwards compatibility.
704    
705            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
706            the last reference to the session goes away so that the temporary
707            files are removed properly.
708    
709            * test/test_load.py (LoadSessionTest.tearDown): Remove the
710            reference to the session to make sure the temporary files are
711            removed.
712    
713    2003-04-29  Bernhard Herzog  <[email protected]>
714    
715            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
716            the __parser instance variable into a normal local variable in
717            read. It's only used there and read will never be called more than
718            once. Plus it introduces a reference cycle that keeps can keep the
719            session object alive for a long time.
720    
721    2003-04-29  Jonathan Coles   <[email protected]>
722    
723            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
724            Projection an immutable item. Fixes RTbug #1825.
725            (Projection.__init__): Initialize instance variables here.
726            (ProjFile.Replace): New. Replace the given projection object with
727            the new projection object. This solves the problem of needing the
728            mutator Projection.SetProjection() in the ProjFrame class and
729            allows a projection to change parameters without changing its
730            location in the file.
731    
732            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
733            be of type wxSAVE and should verify overwriting a file.
734    
735            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
736            ProjFile.Replace() method instead of the mutator
737            Projection.SetProjection(). Also requires that we reassign the
738            client data to the new projection.
739    
740            * test/test_proj.py (TestProjection.test): Test GetName() and
741            GetAllParameters()
742            (TestProjFile.test): Remove tests for Set*() methods. Add tests
743            for Replace().
744    
745    2003-04-25  Jonathan Coles   <[email protected]>
746    
747            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
748            to save the name of the projection.
749    
750            * test/test_save.py (SaveSessionTest.testLayerProjection): New
751            test to verify layer projections are saved correctly.
752    
753    2003-04-25  Jonathan Coles   <[email protected]>
754    
755            * Thuban/Model/proj.py (Projection.SetName): Set the name
756            to "Unknown" if name is None.
757            (Projection.SetAllParameters): New. Set the projection's
758            parameter list to the one supplied.
759            (Projection.SetProjection): New. Set the projection's
760            properties to those of the supplied Projection.
761    
762            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
763            the dialog title to include the map's title.
764            (MainWindow.LayerProjection): Set the dialog title to include
765            the layer's title.
766    
767            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
768            error dialogs into a single method call.
769            (ProjFrame.__VerifyButtons): Add more states to check.
770            (ProjFrame.__GetProjection): Return the current state of an
771            edited projection or None.
772            (ProjFrame.__FillAvailList): Remove checks for states that
773            shouldn't exist.
774            (ProjFrame._OnNew): Clear all selected items and supply
775            a projection panel if necessary.
776    
777            * test/test_proj.py (TestProjFile.test): Add tests for
778            ProjFile.SetAllParameters, ProjFile.SetProjection,
779            ProjFile.SetName.
780    
781    2003-04-25  Jonathan Coles   <[email protected]>
782    
783            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
784            takes an optional argument to select the current projection.
785            This does not guarantee that the item is visible due to
786            limited wxWindows functionality. Fixes RTBug #1821.
787    
788    2003-04-25  Jonathan Coles   <[email protected]>
789    
790            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
791            the projection name and use it when constructing the Projection
792            object.
793    
794            * Thuban/Model/proj.py (Projection.__init__): Change the default
795            value for 'name' to None and then test if name is equal to None
796            in the body of the constructor. This way the caller doesn't have to
797            know what the default value should be. Namely, useful in load.py
798            where we have to pick a default value if the 'name' parameter
799            doesn't exist in the XML file.
800    
801            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
802            Tests a file where a layer has a projection.
803    
804    2003-04-25  Jonathan Coles   <[email protected]>
805    
806            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
807            tree for projection information.
808    
809            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
810            XMLReader.GetFileName.
811            (SessionLoader): Added support for loading projection tags that
812            appear inside a layer.
813    
814            * Thuban/Model/proj.py (ProjFile): Document the class. Move
815            back to using a list because the order of the projections in
816            the file is important to maintain. Fixes RTbug #1817.
817    
818            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
819            to ProjFile.GetFilename.
820    
821            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
822            information.
823    
824            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
825            ProjFrame._OnSaveAs. Removed old dead code from previous
826            implementation.
827            (ProjFrame._OnExport): Add support for exporting more than one
828            projection to a single file.
829            (ProjFrame.__FillAvailList): use string formatting (% operator)
830            to build strings that are (partly) translated. Fixes RTbug #1818.
831    
832            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
833            class.
834    
835    2003-04-24  Bernhard Herzog  <[email protected]>
836    
837            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
838    
839            * po/fr.po: New. French translation by Daniel Calvelo Aros
840    
841            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
842            empty strings.
843    
844    2003-04-24  Jonathan Coles   <[email protected]>
845    
846            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
847            implement the interface that the ProjFrame dialog expects.
848    
849            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
850            name of the projection to be changed.
851            (ProjFile): Use a dictionary instead of a list so that removing
852            projections is easier and we are sure about uniqueness.
853            (ProjFile.Remove): Remove the given projection object.
854    
855            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
856            Return a list with only one projection file instead of searching for
857            any projection file. This simplifies many things if the user can
858            only have one system file and one user file.
859    
860            * Thuban/UI/classgen.py: Change all references to
861            genCombo to genChoice.
862    
863            * Thuban/UI/mainwindow.py: Add a Projection option under the
864            layer menu.
865            (MainWindow.LayerProjection): New. Open up a projection window
866            for a layer.
867    
868            * Thuban/UI/projdialog.py: Large changes to how the dialog is
869            laid out. Use three panels instead of one. One for the list of
870            projections, one for the edit controls, and one for the buttons.
871            Fixed resizing problems so that the dialog resizes correctly
872            when the projection panel changes. Added import/export, save, and
873            new buttons/functionality.
874    
875    2003-04-24  Bernhard Herzog  <[email protected]>
876    
877            First step towards table management. Introduce a simple data
878            abstraction so that we replace the data a layer uses more easily
879            in the next step.
880    
881            * Thuban/Model/data.py: New file with a simple data abstraction
882            that bundles shapefile and dbffile into one object.
883    
884            * Thuban/Model/session.py (Session.OpenShapefile): New method to
885            open shapefiles and return a shape store object
886    
887            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
888            object instead of a shapefile filename. This introduces a new
889            instance variable store holding the datastore. For intermediate
890            backwards compatibility keep the old instance variables.
891            (open_shapefile): Removed. No longer needed with the shape store.
892            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
893            get the shape store used by a layer.
894            (Layer.Destroy): No need to explicitly destroy the shapefile or
895            table anymore.
896    
897            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
898            (MainWindow.AddLayer): Use the session's OpenShapefile method to
899            open shapefiles
900    
901            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
902            session's OpenShapefile method to open shapefiles
903    
904            * test/test_classification.py
905            (TestClassification.test_classification): Use the session's
906            OpenShapefile method to open shapefiles and build the filename in
907            a more platform independed way
908    
909            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
910            Implement to have a session to use in the tests
911            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
912            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
913            session's OpenShapefile method to open shapefiles
914            (TestLayerLegend.setUp): Instantiate a session so that we can use
915            it to open shapefiles.
916            (TestLayerLegend.tearDown): Make sure that all references to
917            layers and session are removed otherwise we may get a resource
918            leak
919    
920            * test/test_map.py (TestMapAddLayer.test_add_layer)
921            (TestMapWithContents.setUp): Instantiate a session so that we can
922            use it to open shapefiles.
923            (TestMapWithContents.tearDown): Make sure that all references to
924            layers, maps and sessions are removed otherwise we may get a
925            resource leak
926            ("__main__"): use support.run_tests() so that more info about
927            uncollected garbage is printed
928    
929            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
930            session's OpenShapefile method to open shapefiles
931            ("__main__"): use support.run_tests() so that more info about
932            uncollected garbage is printed
933    
934            * test/test_selection.py (TestSelection.tearDown): Make sure that
935            all references to the session and the selection are removed
936            otherwise we may get a resource leak
937            (TestSelection.get_layer): Instantiate a session so that we can
938            use it to open shapefiles.
939            ("__main__"): use support.run_tests() so that more info about
940            uncollected garbage is printed
941    
942            * test/test_session.py (TestSessionBase.tearDown)
943            (TestSessionWithContent.tearDown): Make sure that all references
944            to the session and layers are removed otherwise we may get a
945            resource leak
946            (TestSessionWithContent.setUp): Use the session's OpenShapefile
947            method to open shapefiles
948    
949    2003-04-24  Jonathan Coles   <[email protected]>
950    
951            * Thuban/Model/load.py (XMLReader.read): Should have been checking
952            if the file_or_filename object had the 'read' attribute.
953    
954    2003-04-23  Jonathan Coles   <[email protected]>
955    
956            * Thuban/Model/resource.py: Fixes RTbug #1813.
957            (ReadProjFile): Add documentation about which exceptions are raised.
958            Always pass the exceptions up to the caller.
959            (GetProjFiles): If the directory can't be read return an empty list.
960            If any of the proj files can't be read skip that file and go
961            on to the next one.
962    
963            * test/test_proj.py: Added test cases to handle nonexistent files,
964            unreadable files, and files that don't parse correctly.
965    
966    2003-04-23  Jonathan Coles   <[email protected]>
967    
968            Projection dialog. Allows the user to select from a list
969            of projection templates and optionally edit them and save new ones.
970    
971            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
972            (ProjPanel): Base class for projection specific panels.
973            (TMPanel): Projection panel for Transverse Mercartor.
974            (UTMPanel): Projection panel for Universal Transverse Mercartor.
975            (LCCPanel): Projection panel for Lambert Conic Conformal.
976            (GeoPanel): Projetion panel for Geographic Projection.
977    
978    2003-04-23  Jonathan Coles   <[email protected]>
979    
980            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
981            promote symmetry. There now exists XMLReader and XMLWriter.
982            (XMLReader.read): New. Call to read the given file descriptor or
983            filename.
984            (XMLReader.close): New. Make sure the file is closed.
985            (XMLReader.GetFileName): New. Return just the file name that is being
986            read from.
987            (XMLReader.GetDirectory): New. Return just the directory of the file
988            that is being read.
989            (XMLReader.AddDispatchers): New. Take a dictionary which contains
990            the names of functions to call as the XML tree is parsed.
991            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
992            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
993            (SessionLoader): Removed class variables start_dispatcher and
994            end_dispatcher since this functionality is now part of a class
995            instance. Fixes RTbug #1808.
996            (SessionLoader.__init__): Add dispatcher functions.
997            (load_xmlfile): Code was moved into the XMLReader.read().
998            (load_session): Use modified SessionLoader.
999    
1000            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
1001            map's projection.
1002    
1003            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
1004            GetAllParameters.
1005            (Projection.GetParameter): Returns the value for the given parameter.
1006    
1007            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
1008            (GetProjFiles): Renamed from GetProjections. Now returns a list
1009            of ProjFile objects.
1010            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
1011            a list of ProjFile objects whose files are not user defined.
1012            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
1013            list of ProjFile objects whose files are user defined.
1014            (ProjFileReader): Extend new XMLReader.
1015    
1016            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
1017            promote symmetry.
1018    
1019            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
1020            control instead of a wxComboBox. wxChoice controls do not generate
1021            events as the uses highlights possible choices which fixes problems
1022            with resizing the dialog when the use selects an option.
1023    
1024            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
1025            control instead of a wxComboBox.
1026    
1027            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
1028            dialog.
1029    
1030            * test/test_proj.py (TestProjection.test): New tests for GetParameter
1031            method.
1032    
1033    2003-04-22  Bernhard Herzog  <[email protected]>
1034    
1035            * Thuban/UI/mainwindow.py: Remove some unused imports and global
1036            constants
1037    
1038            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1039            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
1040    
1041    2003-04-17  Bernhard Herzog  <[email protected]>
1042    
1043            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
1044            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
1045            anymore.
1046            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
1047            (Layer.ShapeType, Layer.Shape): No need to call
1048            self.open_shapefile since it's always called in __init__
1049    
1050            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
1051            In wxPython 2.4 there's no need to extend MainLoop anymore since
1052            wxPython itself makes sure OnExit is called.
1053    
1054    2003-04-16  Jonathan Coles   <[email protected]>
1055    
1056            Initial putback of projection management code. Includes new
1057            classes to read and write projection files. The current load
1058            and save classes were abstracted a bit so they could be reused.
1059            The Projection class was extended to provide new methods and
1060            have a name.
1061    
1062            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
1063            general XML reading methods that were part of ProcessSession.
1064    
1065            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
1066            name.
1067            (ProjFile): New. Represents a file that contains projection
1068            information.
1069    
1070            * Thuban/Model/resource.py: New. Contains general utilities
1071            for read and writing projection files.
1072    
1073            * Thuban/Model/save.py (XMLSaver): New. Contains all the
1074            general XML writing methods that were part of SessionSaver.
1075            (SessionSaver): Renamed from Saver.
1076    
1077            * test/test_proj.py: New test cases for the projection
1078            file read and write functions.
1079    
1080    2003-04-16  Jonathan Coles   <[email protected]>
1081    
1082            * Thuban/Model/classification.py: Use repr() around values
1083            in the ClassGroup*.__repr__() methods so it is clearer when
1084            a value is a string and when it is a number.
1085    
1086            * test/test_load.py: Rework the classification test to test
1087            that we can load old files.
1088            (testLabels): Test a file where the groups have labels.
1089    
1090    2003-04-16  Bernhard Herzog  <[email protected]>
1091    
1092            Safer implementation of the performance enhancements of the
1093            low-level renderer:
1094            
1095            * extensions/thuban/wxproj.cpp (extract_projection)
1096            (extract_pointer): Rename extract_projection to extract_pointer
1097            and redefine its purpose to return the pointer stored in a CObject
1098            returned by the object's cobject method. Update all callers.
1099            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
1100            handling of these low-level parameters so that each s_draw_info
1101            instance is handled as a CObject at python level that also
1102            contains real references to the actual python objects which
1103            contain the values in the struct. Add free_draw_info as the
1104            destructor.
1105            (draw_polygon_shape): Add the py_draw_info parameter which must a
1106            cobject containing an s_draw_info pointer.
1107    
1108            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
1109            method to instantiat the low-level render parameter
1110            (MapRenderer.draw_shape_layer): Use the new method. Remove some
1111            commented out code.
1112            (MapRenderer.draw_polygon_shape): Make the first parameter not the
1113            layer but the low-level render parameter
1114            (ScreenRenderer.draw_shape_layer): Use the low-level render
1115            parameter.
1116    
1117    2003-04-15  Jonathan Coles   <[email protected]>
1118    
1119            * Thuban/Model/classification.py: Implemented __repr__ for
1120            the ClassGroup* classes to make debugging a bit easier.
1121            (ClassGroup.SetLabel): Check that the string is an instance
1122            of StringTypes not StringType. Accounts for Unicode strings.
1123    
1124            * Thuban/Model/color.py: Implemented __repr__ to make
1125            debugging a bit easier.
1126    
1127            * Thuban/Model/save.py (Saver.write_classification): Need to
1128            save the group label.
1129    
1130            * test/test_load.py (testClassification): New. Loads the
1131            iceland_sample_test.thuban file and checks if it was loaded
1132            correctly.
1133    
1134    2003-04-15  Jonathan Coles   <[email protected]>
1135    
1136            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
1137            to improve rendering performance by initializing the variables
1138            that are not change each time draw_polygon_shape() is called.
1139            The values are stored in a global struct draw_info.
1140            (draw_polygon_shape): Removed initialization code that is
1141            now in draw_polygon_init().
1142    
1143            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
1144            drawing initialization call to draw_polygon_init()
1145            (MapRenderer.draw_polygon_shape): Use new signature of
1146            draw_polygon_shape.
1147    
1148            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
1149            weirdness by setting the range to (1, maxint).
1150    
1151            * Thuban/Model/classification.py (ClassGroupProperties): Make
1152            instance variables private and optimize comparison operator
1153            by first checking if the color references are the same.
1154            (ClassGroupSingleton): Make instance variables private.
1155            (ClassGroupRange): Make instance variables private.
1156    
1157            * HOWTO-Release: Filled in missing steps for releasing packages.
1158    
1159  2003-04-15  Bernhard Herzog  <[email protected]>  2003-04-15  Bernhard Herzog  <[email protected]>
1160    
1161          First stab at internationalized messages:          First stab at internationalized messages:

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26