/[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 634 by jonathan, Wed Apr 9 15:41:58 2003 UTC revision 1055 by bh, Tue May 27 10:38:25 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
4            tableview dialog
5            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
6            Also, don't use the table's titles as the dialog names. The titles
7            aren't guaranteed to be unique.
8            (MainWindow.TableOpen): Open a table view dialog after opening the
9            table
10    
11    2003-05-27  Bernhard Herzog  <[email protected]>
12    
13            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
14            effect can be achieved by simply closing the window showing the
15            table.
16            (MainWindow.TableHide): Removed.
17            (main_menu): Removed "table_hide"
18    
19    2003-05-27  Frank Koormann  <[email protected]>
20    
21            Fix legend tree display problems under Win32
22    
23            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
24            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
25            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
26    
27            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
28    
29    2003-05-27  Jan-Oliver Wagner <[email protected]>
30    
31            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
32            'after' now allows to insert separators almost anywhere in the menu.
33    
34    2003-05-27  Frank Koormann  <[email protected]>
35    
36            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
37            "S" of selection box label to hint on hot key (Alt-S). Works under
38            Win32 but is ignored under GTK.
39    
40    2003-05-26  Frank Koormann  <[email protected]>
41    
42            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
43            Center Choices.
44    
45    2003-05-26  Bernhard Herzog  <[email protected]>
46    
47            Remove the Precision methods again. They're too DBF specific to be
48            part of the table interface and they're only used in table_to_dbf
49            anyway.
50            
51            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
52            fixed precision of 12 for doubles.
53            (TransientTableBase.Precision): Removed
54            (AutoTransientTable.Width): Delegate to self.table.
55    
56            * Thuban/Model/table.py (DBFTable.Precision)
57            (MemoryTable.Precision): Removed.
58            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
59            (table_to_dbf): Use a fixed precision of 12 for floats unless the
60            column object specifies something else.
61    
62            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
63            test for table_to_dbf
64    
65    2003-05-26  Bernhard Herzog  <[email protected]>
66    
67            * test/test_transientdb.py
68            (TestTransientTable.run_iceland_political_tests): Fix a comment.
69    
70    2003-05-26  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
73            implementation. Mark parts of the file format strings for
74            localization.
75    
76            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
77            file and add the table to the tables managed by the session
78    
79            * test/test_session.py (TestSessionSimple.test_open_table_file):
80            New. test case for OpenTableFile
81    
82    2003-05-26  Jan-Oliver Wagner <[email protected]>
83    
84            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
85            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
86            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
87            Replace the true/false of wxWindows by True/False of Python 2.2.1.
88    
89    2003-05-26  Jan-Oliver Wagner <[email protected]>
90    
91            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
92            already a selection present, update the grid accordingly.
93    
94            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
95            resizeable and increase its initial size.
96    
97    2003-05-26  Frank Koormann  <[email protected]>
98    
99            Table export functionality
100    
101            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
102            Return width (in characters) for a column.
103            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
104            (table_to_dbf): Write table to dbf file.
105            (table_to_csv): Write table to csv file.
106    
107            * Thuban/Model/transientdb.py (TransientTableBase.Width,
108            TransientTableBase.Precision): Return column width and precision.
109    
110            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
111            or table_to_csv depending on file selection.
112    
113            * test/test_dbf_table.py:
114            Test table_to_dbf (extension of former part of test).
115    
116            * test/test_csv_table.py:
117            Test table_to_csv.
118    
119    2003-05-23  Jan-Oliver Wagner <[email protected]>
120    
121            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
122            Use QueryTableFrame instead of TableFrame.
123    
124            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
125            table window with 'Layer Table:' instead of 'Table:'.
126    
127    2003-05-23  Jan-Oliver Wagner <[email protected]>
128    
129            Give all tables a title via mix-in TitledObject.LayerShowTable
130    
131            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
132            only if it exists.
133    
134            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
135            and call its init-method with a default title. Remove Title() method.
136    
137            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
138            AutoTransientTable): mix-in TitledObject and call its init-method with
139            a default title. Remove Title() method.
140    
141    2003-05-23  Bernhard Herzog  <[email protected]>
142    
143            * Thuban/Model/session.py (Session.AddShapeStore): Define
144            AddShapeStore analogously to AddTable.
145    
146            * test/test_session.py (TestSessionSimple.test_add_shapestore):
147            New. Test for AddShapeStore
148    
149    2003-05-23  Jan-Oliver Wagner <[email protected]>
150    
151            Introducing QueryTableFrame and a very coarse ShowTable implementation.
152    
153            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
154            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
155            The latter implements the selection GUI without dependency on a layer.
156            LayerTableFrame now is derived from QueryTableFrame and connects
157            to a layer.
158    
159            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
160            implementation that still needs work.
161    
162            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
163    
164    2003-05-22  Frank Koormann  <[email protected]>
165    
166            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
167            Added "outer_join = False" as optional parameter.
168            (TransientJoinedTable.create): If outer join is true, perform a
169            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
170            the left table. Records not matching are filled with 0 / None.
171    
172            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
173            (JoinDialog.OnJoin): Consider outer join check box.
174    
175    2003-05-22  Bernhard Herzog  <[email protected]>
176    
177            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
178            somewhat safer way. Storing the traceback in a local variable can
179            lead to memory leaks
180    
181    2003-05-22  Bernhard Herzog  <[email protected]>
182    
183            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
184            the wxMessageDialog's Destroy() method.
185    
186    2003-05-22  Frank Koormann  <[email protected]>
187    
188            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
189            TransientTable.Title()
190    
191    2003-05-22  Frank Koormann  <[email protected]>
192    
193            Join Dialog, initial version.
194    
195            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
196    
197            * Thuban/UI/join.py (JoinDialog): Functional implementation of
198            former framework. Renamed Table1/Table2 to LeftTable/RightTable
199            in all occurences.
200    
201            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
202            Typo fixed.
203    
204    2003-05-22  Bernhard Herzog  <[email protected]>
205    
206            Give the tables titles so that the GUI can display more meaningful
207            names. For now the titles are fixed but depend on e.g. filenames
208            or the titles of the joined tables.
209    
210            * Thuban/Model/transientdb.py (TransientTable.Title)
211            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
212    
213            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
214    
215            * test/test_transientdb.py
216            (TestTransientTable.test_auto_transient_table_title): New. Test
217            for the Title method
218            (TestTransientTable.test_transient_joined_table)
219            (TestTransientTable.test_transient_table): Add test for the Title
220            methods
221    
222            * test/test_memory_table.py (TestMemoryTable.test_title): New.
223            Test for the Title method
224    
225            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
226            the Title method
227    
228    2003-05-22  Bernhard Herzog  <[email protected]>
229    
230            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
231            Provide a better way to destroy the layers
232            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
233            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
234            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
235            the new way to destroy the layers.
236            (TestLayer.test_derived_store): New. Test for using a layer with a
237            DerivedShapeStore
238    
239            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
240            filename if the shape store actually has one.
241    
242    2003-05-22  Bernhard Herzog  <[email protected]>
243    
244            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
245            for the filename
246    
247            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
248            for the FileName method
249            (TestDBFTableWriting.test_write): Fix spelling of filename
250    
251    2003-05-22  Thomas Koester  <[email protected]>
252    
253            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
254            from SciParam that now really is immutable.
255    
256    2003-05-22  Frank Koormann  <[email protected]>
257    
258            Layer Top/Bottom placement added to legend.
259    
260            * Thuban/UI/legend.py
261            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
262            bound to tool events.
263            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
264            New, methods binding the event methods with the map methods.
265    
266            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
267            layer at top/bottom of layer stack.
268    
269            * Resources/Bitmaps/top_layer.xpm: New button icon.
270    
271            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
272    
273    2003-05-22  Bernhard Herzog  <[email protected]>
274    
275            * Thuban/Model/session.py (Session.RemoveTable): New method to
276            remove tables
277    
278            * test/test_session.py (TestSessionSimple.test_remove_table): New.
279            Test for RemoveTable
280    
281    2003-05-22  Thomas Koester  <[email protected]>
282    
283            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
284            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
285    
286    2003-05-22  Bernhard Herzog  <[email protected]>
287    
288            Implement a way to discover dependencies between tables and
289            shapestores.
290    
291            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
292            (TransientJoinedTable.Dependencies)
293            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
294            interface
295            (TransientJoinedTable.__init__): Keep tack of the original table
296            objects in addition to the corresponding transient tables.
297    
298            * Thuban/Model/table.py (DBFTable.Dependencies)
299            (MemoryTable.Dependencies): New. Implement the dependencies
300            interface
301    
302            * Thuban/Model/data.py (ShapeTable): New. Helper class for
303            ShapefileStore
304            (ShapefileStore.__init__): Use ShapeTable instead of
305            AutoTransientTable
306            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
307            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
308            methods for filename and type
309            (ShapefileStore.Dependencies): New. Implement the dependencies
310            interface
311            (DerivedShapeStore): New class to replace SimpleStore. The main
312            difference to SimpleStore is that it depends not on a shapefile
313            but another shapestore which expresses the dependencies a bit
314            better
315            (SimpleStore.__init__): Add deprecation warning.
316    
317            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
318            Test for the Dependencies method.
319    
320            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
321            New. Test for the Dependencies method.
322    
323            * test/test_transientdb.py
324            (TestTransientTable.test_auto_transient_table_dependencies): New.
325            Test for the Dependencies method.
326            (TestTransientTable.test_transient_joined_table): Add test for the
327            Dependencies method.
328    
329            * test/test_session.py (TestSessionSimple.setUp)
330            (TestSessionSimple.tearDown): New. Implement a better way to
331            destroy the sessions.
332            (TestSessionSimple.test_initial_state)
333            (TestSessionSimple.test_add_table): Bind session to self.session
334            so that it's destroyed by tearDown
335            (TestSessionSimple.test_open_shapefile): New. Test for
336            OpenShapefile and the object it returns
337    
338    2003-05-22  Bernhard Herzog  <[email protected]>
339    
340            * Thuban/Model/session.py (Session.AddTable): New method to
341            register tables with the session.
342            (Session.Tables): Return the tables registered with AddTable too.
343    
344            * test/test_session.py (TestSessionSimple.test_add_table): New.
345            Test case for the AddTable method
346    
347    2003-05-22  Frank Koormann  <[email protected]>
348    
349            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
350            lower right corner, center labels for selections, initialize controls
351            in reasonable order for keyboard navigation.
352    
353            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
354            (ProjFrame.__DoOnProjAvail): Determine position of current projection
355            using the wxListBox.FindString() method. Still a problem (#1886)
356    
357            * Thuban/UI/classifier.py
358            (Classifier.__init__, SelectPropertiesDialog.__init__)
359    
360            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
361            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
362            different classification types from here to __init__.
363            (GenUniquePanel.__init__): Set the column width of the first field
364            in the Field ListCtrl to the full width.
365    
366            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
367            Button to 'Export'. Center Buttons in Selection Box, set Focus to
368            Grid.
369            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
370            changes focus to the Selection when pressing "Alt-S".
371    
372            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
373            the text if not visible. The italic font sometimes exceeds the
374            rendering area.
375    
376    2003-05-21  Jonathan Coles   <[email protected]>
377    
378            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
379            to OnClose so that Thuban closes correctly.
380    
381            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
382            DockFrame.OnClose, not DockFrame._OnClose.
383    
384    2003-05-21  Jonathan Coles   <[email protected]>
385    
386            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
387            references to 'inf' and use new Range __init__ to pass floats
388            directly rather than converting them to strings first.
389            Fixes RTBug #1876.
390    
391            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
392            Use new Range ___init__ to pass floats.
393    
394            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
395            filename is a valid image file. Throw IOError otherwise.
396    
397            * Thuban/Model/range.py: Brought over new Range from SciParam that
398            is immutable and has an __init__ which can accept floats.
399    
400            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
401            into try block. AddLayer doesn't throw any exceptions anymore.
402            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
403            try block.
404    
405            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
406            the first item in choices. Fixes RTBug #1882.
407    
408            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
409            has gone to 0 which is a serious problem. abort.
410            (MapRenderer.draw_raster_layer): Catch IOError seperately and
411            print the error from GDAL.
412    
413            * Thuban/UI/tableview.py (TableGrid.__init__): Call
414            ToggleEventListeners to turn on listening.
415            (TableGrid.ToggleEventListeners): New. Turns event listening on
416            and off so as to prevent excessive messages.
417            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
418            to suppress excessive messages when selecting many rows.
419            Fixes RTBug #1880.
420    
421            * Thuban/UI/view.py: Added checks against if scale == 0. This
422            is a serious problem that can occur when an image without
423            geo data is loading and causes the map projection bounds to
424            go to infinity. Right now, the solution is to simply try
425            to recover.
426    
427            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
428            to set the MFILEReceiver attributes even if the data is NULL.
429    
430            * extensions/thuban/gdalwarp.cpp: Improved the error handling
431            and passed GDAL messages back up to the Python layer. Also
432            tried to fix some memory leaks that were present in the original
433            utility but didn't matter because the program aborted.
434    
435            * test/test_range.py: Copied over tests from SciParam. Removed
436            tests against importing. Fixes RTBug #1867.
437    
438    2003-05-21  Bernhard Herzog  <[email protected]>
439    
440            * test/test_load.py: Remove unused imports and restructure the
441            test code
442            (LoadSessionTest): Split into one class for each test and turn
443            LoadSessionTest itself into the base class for all such session
444            tests.
445            (ClassificationTest): New base class for load tests that test
446            classifications
447            (TestSingleLayer, TestLayerVisibility, TestClassification)
448            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
449            for the individual tests
450    
451            * test/support.py (FileLoadTestCase.filename): New base class for
452            file loading tests
453    
454    2003-05-21  Jan-Oliver Wagner <[email protected]>
455    
456            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
457            Mercator' to 'UTM Zone 32' as a more convenient example.
458            Added 'Gauss Krueger Zone 6'.
459    
460            * Data/iceland_sample_raster.thuban: political polygon now
461            filled transparent to have the raster image visible at once.
462    
463    2003-05-21  Frank Koormann  <[email protected]>
464    
465            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
466            OnClose() to keep in sync with extensions. Internally Thuban
467            still uses "underscored" names.
468    
469    2003-05-20  Jonathan Coles   <[email protected]>
470    
471            This puts back Raster layer support. These layers support projections
472            through the GDAL library. Currently, the CVS version is being used.
473            There are no Debian packages available although this may change soon.
474            A GDAL driver was extended to support writing to memory rather to
475            files.
476    
477            There is still some work that needs to be done, such as some error
478            handling when loading invalid images or when there is a problem
479            projecting the image. This putback simply checks in the majority
480            of the work.
481    
482            * setup.py: Add gdalwarp library extension.
483    
484            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
485            Defaults to False, but can be overridden by subclasses if they
486            support classification.
487            (RasterLayer): New. Defines a new layer that represents an
488            image.
489    
490            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
491            tag handler.
492            (SessionLoader.start_layer): Encode the filename.
493            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
494            New. Supports reading a rasterlayer tag.
495    
496            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
497    
498            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
499            get a string in Latin1. If we get such as string convert it to
500            unicode first, otherwise leave if alone before encoding.
501            (SessionSaver.write_layer): Add support for writing both Layers
502            and RasterLayers.
503    
504            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
505            The right argument may not be a string, it could also be a Column.
506    
507            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
508            Make initial window size 600x400. Fixes RTBug #1872.
509    
510            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
511            the dialog is constructed so that we can support layers that
512            do not have classifications.
513            (Classifier._OnTry): Only build a classification if the layer
514            supports one.
515    
516            * Thuban/UI/legend.py: Change all checks that a layer is an
517            instance of Layer into checks against BaseLayer.
518            (LegendTree.__FillTreeLayer): Only add children to a branch if
519            the layer supports classification.
520    
521            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
522            MainWindow.OpenSession): Don't proceed with an action if the
523            user chooses Cancel when they are asked to save changes.
524            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
525            user to select an image file. Create a new RasterLayer and add
526            it to the map.
527    
528            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
529            for rendering RasterLayer layers.
530            (MapRenderer.draw_raster_layer): Actually method that calls
531            the GDALWarp python wrapper and constructs an image from the
532            data returned.
533    
534            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
535            Choices symbols to match those used in the table query method.
536            Replace deprecated method calls on table with new method names.
537    
538            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
539            how small the scale can get. This still needs more testing.
540    
541            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
542            Provides a driver to output in .bmp format.
543    
544            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
545            New. Provides IO routines which write to memory, rather than a file.
546    
547            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
548            of the gdalwarp utility provided in GDAL. Added function calls
549            that can be accessed from python.
550    
551            * Data/iceland_sample_raster.thuban: New. Sample file that uses
552            a raster layer.
553    
554            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
555            layer image data.
556    
557            * Doc/thuban.dtd: Added rasterlayer attribute definition.
558    
559            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
560            tests associated with the raster layer code.
561    
562            * test/test_transientdb.py
563            (TestTransientTable.test_auto_transient_table_query): Added a test
564            for using a Column object as the "right" parameter to a query.
565    
566    2003-05-19  Frank Koormann  <[email protected]>
567    
568            * Thuban/version.py (get_changelog_date):
569            Catch exceptions if ChangeLog does not exist.
570    
571            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
572    
573    2003-05-19  Frank Koormann  <[email protected]>
574    
575            Extended version information for Thuban
576    
577            * Thuban/version.py: New, version information for Thuban: Last
578            modification date and last ChangeLog entry date.
579    
580            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
581            information: Display Thuban, wxPython and Python version.
582    
583    2003-05-16  Bernhard Herzog  <[email protected]>
584    
585            * Thuban/Model/save.py: Remove some unused imports including the
586            __future__ import for nested_scopes as Thuban relies on Python 2.2
587            now.
588            (XMLWriter.encode): Remove the special case for a None argument.
589            In the saver encode is always called with a string argument.
590    
591    2003-05-16  Bernhard Herzog  <[email protected]>
592    
593            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
594            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
595            of the bug was that e.g. float("1.2") would fail. Thuban now
596            requires 2.4.x.
597            
598    2003-05-16  Frank Koormann   <[email protected]>
599    
600            Printing enhancement and WMF export (under Win32)
601    
602            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
603            ScreenRenderer. Renders Map, Legend and Scalebar for export.
604            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
605            PrintRender.
606    
607            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
608            to fullfil information needed for PrinterRenderer.
609            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
610            (MapCanvas.Print): Adapted to new MapPrintout.
611            (OutputTransform): General calculations to transform from canvas
612            coordinates to export/printing devices.
613    
614            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
615            new method_command to call ExportMap, with platform dependency (only
616            __WXMSW__)
617      
618            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
619            of scalebar drawing area as new parameters.
620            
621            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
622    
623            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
624            Update to extended scalebar.DrawScalebar header.
625    
626            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
627    
628            * test/test_scalebar.py: Made test executable as standalone.
629    
630    2003-05-16  Bernhard Herzog  <[email protected]>
631    
632            * Thuban/Model/table.py (Table): Remove this compatibility alias
633            for DBFTable.
634    
635            * test/test_table.py: Import DBFTable as Table because that alias
636            doesn't exist anymore.
637    
638            * Thuban/UI/classgen.py: Remove some unused imports
639    
640    2003-05-14  Jonathan Coles   <[email protected]>
641    
642            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
643            Fix docstring.
644            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
645            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
646            values of the supplied range to determine the beginning and end
647            bounds of the generated classes.
648    
649            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
650            do not have a leading 0 (.5 is now accepted as well as 0.5).
651    
652            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
653            call to ClassGenerator.GenUniformDistribution.
654    
655            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
656            layout bug with the 'Projection' label.
657    
658            * test/support.py (FloatTestCase): New. Needed for the Range tests.
659    
660            * test/test_range.py: New. Imported from SciParam.
661    
662    2003-05-12  Jonathan Coles   <[email protected]>
663    
664            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
665            to table.UniqueValues() with calls that retrieve all the values
666            from the table. This will need to be replaced by a method on table
667            which can simply return the list (perhaps more efficiently).
668    
669    2003-05-12  Jonathan Coles   <[email protected]>
670    
671            The return value of ClassGenerator.CalculateQuantiles has changed.
672            Refer to the documentation for details.
673    
674            * test/test_classgen.py: Modified Quantile tests to use the
675            new return values.
676    
677            * Thuban/Model/classgen.py
678            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
679            use new return values from CalculateQuantiles to produce the correct
680            range bounds in the Classification.
681            (ClassGenerator.CalculateQuantiles): Add more comments describing
682            the return values and parameters. Make minor adjustments to improve
683            the legibility of the code. Fix problem with adjusted not being set
684            in most cases.
685    
686    2003-05-12  Frank Koormann <[email protected]>
687            
688            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
689            and latin1. Fixes #1851 finally.
690    
691    2003-05-09  Jonathan Coles   <[email protected]>
692    
693            * test/test_classgen.py: New. Tests the Quantile algorithm.
694    
695            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
696            Clean up debugging statement, add comments, fix a small bug in the
697            returned adjusted percentiles.
698            
699    2003-05-09  Jonathan Coles   <[email protected]>
700    
701            Introduces Range class from SciParam into the ClassGroupRange class,
702            and such ranges can now be saved and loaded from disk.
703    
704            Quantiles are now available in the Classification Generator.
705    
706            Initial support for building Queries on a table. Doesn't do anything
707            but run some tests.
708    
709            * Thuban/Model/classification.py: Explicit imports.
710            (ClassGroupRange): Use the Range class to store the underlying
711            range information. The interface remains the same, except for
712            GetRange(), and you can also supply a Range object as the min
713            parameter to SetRange or __init__.
714    
715            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
716            string appropriately for use in Thuban. Fixes RTbug #1851.
717            (SessionLoader.end_projection): Handle the context of the
718            projection tag a bit better by looking at what objects are not
719            None. There was an assumption that a projection tag for a map
720            could occur before any layers.
721            (SessionLoader.start_clrange): Provide backward compatibility for
722            reading min/max values as well as the new range parameter.
723    
724            * Thuban/Model/map.py: Explicit imports.
725    
726            * Thuban/Model/resource.py: Import _.
727            (ProjFileSaver.write): write header using projfile.dtd.
728    
729            * Thuban/Model/save.py: Explicit imports.
730            (XMLWriter.encode): New. Encode the given string from a format
731            used by Thuban into UTF-8. Fixes RTbug #1851.
732    
733            * Thuban/UI/classgen.py: Explicit imports.
734            (ClassGenDialog.__init__): Clean up the code and add support
735            for Quantiles.
736            (ClassGenDialog.OnOK): Add support for Quantiles.
737            (GenQuantilesPanel): New. Input panel for Quantiles.
738            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
739            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
740    
741            * Thuban/Model/classgen.py: New. Contains all the classes named above.
742    
743            * Thuban/UI/classifier.py: Explicit imports.
744            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
745            ClassTable.SetValueAsCustom): Reworked to use new Range class.
746    
747            * Thuban/UI/legend.py: Explicit imports.
748    
749            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
750            a Table menu and associated method calls.
751            (MainWindow.choose_color): Removed. No longer needed.
752    
753            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
754            should be disabled if no projection is selected in the available
755            list.
756    
757            * Thuban/UI/renderer.py: Explicit imports.
758    
759            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
760            with correctly selecting the rows and issuing the right events.
761            Be sure to call Skip() to allow the grid to do some of its own
762            handling which allows the rows to actually be selected.
763            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
764            selecting multiple shapes.
765            (LayerTableFrame): Support for building Queries.
766            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
767    
768            * Thuban/UI/tree.py: Explicit imports.
769    
770            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
771            table view can call it.
772    
773            * test/test_classification.py: Explicit imports.
774            (TestClassification.test_ClassGroupRange): Fix test for new
775            Range class.
776    
777            * Doc/thuban.dtd: Add range parameter for clrange.
778    
779            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
780            object in ClassGroupRange, and also uesd for inputting ranges in
781            the classifer table and elsewhere.
782    
783            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
784            yet.
785    
786    2003-05-09  Frank Koormann <[email protected]>
787    
788            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
789    
790    2003-05-08  Frank Koormann <[email protected]>
791    
792            Coding style updates
793    
794            * test/test_scalebar.py: Replaced tab indentation by spaces.
795    
796            * Thuban/UI/scalebar.py: Explicit imports.
797    
798    2003-05-08  Frank Koormann <[email protected]>
799    
800            * Thuban/UI/scalebar.py
801            (ScaleBar.DrawScalebar): Format string bug fixed.
802    
803    2003-05-08  Frank Koormann <[email protected]>
804    
805            Reorganization of scalebar component (no wx in Thuban/Model)
806    
807            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
808            (deriveInterval):
809            Calculate scalebar interval and unit which fits in width for scale.
810            (roundInterval): Round float.
811    
812            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
813    
814            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
815    
816            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
817    
818    2003-05-08  Frank Koormann <[email protected]>
819    
820            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
821            Initialize ScaleBar with canvas.map
822    
823            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
824            round intervals to display smarter lengths
825            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
826            layer. If the maps has no projection applied grey the scalebar.
827    
828    2003-05-07  Frank Koormann <[email protected]>
829            
830            Basic Scalebar features added.
831    
832            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
833    
834            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
835            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
836            and the renderer.
837    
838            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
839    
840            * Thuban/UI/messages.py: SCALE_CHANGED added.
841    
842    2003-05-07  Bernhard Herzog  <[email protected]>
843    
844            * Thuban/Model/session.py (Session.__init__): New instance
845            variable shapestores to hold a list of all open shapestore objects
846            (Session.ShapeStores): New. Accessor method for the shapestores
847            list.
848            (Session._add_shapestore, Session._clean_weak_store_refs): New.
849            Internal methods to maintain the shapestores list.
850            (Session.Tables): New. Return all tables open in the session.
851            (Session.OpenShapefile): Insert the new ShapeStore into the
852            shapestores list.
853    
854            * test/test_session.py (TestSessionSimple.test_initial_state): Add
855            tests for ShapeStores and Tables
856            (TestSessionWithContent.test_shape_stores)
857            (TestSessionWithContent.test_tables): New. Test cases for
858            ShapeStores and Tables
859    
860    2003-05-07  Bernhard Herzog  <[email protected]>
861    
862            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
863            Add comments about the optimizations used.
864            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
865            Implement the ReadValue table interface method.
866    
867            * test/test_transientdb.py
868            (TestTransientTable.run_iceland_political_tests)
869            (TestTransientTable.test_transient_joined_table): Add tests for
870            ReadValue
871    
872    2003-05-07  Frank Koormann <[email protected]>
873    
874            * Resources/Bitmaps/fulllayerextent.xpm,
875            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
876            new icons.
877    
878    2003-05-06  Bernhard Herzog  <[email protected]>
879    
880            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
881            New. Simply delegate to the transient table's version.
882    
883            * test/test_transientdb.py
884            (TestTransientTable.test_auto_transient_table_query): New. Test
885            case for AutoTransientTable's SimpleQuery
886    
887    2003-05-06  Bernhard Herzog  <[email protected]>
888    
889            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
890            Implement a simple query method for the query dialog
891            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
892            the row index or shapeid.
893            (TransientTable.create): Insert the right value of the row index
894            (TransientJoinedTable.create): Copy the row index of the left
895            table to the joined result table
896    
897            * test/test_transientdb.py
898            (TestTransientTable.test_transient_table_read_twice): Fix
899            doc-string
900            (TestTransientTable.test_transient_table_query): New. Test for the
901            SimpleQuery method
902    
903    2003-05-06  Bernhard Herzog  <[email protected]>
904    
905            Convert all table users to use the new table interface. This only
906            covers Thuban itself, not GREAT-ER or other applications built on
907            Thuban yet, so the compatibility interface stays in place for the
908            time being but it now issues DeprecationWarnings.
909    
910            Finally, the new Table interface has a new method, HasColumn.
911    
912            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
913            issue deprecation warnings when they're. The warnings refer to the
914            caller of the method.
915            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
916            for the deprecation warnings
917    
918            * test/test_table.py: Ignore the deprecation warnings for the old
919            table in the tests in this module. The purpose of the tests is to
920            test the old interface, after all.
921    
922            * test/test_transientdb.py
923            (TestTransientTable.run_iceland_political_tests): Use the
924            constants for the types. Add a test for HasColumn
925            (TestTransientTable.test_transient_joined_table): Adapt to new
926            table interface. Add a test for HasColumn
927            (TestTransientTable.test_transient_table_read_twice): Adapt to new
928            table interface
929    
930            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
931            Adapt to new table interface
932    
933            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
934            new table interface
935    
936            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
937            (RecordTable.SetTable): Adapt to new table interface
938    
939            * Thuban/UI/classifier.py (Classifier.__init__)
940            (Classifier.__init__): Adapt to new table interface
941    
942            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
943            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
944            to new table interface
945    
946            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
947            (AutoTransientTable.HasColumn): Implement the new table interface
948            method
949            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
950            (AutoTransientTable.UniqueValues): Adapt to new table interface
951    
952            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
953            Adapt to new table interface
954    
955            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
956            simplify opening shapefiles a bit easier.
957            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
958            (TestLayer.test_point_layer): Use the new helper method
959            (TestLayer.test_get_field_type): New. Test for the GetFieldType
960            method
961    
962            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
963            the new table method
964    
965            * test/test_memory_table.py (TestMemoryTable.test_has_column):
966            Test for the new table method HasColumn
967    
968    2003-05-06  Jonathan Coles   <[email protected]>
969    
970            Addresses the "Selection Extent" wish of RTbug #1787.
971    
972            * Resources/Bitmaps/fulllayerextent.xpm,
973            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
974            extent. These are just place holders for the real bitmaps.
975    
976            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
977            calculate the bounding box once (the first time compute_bbox() is
978            called).
979            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
980            the bounding box for the shapes in lat/long coordinates.
981    
982            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
983            option.
984            (MainWindow.has_selected_shapes): New. Returns true if there are
985            any selected shapes.
986            (MainWindow.FullSelectionExtent): New. Calls
987            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
988            (_has_selected_shapes): New. Returns true if there are any
989            selected shapes.
990    
991            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
992            true if there are any selected shapes.
993    
994            * Thuban/UI/view.py (MapCanvas): Added delegated method
995            HasSelectedShapes.
996            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
997            shapes on the canvas using the map projection (if any).
998    
999            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
1000            for Layer.ShapesBoundingBox().
1001    
1002    2003-05-06  Bernhard Herzog  <[email protected]>
1003    
1004            * Resources/Projections/defaults.proj: Fix spelling of Mercator
1005    
1006    2003-05-05  Jonathan Coles   <[email protected]>
1007    
1008            Addresses the "Full Layer Extent" wish of RTbug #1787.
1009    
1010            * Resources/Projections/defaults.proj: Added UK National Grid.
1011    
1012            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
1013            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
1014            when the user selects the menu option.
1015    
1016            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
1017            scales the given layer on the canvas using the map projection.
1018    
1019    2003-05-05  Bernhard Herzog  <[email protected]>
1020    
1021            Convert the table implementations to a new table interface. All
1022            tables use a common mixin class to provide backwards compatibility
1023            until all table users have been updated.
1024    
1025            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
1026            provide backwards compatibility for table classes implementing the
1027            new interface
1028            (DBFTable, MemoryTable): Implement the new table interface. Use
1029            OldTableInterfaceMixin as base for compatibility
1030            (DBFColumn, MemoryColumn): New. Column description for DBFTable
1031            and MemoryTable resp.
1032    
1033            * test/test_dbf_table.py: New. Test cases for the DBFTable with
1034            the new table interface.
1035    
1036            * test/test_memory_table.py: New. Test cases for the MemoryTable
1037            with the new table interface.
1038    
1039            * test/test_table.py: Document the all tests in this file as only
1040            for backwards compatibility. The equivalent tests for the new
1041            interface are in test_memory_table.py and test_dbf_table.py
1042            (MemoryTableTest.test_read): field_info should be returning tuples
1043            with four items
1044            (MemoryTableTest.test_write): Make doc-string a more precise.
1045    
1046            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
1047            table interface. Derive from from OldTableInterfaceMixin for
1048            compatibility.
1049            (TransientTableBase.create): New intance variable column_map to
1050            map from names and indices to column objects
1051            (TransientTable.create): Use the new table interface of the input
1052            table
1053            (AutoTransientTable): Convert to new table interface. Derive from
1054            from OldTableInterfaceMixin for compatibility.
1055            (AutoTransientTable.write_record): Removed. It's not implemented
1056            yet and we still have to decide how to handle writing with the new
1057            table and data framework.
1058    
1059            * test/test_transientdb.py
1060            (TestTransientTable.run_iceland_political_tests)
1061            (TestTransientTable.test_transient_joined_table): Use the new
1062            table interface
1063    
1064    2003-05-05  Jonathan Coles   <[email protected]>
1065    
1066            This is namely a collection of UI updates to improve user interactivity.
1067            Tabbing between controls now exists and you can use ESC to close dialog
1068            boxes; ENTER will active the default button.
1069    
1070            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
1071            order that the controls are created so that tabbing works correctly.
1072            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
1073            wxDialog can handle the default button correctly.
1074            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
1075            same reasons as for OnOK.
1076            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
1077            when we ask the table for the maximum/minimum values of a field
1078            which could take a very long time.
1079    
1080            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
1081            order that the controls are created so that tabbing works correctly.
1082            (SelectPropertiesDialog.__init__): Rearrange the order that the
1083            controls are created so that tabbing works correctly.
1084    
1085            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
1086            to derive from a wxDialog but behave like the original implementation
1087            which was derived from a wxFrame. wxDialog provides useful key
1088            handling functionality like ESC calling OnCancel and ENTER calling
1089            OnOK which is lost with wxFrame.
1090    
1091            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
1092            new dialogs.
1093    
1094            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
1095            order that the controls are created so that tabbing works correctly.
1096            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
1097            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
1098            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
1099            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
1100            can provide the "UK National Grid" as a default projection.
1101            (UTMPanel.__init__): Rearrange the order that the controls are
1102            created so that tabbing works correctly.
1103    
1104    2003-05-05  Bernhard Herzog  <[email protected]>
1105    
1106            * extensions/thuban/wxproj.cpp: Fix some of the comments.
1107            (project_point): If a map projection but no layer projection is
1108            given, convert degrees to radians before applying the map
1109            projection.
1110    
1111            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
1112            (TableGrid.allow_messages): New methods to make it possible to
1113            inhibit message sending.
1114            (TableGrid.issue): Only send the message if not inhibited.
1115            (LayerTableGrid.select_shape): Use the new methods to make sure
1116            that no ROW_SELECTED message is sent while we're updating the
1117            selected rows to match the selected shapes.
1118    
1119    2003-05-02  Jan-Oliver Wagner <[email protected]>
1120    
1121            Implementation of MemoryTable.
1122    
1123            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
1124            implementation that operates on a list of tuples. All of the data
1125            are kept in the memory.
1126    
1127            * test/test_table.py (MemoryTableTest): New.
1128    
1129            * test/test_transientdb.py (SimpleTable): Removed.
1130            (TestTransientTable.test_transient_joined_table,
1131            (TestTransientTable.test_transient_table_read_twice): Replaced
1132            SimpleTable by MemoryTable.
1133    
1134    2003-04-30  Jonathan Coles   <[email protected]>
1135    
1136            * Data/iceland_sample.thuban: Now contains correct projections
1137            for each of the layers.
1138    
1139            * Resources/Projections/defaults.proj: Geographic projection
1140            contains unit conversion parameter.
1141    
1142    2003-04-30  Jonathan Coles   <[email protected]>
1143    
1144            The most important part of this putback is the projection changes.
1145            It should now be possible to specify the projection that a layer
1146            is in and then specify a different projection for the map. The
1147            projection dialog has an extra parameter for a geographic projection
1148            which lets the user select if the input is in degrees or radians.
1149    
1150            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
1151            to say that the parameter is a tuple of unprojected
1152            points (which is what the callers to this method were assuming).
1153            Also, since the points are unprojected we need to projected them.
1154    
1155            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
1156            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
1157            groups are selected, move the layer up/down. Fixes RTbug #1833.
1158    
1159            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
1160    
1161            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
1162            parameter in call to SetClientData.
1163            (GeoPanel): Add support for selecting the units that the
1164            source data is in (Radians or Degrees).
1165    
1166            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
1167            the rendering loop by reducing the number of if's, removing the
1168            unnecessary try/except block, and checking if the old group
1169            is the same as the new one (which happens a lot if there is
1170            no classification, or lots of shapes are in the same group).
1171    
1172            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
1173            around the redraw routine to try to catch problems that the user
1174            may create by selecting invalid projections for the data set and
1175            map. Clears the display if there are any problems and prints the
1176            error.
1177            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
1178            rectangle.
1179    
1180            * extensions/thuban/wxproj.cpp (project_point): First invert the
1181            supplied point (which should be in projected coordinates) using
1182            the layer's projection and then project the point using the
1183            map's projection.
1184            (project_points): Use project_point() to project each point.
1185    
1186    2003-04-30  Jan-Oliver Wagner <[email protected]>
1187    
1188            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
1189            don't set the Classification to None if the classfication field
1190            is None (ie only a DEFAULT).
1191    
1192    2003-04-30  Bernhard Herzog  <[email protected]>
1193    
1194            * Thuban/UI/view.py: Fix some typos.
1195    
1196            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
1197            not pop up the dialog if the selection becomes empty (this could
1198            happen if e.g. a new selection is opened while the identify tool
1199            is active and dialog had been closed)
1200    
1201    2003-04-30  Bernhard Herzog  <[email protected]>
1202    
1203            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
1204            instance variable read_record_last_result
1205            (TransientTableBase.read_record): Make sure reading the same
1206            record twice works. The implementation uses the new instance
1207            variable read_record_last_result
1208    
1209            * test/test_transientdb.py
1210            (TestTransientTable.test_transient_table_read_twice): New test
1211            case for the above bug-fix.
1212    
1213    2003-04-29  Jonathan Coles   <[email protected]>
1214    
1215            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
1216    
1217            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
1218    
1219            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
1220            (ClassTable.SetValueAsCustom): Rename keyword argument in
1221            ClassGroup* constructors to match argument name.
1222    
1223    2003-04-29  Bernhard Herzog  <[email protected]>
1224    
1225            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
1226            transient DB if it exists to make sure it doesn't leave a journal
1227            file in the temp directory.
1228    
1229            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
1230            self.conn to None after closing the connection to make sure it's
1231            not closed twice
1232    
1233    2003-04-29  Jonathan Coles   <[email protected]>
1234    
1235            Add a visible parameter in the layer XML tag. The default value is
1236            "true". If anything other than "false" is specified we also assume
1237            "true". Addresses RTbug #1025.
1238    
1239            * Doc/thuban.dtd: Add visible parameter to a layer.
1240    
1241            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
1242            of visible from 1 to True.
1243            (Layer.__init__): Change default value of visible from 1 to True.
1244    
1245            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
1246            parameter.
1247    
1248            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
1249            parameter.
1250    
1251            * test/test_load.py: Add new test data contents_test_visible.
1252            (LoadSessionTest.setUp): save test data.
1253            (LoadSessionTest.testLayerVisibility): Test if the visible flag
1254            is loaded correctly.
1255    
1256            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
1257            for saving an invisible layer.
1258    
1259    2003-04-29  Jonathan Coles   <[email protected]>
1260    
1261            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
1262            legend dialog box and tell it to change its map to the one
1263            supplied to SetMap(). Fixes RTbug #1770.
1264    
1265    2003-04-29  Bernhard Herzog  <[email protected]>
1266    
1267            Next step of table implementation. Introduce a transient database
1268            using SQLite that some of the data is copied to on demand. This
1269            allows us to do joins and other operations that require an index
1270            for good performance with reasonable efficiency. Thuban now needs
1271            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
1272            haven't tested that.
1273            
1274            * Thuban/Model/transientdb.py: New. Transient database
1275            implementation.
1276    
1277            * test/test_transientdb.py: New. Tests for the transient DB
1278            classes.
1279    
1280            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
1281            classes to help automatically remove temporary files and
1282            directories.
1283            (Session.__init__): New instance variables temp_dir for the
1284            temporary directory and transient_db for the SQLite database
1285            (Session.temp_directory): New. Create a temporary directory if not
1286            yet done and return its name. Use AutoRemoveDir to have it
1287            automatically deleted
1288            (Session.TransientDB): Instantiate the transient database if not
1289            done yet and return it.
1290    
1291            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
1292            AutoTransientTable so that data is copied to the transient DB on
1293            demand.
1294            (SimpleStore): New class that simply combines a table and a
1295            shapefile
1296    
1297            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
1298            DBFTable and update its doc-string to reflect the fact that this
1299            is only the table interface to a DBF file. Table is now an alias
1300            for DBFTable for temporary backwards compatibility.
1301    
1302            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
1303            the last reference to the session goes away so that the temporary
1304            files are removed properly.
1305    
1306            * test/test_load.py (LoadSessionTest.tearDown): Remove the
1307            reference to the session to make sure the temporary files are
1308            removed.
1309    
1310    2003-04-29  Bernhard Herzog  <[email protected]>
1311    
1312            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
1313            the __parser instance variable into a normal local variable in
1314            read. It's only used there and read will never be called more than
1315            once. Plus it introduces a reference cycle that keeps can keep the
1316            session object alive for a long time.
1317    
1318    2003-04-29  Jonathan Coles   <[email protected]>
1319    
1320            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
1321            Projection an immutable item. Fixes RTbug #1825.
1322            (Projection.__init__): Initialize instance variables here.
1323            (ProjFile.Replace): New. Replace the given projection object with
1324            the new projection object. This solves the problem of needing the
1325            mutator Projection.SetProjection() in the ProjFrame class and
1326            allows a projection to change parameters without changing its
1327            location in the file.
1328    
1329            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
1330            be of type wxSAVE and should verify overwriting a file.
1331    
1332            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
1333            ProjFile.Replace() method instead of the mutator
1334            Projection.SetProjection(). Also requires that we reassign the
1335            client data to the new projection.
1336    
1337            * test/test_proj.py (TestProjection.test): Test GetName() and
1338            GetAllParameters()
1339            (TestProjFile.test): Remove tests for Set*() methods. Add tests
1340            for Replace().
1341    
1342    2003-04-25  Jonathan Coles   <[email protected]>
1343    
1344            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
1345            to save the name of the projection.
1346    
1347            * test/test_save.py (SaveSessionTest.testLayerProjection): New
1348            test to verify layer projections are saved correctly.
1349    
1350    2003-04-25  Jonathan Coles   <[email protected]>
1351    
1352            * Thuban/Model/proj.py (Projection.SetName): Set the name
1353            to "Unknown" if name is None.
1354            (Projection.SetAllParameters): New. Set the projection's
1355            parameter list to the one supplied.
1356            (Projection.SetProjection): New. Set the projection's
1357            properties to those of the supplied Projection.
1358    
1359            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
1360            the dialog title to include the map's title.
1361            (MainWindow.LayerProjection): Set the dialog title to include
1362            the layer's title.
1363    
1364            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
1365            error dialogs into a single method call.
1366            (ProjFrame.__VerifyButtons): Add more states to check.
1367            (ProjFrame.__GetProjection): Return the current state of an
1368            edited projection or None.
1369            (ProjFrame.__FillAvailList): Remove checks for states that
1370            shouldn't exist.
1371            (ProjFrame._OnNew): Clear all selected items and supply
1372            a projection panel if necessary.
1373    
1374            * test/test_proj.py (TestProjFile.test): Add tests for
1375            ProjFile.SetAllParameters, ProjFile.SetProjection,
1376            ProjFile.SetName.
1377    
1378    2003-04-25  Jonathan Coles   <[email protected]>
1379    
1380            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
1381            takes an optional argument to select the current projection.
1382            This does not guarantee that the item is visible due to
1383            limited wxWindows functionality. Fixes RTBug #1821.
1384    
1385    2003-04-25  Jonathan Coles   <[email protected]>
1386    
1387            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
1388            the projection name and use it when constructing the Projection
1389            object.
1390    
1391            * Thuban/Model/proj.py (Projection.__init__): Change the default
1392            value for 'name' to None and then test if name is equal to None
1393            in the body of the constructor. This way the caller doesn't have to
1394            know what the default value should be. Namely, useful in load.py
1395            where we have to pick a default value if the 'name' parameter
1396            doesn't exist in the XML file.
1397    
1398            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
1399            Tests a file where a layer has a projection.
1400    
1401    2003-04-25  Jonathan Coles   <[email protected]>
1402    
1403            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
1404            tree for projection information.
1405    
1406            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
1407            XMLReader.GetFileName.
1408            (SessionLoader): Added support for loading projection tags that
1409            appear inside a layer.
1410    
1411            * Thuban/Model/proj.py (ProjFile): Document the class. Move
1412            back to using a list because the order of the projections in
1413            the file is important to maintain. Fixes RTbug #1817.
1414    
1415            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
1416            to ProjFile.GetFilename.
1417    
1418            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
1419            information.
1420    
1421            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
1422            ProjFrame._OnSaveAs. Removed old dead code from previous
1423            implementation.
1424            (ProjFrame._OnExport): Add support for exporting more than one
1425            projection to a single file.
1426            (ProjFrame.__FillAvailList): use string formatting (% operator)
1427            to build strings that are (partly) translated. Fixes RTbug #1818.
1428    
1429            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
1430            class.
1431    
1432    2003-04-24  Bernhard Herzog  <[email protected]>
1433    
1434            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
1435    
1436            * po/fr.po: New. French translation by Daniel Calvelo Aros
1437    
1438            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
1439            empty strings.
1440    
1441    2003-04-24  Jonathan Coles   <[email protected]>
1442    
1443            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
1444            implement the interface that the ProjFrame dialog expects.
1445    
1446            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
1447            name of the projection to be changed.
1448            (ProjFile): Use a dictionary instead of a list so that removing
1449            projections is easier and we are sure about uniqueness.
1450            (ProjFile.Remove): Remove the given projection object.
1451    
1452            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
1453            Return a list with only one projection file instead of searching for
1454            any projection file. This simplifies many things if the user can
1455            only have one system file and one user file.
1456    
1457            * Thuban/UI/classgen.py: Change all references to
1458            genCombo to genChoice.
1459    
1460            * Thuban/UI/mainwindow.py: Add a Projection option under the
1461            layer menu.
1462            (MainWindow.LayerProjection): New. Open up a projection window
1463            for a layer.
1464    
1465            * Thuban/UI/projdialog.py: Large changes to how the dialog is
1466            laid out. Use three panels instead of one. One for the list of
1467            projections, one for the edit controls, and one for the buttons.
1468            Fixed resizing problems so that the dialog resizes correctly
1469            when the projection panel changes. Added import/export, save, and
1470            new buttons/functionality.
1471    
1472    2003-04-24  Bernhard Herzog  <[email protected]>
1473    
1474            First step towards table management. Introduce a simple data
1475            abstraction so that we replace the data a layer uses more easily
1476            in the next step.
1477    
1478            * Thuban/Model/data.py: New file with a simple data abstraction
1479            that bundles shapefile and dbffile into one object.
1480    
1481            * Thuban/Model/session.py (Session.OpenShapefile): New method to
1482            open shapefiles and return a shape store object
1483    
1484            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
1485            object instead of a shapefile filename. This introduces a new
1486            instance variable store holding the datastore. For intermediate
1487            backwards compatibility keep the old instance variables.
1488            (open_shapefile): Removed. No longer needed with the shape store.
1489            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
1490            get the shape store used by a layer.
1491            (Layer.Destroy): No need to explicitly destroy the shapefile or
1492            table anymore.
1493    
1494            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
1495            (MainWindow.AddLayer): Use the session's OpenShapefile method to
1496            open shapefiles
1497    
1498            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
1499            session's OpenShapefile method to open shapefiles
1500    
1501            * test/test_classification.py
1502            (TestClassification.test_classification): Use the session's
1503            OpenShapefile method to open shapefiles and build the filename in
1504            a more platform independed way
1505    
1506            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1507            Implement to have a session to use in the tests
1508            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
1509            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
1510            session's OpenShapefile method to open shapefiles
1511            (TestLayerLegend.setUp): Instantiate a session so that we can use
1512            it to open shapefiles.
1513            (TestLayerLegend.tearDown): Make sure that all references to
1514            layers and session are removed otherwise we may get a resource
1515            leak
1516    
1517            * test/test_map.py (TestMapAddLayer.test_add_layer)
1518            (TestMapWithContents.setUp): Instantiate a session so that we can
1519            use it to open shapefiles.
1520            (TestMapWithContents.tearDown): Make sure that all references to
1521            layers, maps and sessions are removed otherwise we may get a
1522            resource leak
1523            ("__main__"): use support.run_tests() so that more info about
1524            uncollected garbage is printed
1525    
1526            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
1527            session's OpenShapefile method to open shapefiles
1528            ("__main__"): use support.run_tests() so that more info about
1529            uncollected garbage is printed
1530    
1531            * test/test_selection.py (TestSelection.tearDown): Make sure that
1532            all references to the session and the selection are removed
1533            otherwise we may get a resource leak
1534            (TestSelection.get_layer): Instantiate a session so that we can
1535            use it to open shapefiles.
1536            ("__main__"): use support.run_tests() so that more info about
1537            uncollected garbage is printed
1538    
1539            * test/test_session.py (TestSessionBase.tearDown)
1540            (TestSessionWithContent.tearDown): Make sure that all references
1541            to the session and layers are removed otherwise we may get a
1542            resource leak
1543            (TestSessionWithContent.setUp): Use the session's OpenShapefile
1544            method to open shapefiles
1545    
1546    2003-04-24  Jonathan Coles   <[email protected]>
1547    
1548            * Thuban/Model/load.py (XMLReader.read): Should have been checking
1549            if the file_or_filename object had the 'read' attribute.
1550    
1551    2003-04-23  Jonathan Coles   <[email protected]>
1552    
1553            * Thuban/Model/resource.py: Fixes RTbug #1813.
1554            (ReadProjFile): Add documentation about which exceptions are raised.
1555            Always pass the exceptions up to the caller.
1556            (GetProjFiles): If the directory can't be read return an empty list.
1557            If any of the proj files can't be read skip that file and go
1558            on to the next one.
1559    
1560            * test/test_proj.py: Added test cases to handle nonexistent files,
1561            unreadable files, and files that don't parse correctly.
1562    
1563    2003-04-23  Jonathan Coles   <[email protected]>
1564    
1565            Projection dialog. Allows the user to select from a list
1566            of projection templates and optionally edit them and save new ones.
1567    
1568            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
1569            (ProjPanel): Base class for projection specific panels.
1570            (TMPanel): Projection panel for Transverse Mercartor.
1571            (UTMPanel): Projection panel for Universal Transverse Mercartor.
1572            (LCCPanel): Projection panel for Lambert Conic Conformal.
1573            (GeoPanel): Projetion panel for Geographic Projection.
1574    
1575    2003-04-23  Jonathan Coles   <[email protected]>
1576    
1577            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
1578            promote symmetry. There now exists XMLReader and XMLWriter.
1579            (XMLReader.read): New. Call to read the given file descriptor or
1580            filename.
1581            (XMLReader.close): New. Make sure the file is closed.
1582            (XMLReader.GetFileName): New. Return just the file name that is being
1583            read from.
1584            (XMLReader.GetDirectory): New. Return just the directory of the file
1585            that is being read.
1586            (XMLReader.AddDispatchers): New. Take a dictionary which contains
1587            the names of functions to call as the XML tree is parsed.
1588            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
1589            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
1590            (SessionLoader): Removed class variables start_dispatcher and
1591            end_dispatcher since this functionality is now part of a class
1592            instance. Fixes RTbug #1808.
1593            (SessionLoader.__init__): Add dispatcher functions.
1594            (load_xmlfile): Code was moved into the XMLReader.read().
1595            (load_session): Use modified SessionLoader.
1596    
1597            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
1598            map's projection.
1599    
1600            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
1601            GetAllParameters.
1602            (Projection.GetParameter): Returns the value for the given parameter.
1603    
1604            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
1605            (GetProjFiles): Renamed from GetProjections. Now returns a list
1606            of ProjFile objects.
1607            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
1608            a list of ProjFile objects whose files are not user defined.
1609            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
1610            list of ProjFile objects whose files are user defined.
1611            (ProjFileReader): Extend new XMLReader.
1612    
1613            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
1614            promote symmetry.
1615    
1616            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
1617            control instead of a wxComboBox. wxChoice controls do not generate
1618            events as the uses highlights possible choices which fixes problems
1619            with resizing the dialog when the use selects an option.
1620    
1621            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
1622            control instead of a wxComboBox.
1623    
1624            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
1625            dialog.
1626    
1627            * test/test_proj.py (TestProjection.test): New tests for GetParameter
1628            method.
1629    
1630    2003-04-22  Bernhard Herzog  <[email protected]>
1631    
1632            * Thuban/UI/mainwindow.py: Remove some unused imports and global
1633            constants
1634    
1635            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
1636            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
1637    
1638    2003-04-17  Bernhard Herzog  <[email protected]>
1639    
1640            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
1641            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
1642            anymore.
1643            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
1644            (Layer.ShapeType, Layer.Shape): No need to call
1645            self.open_shapefile since it's always called in __init__
1646    
1647            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
1648            In wxPython 2.4 there's no need to extend MainLoop anymore since
1649            wxPython itself makes sure OnExit is called.
1650    
1651    2003-04-16  Jonathan Coles   <[email protected]>
1652    
1653            Initial putback of projection management code. Includes new
1654            classes to read and write projection files. The current load
1655            and save classes were abstracted a bit so they could be reused.
1656            The Projection class was extended to provide new methods and
1657            have a name.
1658    
1659            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
1660            general XML reading methods that were part of ProcessSession.
1661    
1662            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
1663            name.
1664            (ProjFile): New. Represents a file that contains projection
1665            information.
1666    
1667            * Thuban/Model/resource.py: New. Contains general utilities
1668            for read and writing projection files.
1669    
1670            * Thuban/Model/save.py (XMLSaver): New. Contains all the
1671            general XML writing methods that were part of SessionSaver.
1672            (SessionSaver): Renamed from Saver.
1673    
1674            * test/test_proj.py: New test cases for the projection
1675            file read and write functions.
1676    
1677    2003-04-16  Jonathan Coles   <[email protected]>
1678    
1679            * Thuban/Model/classification.py: Use repr() around values
1680            in the ClassGroup*.__repr__() methods so it is clearer when
1681            a value is a string and when it is a number.
1682    
1683            * test/test_load.py: Rework the classification test to test
1684            that we can load old files.
1685            (testLabels): Test a file where the groups have labels.
1686    
1687    2003-04-16  Bernhard Herzog  <[email protected]>
1688    
1689            Safer implementation of the performance enhancements of the
1690            low-level renderer:
1691            
1692            * extensions/thuban/wxproj.cpp (extract_projection)
1693            (extract_pointer): Rename extract_projection to extract_pointer
1694            and redefine its purpose to return the pointer stored in a CObject
1695            returned by the object's cobject method. Update all callers.
1696            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
1697            handling of these low-level parameters so that each s_draw_info
1698            instance is handled as a CObject at python level that also
1699            contains real references to the actual python objects which
1700            contain the values in the struct. Add free_draw_info as the
1701            destructor.
1702            (draw_polygon_shape): Add the py_draw_info parameter which must a
1703            cobject containing an s_draw_info pointer.
1704    
1705            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
1706            method to instantiat the low-level render parameter
1707            (MapRenderer.draw_shape_layer): Use the new method. Remove some
1708            commented out code.
1709            (MapRenderer.draw_polygon_shape): Make the first parameter not the
1710            layer but the low-level render parameter
1711            (ScreenRenderer.draw_shape_layer): Use the low-level render
1712            parameter.
1713    
1714    2003-04-15  Jonathan Coles   <[email protected]>
1715    
1716            * Thuban/Model/classification.py: Implemented __repr__ for
1717            the ClassGroup* classes to make debugging a bit easier.
1718            (ClassGroup.SetLabel): Check that the string is an instance
1719            of StringTypes not StringType. Accounts for Unicode strings.
1720    
1721            * Thuban/Model/color.py: Implemented __repr__ to make
1722            debugging a bit easier.
1723    
1724            * Thuban/Model/save.py (Saver.write_classification): Need to
1725            save the group label.
1726    
1727            * test/test_load.py (testClassification): New. Loads the
1728            iceland_sample_test.thuban file and checks if it was loaded
1729            correctly.
1730    
1731    2003-04-15  Jonathan Coles   <[email protected]>
1732    
1733            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
1734            to improve rendering performance by initializing the variables
1735            that are not change each time draw_polygon_shape() is called.
1736            The values are stored in a global struct draw_info.
1737            (draw_polygon_shape): Removed initialization code that is
1738            now in draw_polygon_init().
1739    
1740            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
1741            drawing initialization call to draw_polygon_init()
1742            (MapRenderer.draw_polygon_shape): Use new signature of
1743            draw_polygon_shape.
1744    
1745            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
1746            weirdness by setting the range to (1, maxint).
1747    
1748            * Thuban/Model/classification.py (ClassGroupProperties): Make
1749            instance variables private and optimize comparison operator
1750            by first checking if the color references are the same.
1751            (ClassGroupSingleton): Make instance variables private.
1752            (ClassGroupRange): Make instance variables private.
1753    
1754            * HOWTO-Release: Filled in missing steps for releasing packages.
1755    
1756    2003-04-15  Bernhard Herzog  <[email protected]>
1757    
1758            First stab at internationalized messages:
1759    
1760            * Thuban/__init__.py (_): Implement the translation function for
1761            real using the python gettext module.
1762    
1763            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
1764            translate empty strings.
1765    
1766            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1767            Add a missing space to a warning message
1768    
1769            * po/README: New. Notes about the management of the translation
1770            files.
1771    
1772            * po/Makefile: New. Makefile to help manage the translation files.
1773    
1774            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
1775    
1776            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
1777            translations and support files in po/
1778    
1779            * setup.py (data_files): Add the *.mo files to the data_files too
1780    
1781            * README: Add note about the translations when building from CVS
1782    
1783    2003-04-14  Jonathan Coles   <[email protected]>
1784    
1785            * Thuban/UI/dock.py: Fixes some window resizing problems most
1786            noticable under windows. Always assume the button bitmaps will
1787            be there. Code clean up.
1788            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
1789            images for the dock/undock button to the same images.
1790            Work around for RTbug #1801.
1791    
1792            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
1793            be allowed to grow within the sizer. Fixes a bug under Windows
1794            where the toolbar wasn't being drawn.
1795    
1796    2003-04-14  Frank Koormann   <[email protected]>
1797    
1798            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
1799            Updated design to try to make the button functionality more
1800            transparent.
1801    
1802    2003-04-14  Jonathan Coles   <[email protected]>
1803    
1804            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
1805            finalize the intialization of the panel.
1806    
1807            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
1808            creation of the panel. Should be the last thing called in the
1809            initializer of a subclass.
1810    
1811            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
1812            set the current selections in the combo boxes. This is needed
1813            under Windows.
1814    
1815            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
1816            level panel to the dialog so that the background colors are
1817            consistent under Windows.
1818    
1819    2003-04-11  Jonathan Coles   <[email protected]>
1820    
1821            * Thuban/UI/classgen.py: Change color ramps to start at white
1822            not black.
1823    
1824            * Thuban/UI/legend.py: Enable/disable the legend buttons when
1825            the legend changes. Fixes RTbug #1793.
1826    
1827            * test/test_classification.py: Added test for copying of
1828            classifications.
1829    
1830    2003-04-11  Jonathan Coles   <[email protected]>
1831    
1832            * Thuban/UI/resource.py: New. Centralize the loading of resources
1833            such as bitmaps.
1834    
1835            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
1836            added images to the move buttons, added 'reverse' button.
1837            (CustomRampPanel.__init__): Added images to the move buttons.
1838            (GreyRamp): New. Generates a ramp from white to black.
1839            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
1840    
1841            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
1842            ID_PROPERTY_*.
1843            (Classifier.__init__): Minor changes to the layout.
1844            (Classifier._OnTitleChanged): Listen for when the user edits the
1845            title and update the dialog's title and the layer's title.
1846    
1847            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
1848    
1849            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
1850            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
1851            if the layer's title changes.
1852    
1853            * Thuban/UI/mainwindow.py: Added new menu item and associated code
1854            to open a dialog to rename the map.
1855            (MainWindow): Use new resource class to import bitmaps.
1856    
1857    2003-04-11  Jonathan Coles   <[email protected]>
1858    
1859            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
1860            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
1861            Resources/Bitmaps/group_use_none.xpm,
1862            Resources/Bitmaps/group_use_not.xpm,
1863            Resources/Bitmaps/hide_layer.xpm,
1864            Resources/Bitmaps/layer_properties.xpm,
1865            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
1866            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
1867            New.
1868    
1869    2003-04-10  Jonathan Coles   <[email protected]>
1870    
1871            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
1872            Should pass group to ClassGroup constructor.
1873    
1874    2003-04-10  Jonathan Coles   <[email protected]>
1875    
1876            * Thuban/Model/classification.py: (ClassGroup): Move all the common
1877            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
1878            here. Implement SetVisible(), IsVisible().
1879            (ClassGroup.__init__): Add group parameter which acts as a copy
1880            constructor.
1881    
1882            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
1883            "Visible" check boxes.
1884            (Classifier): Rename the buttons and refactor the code to match
1885            the new labels.
1886    
1887            * Thuban/UI/legend.py: Classify button is now called "Properties".
1888            Refactored the code to change variable names.
1889            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
1890    
1891            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
1892            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
1893            renamed to MainWindow.LayerEditProperties.
1894            (MainWindow.ToggleLegend): Don't include map name in legend title.
1895            (MainWindow.SetMap): Added the map name to the window title.
1896            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
1897            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
1898            Functionality is found in the layer properties dialog.
1899    
1900            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
1901            draw visible groups.
1902    
1903  2003-04-09  Jonathan Coles   <[email protected]>  2003-04-09  Jonathan Coles   <[email protected]>
1904    
1905          * Thuban/UI/classgen.py: Modifications to allow simple          * Thuban/UI/classgen.py: Modifications to allow simple

Legend:
Removed from v.634  
changed lines
  Added in v.1055

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26