/[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 840 by bh, Tue May 6 15:54:35 2003 UTC revision 1048 by jan, Tue May 27 08:05:14 2003 UTC
# Line 1  Line 1 
1    2003-05-27  Jan-Oliver Wagner <[email protected]>
2    
3            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
4            'after' now allows to insert separators almost anywhere in the menu.
5    
6    2003-05-27  Frank Koormann  <[email protected]>
7    
8            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
9            "S" of selection box label to hint on hot key (Alt-S). Works under
10            Win32 but is ignored under GTK.
11    
12    2003-05-26  Frank Koormann  <[email protected]>
13    
14            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
15            Center Choices.
16    
17    2003-05-26  Bernhard Herzog  <[email protected]>
18    
19            Remove the Precision methods again. They're too DBF specific to be
20            part of the table interface and they're only used in table_to_dbf
21            anyway.
22            
23            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
24            fixed precision of 12 for doubles.
25            (TransientTableBase.Precision): Removed
26            (AutoTransientTable.Width): Delegate to self.table.
27    
28            * Thuban/Model/table.py (DBFTable.Precision)
29            (MemoryTable.Precision): Removed.
30            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
31            (table_to_dbf): Use a fixed precision of 12 for floats unless the
32            column object specifies something else.
33    
34            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
35            test for table_to_dbf
36    
37    2003-05-26  Bernhard Herzog  <[email protected]>
38    
39            * test/test_transientdb.py
40            (TestTransientTable.run_iceland_political_tests): Fix a comment.
41    
42    2003-05-26  Bernhard Herzog  <[email protected]>
43    
44            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
45            implementation. Mark parts of the file format strings for
46            localization.
47    
48            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
49            file and add the table to the tables managed by the session
50    
51            * test/test_session.py (TestSessionSimple.test_open_table_file):
52            New. test case for OpenTableFile
53    
54    2003-05-26  Jan-Oliver Wagner <[email protected]>
55    
56            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
57            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
58            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
59            Replace the true/false of wxWindows by True/False of Python 2.2.1.
60    
61    2003-05-26  Jan-Oliver Wagner <[email protected]>
62    
63            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
64            already a selection present, update the grid accordingly.
65    
66            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
67            resizeable and increase its initial size.
68    
69    2003-05-26  Frank Koormann  <[email protected]>
70    
71            Table export functionality
72    
73            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
74            Return width (in characters) for a column.
75            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
76            (table_to_dbf): Write table to dbf file.
77            (table_to_csv): Write table to csv file.
78    
79            * Thuban/Model/transientdb.py (TransientTableBase.Width,
80            TransientTableBase.Precision): Return column width and precision.
81    
82            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
83            or table_to_csv depending on file selection.
84    
85            * test/test_dbf_table.py:
86            Test table_to_dbf (extension of former part of test).
87    
88            * test/test_csv_table.py:
89            Test table_to_csv.
90    
91    2003-05-23  Jan-Oliver Wagner <[email protected]>
92    
93            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
94            Use QueryTableFrame instead of TableFrame.
95    
96            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
97            table window with 'Layer Table:' instead of 'Table:'.
98    
99    2003-05-23  Jan-Oliver Wagner <[email protected]>
100    
101            Give all tables a title via mix-in TitledObject.LayerShowTable
102    
103            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
104            only if it exists.
105    
106            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
107            and call its init-method with a default title. Remove Title() method.
108    
109            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
110            AutoTransientTable): mix-in TitledObject and call its init-method with
111            a default title. Remove Title() method.
112    
113    2003-05-23  Bernhard Herzog  <[email protected]>
114    
115            * Thuban/Model/session.py (Session.AddShapeStore): Define
116            AddShapeStore analogously to AddTable.
117    
118            * test/test_session.py (TestSessionSimple.test_add_shapestore):
119            New. Test for AddShapeStore
120    
121    2003-05-23  Jan-Oliver Wagner <[email protected]>
122    
123            Introducing QueryTableFrame and a very coarse ShowTable implementation.
124    
125            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
126            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
127            The latter implements the selection GUI without dependency on a layer.
128            LayerTableFrame now is derived from QueryTableFrame and connects
129            to a layer.
130    
131            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
132            implementation that still needs work.
133    
134            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
135    
136    2003-05-22  Frank Koormann  <[email protected]>
137    
138            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
139            Added "outer_join = False" as optional parameter.
140            (TransientJoinedTable.create): If outer join is true, perform a
141            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
142            the left table. Records not matching are filled with 0 / None.
143    
144            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
145            (JoinDialog.OnJoin): Consider outer join check box.
146    
147    2003-05-22  Bernhard Herzog  <[email protected]>
148    
149            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
150            somewhat safer way. Storing the traceback in a local variable can
151            lead to memory leaks
152    
153    2003-05-22  Bernhard Herzog  <[email protected]>
154    
155            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
156            the wxMessageDialog's Destroy() method.
157    
158    2003-05-22  Frank Koormann  <[email protected]>
159    
160            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
161            TransientTable.Title()
162    
163    2003-05-22  Frank Koormann  <[email protected]>
164    
165            Join Dialog, initial version.
166    
167            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
168    
169            * Thuban/UI/join.py (JoinDialog): Functional implementation of
170            former framework. Renamed Table1/Table2 to LeftTable/RightTable
171            in all occurences.
172    
173            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
174            Typo fixed.
175    
176    2003-05-22  Bernhard Herzog  <[email protected]>
177    
178            Give the tables titles so that the GUI can display more meaningful
179            names. For now the titles are fixed but depend on e.g. filenames
180            or the titles of the joined tables.
181    
182            * Thuban/Model/transientdb.py (TransientTable.Title)
183            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
184    
185            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
186    
187            * test/test_transientdb.py
188            (TestTransientTable.test_auto_transient_table_title): New. Test
189            for the Title method
190            (TestTransientTable.test_transient_joined_table)
191            (TestTransientTable.test_transient_table): Add test for the Title
192            methods
193    
194            * test/test_memory_table.py (TestMemoryTable.test_title): New.
195            Test for the Title method
196    
197            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
198            the Title method
199    
200    2003-05-22  Bernhard Herzog  <[email protected]>
201    
202            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
203            Provide a better way to destroy the layers
204            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
205            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
206            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
207            the new way to destroy the layers.
208            (TestLayer.test_derived_store): New. Test for using a layer with a
209            DerivedShapeStore
210    
211            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
212            filename if the shape store actually has one.
213    
214    2003-05-22  Bernhard Herzog  <[email protected]>
215    
216            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
217            for the filename
218    
219            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
220            for the FileName method
221            (TestDBFTableWriting.test_write): Fix spelling of filename
222    
223    2003-05-22  Thomas Koester  <[email protected]>
224    
225            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
226            from SciParam that now really is immutable.
227    
228    2003-05-22  Frank Koormann  <[email protected]>
229    
230            Layer Top/Bottom placement added to legend.
231    
232            * Thuban/UI/legend.py
233            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
234            bound to tool events.
235            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
236            New, methods binding the event methods with the map methods.
237    
238            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
239            layer at top/bottom of layer stack.
240    
241            * Resources/Bitmaps/top_layer.xpm: New button icon.
242    
243            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
244    
245    2003-05-22  Bernhard Herzog  <[email protected]>
246    
247            * Thuban/Model/session.py (Session.RemoveTable): New method to
248            remove tables
249    
250            * test/test_session.py (TestSessionSimple.test_remove_table): New.
251            Test for RemoveTable
252    
253    2003-05-22  Thomas Koester  <[email protected]>
254    
255            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
256            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
257    
258    2003-05-22  Bernhard Herzog  <[email protected]>
259    
260            Implement a way to discover dependencies between tables and
261            shapestores.
262    
263            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
264            (TransientJoinedTable.Dependencies)
265            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
266            interface
267            (TransientJoinedTable.__init__): Keep tack of the original table
268            objects in addition to the corresponding transient tables.
269    
270            * Thuban/Model/table.py (DBFTable.Dependencies)
271            (MemoryTable.Dependencies): New. Implement the dependencies
272            interface
273    
274            * Thuban/Model/data.py (ShapeTable): New. Helper class for
275            ShapefileStore
276            (ShapefileStore.__init__): Use ShapeTable instead of
277            AutoTransientTable
278            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
279            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
280            methods for filename and type
281            (ShapefileStore.Dependencies): New. Implement the dependencies
282            interface
283            (DerivedShapeStore): New class to replace SimpleStore. The main
284            difference to SimpleStore is that it depends not on a shapefile
285            but another shapestore which expresses the dependencies a bit
286            better
287            (SimpleStore.__init__): Add deprecation warning.
288    
289            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
290            Test for the Dependencies method.
291    
292            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
293            New. Test for the Dependencies method.
294    
295            * test/test_transientdb.py
296            (TestTransientTable.test_auto_transient_table_dependencies): New.
297            Test for the Dependencies method.
298            (TestTransientTable.test_transient_joined_table): Add test for the
299            Dependencies method.
300    
301            * test/test_session.py (TestSessionSimple.setUp)
302            (TestSessionSimple.tearDown): New. Implement a better way to
303            destroy the sessions.
304            (TestSessionSimple.test_initial_state)
305            (TestSessionSimple.test_add_table): Bind session to self.session
306            so that it's destroyed by tearDown
307            (TestSessionSimple.test_open_shapefile): New. Test for
308            OpenShapefile and the object it returns
309    
310    2003-05-22  Bernhard Herzog  <[email protected]>
311    
312            * Thuban/Model/session.py (Session.AddTable): New method to
313            register tables with the session.
314            (Session.Tables): Return the tables registered with AddTable too.
315    
316            * test/test_session.py (TestSessionSimple.test_add_table): New.
317            Test case for the AddTable method
318    
319    2003-05-22  Frank Koormann  <[email protected]>
320    
321            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
322            lower right corner, center labels for selections, initialize controls
323            in reasonable order for keyboard navigation.
324    
325            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
326            (ProjFrame.__DoOnProjAvail): Determine position of current projection
327            using the wxListBox.FindString() method. Still a problem (#1886)
328    
329            * Thuban/UI/classifier.py
330            (Classifier.__init__, SelectPropertiesDialog.__init__)
331    
332            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
333            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
334            different classification types from here to __init__.
335            (GenUniquePanel.__init__): Set the column width of the first field
336            in the Field ListCtrl to the full width.
337    
338            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
339            Button to 'Export'. Center Buttons in Selection Box, set Focus to
340            Grid.
341            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
342            changes focus to the Selection when pressing "Alt-S".
343    
344            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
345            the text if not visible. The italic font sometimes exceeds the
346            rendering area.
347    
348    2003-05-21  Jonathan Coles   <[email protected]>
349    
350            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
351            to OnClose so that Thuban closes correctly.
352    
353            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
354            DockFrame.OnClose, not DockFrame._OnClose.
355    
356    2003-05-21  Jonathan Coles   <[email protected]>
357    
358            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
359            references to 'inf' and use new Range __init__ to pass floats
360            directly rather than converting them to strings first.
361            Fixes RTBug #1876.
362    
363            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
364            Use new Range ___init__ to pass floats.
365    
366            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
367            filename is a valid image file. Throw IOError otherwise.
368    
369            * Thuban/Model/range.py: Brought over new Range from SciParam that
370            is immutable and has an __init__ which can accept floats.
371    
372            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
373            into try block. AddLayer doesn't throw any exceptions anymore.
374            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
375            try block.
376    
377            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
378            the first item in choices. Fixes RTBug #1882.
379    
380            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
381            has gone to 0 which is a serious problem. abort.
382            (MapRenderer.draw_raster_layer): Catch IOError seperately and
383            print the error from GDAL.
384    
385            * Thuban/UI/tableview.py (TableGrid.__init__): Call
386            ToggleEventListeners to turn on listening.
387            (TableGrid.ToggleEventListeners): New. Turns event listening on
388            and off so as to prevent excessive messages.
389            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
390            to suppress excessive messages when selecting many rows.
391            Fixes RTBug #1880.
392    
393            * Thuban/UI/view.py: Added checks against if scale == 0. This
394            is a serious problem that can occur when an image without
395            geo data is loading and causes the map projection bounds to
396            go to infinity. Right now, the solution is to simply try
397            to recover.
398    
399            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
400            to set the MFILEReceiver attributes even if the data is NULL.
401    
402            * extensions/thuban/gdalwarp.cpp: Improved the error handling
403            and passed GDAL messages back up to the Python layer. Also
404            tried to fix some memory leaks that were present in the original
405            utility but didn't matter because the program aborted.
406    
407            * test/test_range.py: Copied over tests from SciParam. Removed
408            tests against importing. Fixes RTBug #1867.
409    
410    2003-05-21  Bernhard Herzog  <[email protected]>
411    
412            * test/test_load.py: Remove unused imports and restructure the
413            test code
414            (LoadSessionTest): Split into one class for each test and turn
415            LoadSessionTest itself into the base class for all such session
416            tests.
417            (ClassificationTest): New base class for load tests that test
418            classifications
419            (TestSingleLayer, TestLayerVisibility, TestClassification)
420            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
421            for the individual tests
422    
423            * test/support.py (FileLoadTestCase.filename): New base class for
424            file loading tests
425    
426    2003-05-21  Jan-Oliver Wagner <[email protected]>
427    
428            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
429            Mercator' to 'UTM Zone 32' as a more convenient example.
430            Added 'Gauss Krueger Zone 6'.
431    
432            * Data/iceland_sample_raster.thuban: political polygon now
433            filled transparent to have the raster image visible at once.
434    
435    2003-05-21  Frank Koormann  <[email protected]>
436    
437            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
438            OnClose() to keep in sync with extensions. Internally Thuban
439            still uses "underscored" names.
440    
441    2003-05-20  Jonathan Coles   <[email protected]>
442    
443            This puts back Raster layer support. These layers support projections
444            through the GDAL library. Currently, the CVS version is being used.
445            There are no Debian packages available although this may change soon.
446            A GDAL driver was extended to support writing to memory rather to
447            files.
448    
449            There is still some work that needs to be done, such as some error
450            handling when loading invalid images or when there is a problem
451            projecting the image. This putback simply checks in the majority
452            of the work.
453    
454            * setup.py: Add gdalwarp library extension.
455    
456            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
457            Defaults to False, but can be overridden by subclasses if they
458            support classification.
459            (RasterLayer): New. Defines a new layer that represents an
460            image.
461    
462            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
463            tag handler.
464            (SessionLoader.start_layer): Encode the filename.
465            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
466            New. Supports reading a rasterlayer tag.
467    
468            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
469    
470            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
471            get a string in Latin1. If we get such as string convert it to
472            unicode first, otherwise leave if alone before encoding.
473            (SessionSaver.write_layer): Add support for writing both Layers
474            and RasterLayers.
475    
476            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
477            The right argument may not be a string, it could also be a Column.
478    
479            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
480            Make initial window size 600x400. Fixes RTBug #1872.
481    
482            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
483            the dialog is constructed so that we can support layers that
484            do not have classifications.
485            (Classifier._OnTry): Only build a classification if the layer
486            supports one.
487    
488            * Thuban/UI/legend.py: Change all checks that a layer is an
489            instance of Layer into checks against BaseLayer.
490            (LegendTree.__FillTreeLayer): Only add children to a branch if
491            the layer supports classification.
492    
493            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
494            MainWindow.OpenSession): Don't proceed with an action if the
495            user chooses Cancel when they are asked to save changes.
496            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
497            user to select an image file. Create a new RasterLayer and add
498            it to the map.
499    
500            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
501            for rendering RasterLayer layers.
502            (MapRenderer.draw_raster_layer): Actually method that calls
503            the GDALWarp python wrapper and constructs an image from the
504            data returned.
505    
506            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
507            Choices symbols to match those used in the table query method.
508            Replace deprecated method calls on table with new method names.
509    
510            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
511            how small the scale can get. This still needs more testing.
512    
513            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
514            Provides a driver to output in .bmp format.
515    
516            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
517            New. Provides IO routines which write to memory, rather than a file.
518    
519            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
520            of the gdalwarp utility provided in GDAL. Added function calls
521            that can be accessed from python.
522    
523            * Data/iceland_sample_raster.thuban: New. Sample file that uses
524            a raster layer.
525    
526            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
527            layer image data.
528    
529            * Doc/thuban.dtd: Added rasterlayer attribute definition.
530    
531            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
532            tests associated with the raster layer code.
533    
534            * test/test_transientdb.py
535            (TestTransientTable.test_auto_transient_table_query): Added a test
536            for using a Column object as the "right" parameter to a query.
537    
538    2003-05-19  Frank Koormann  <[email protected]>
539    
540            * Thuban/version.py (get_changelog_date):
541            Catch exceptions if ChangeLog does not exist.
542    
543            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
544    
545    2003-05-19  Frank Koormann  <[email protected]>
546    
547            Extended version information for Thuban
548    
549            * Thuban/version.py: New, version information for Thuban: Last
550            modification date and last ChangeLog entry date.
551    
552            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
553            information: Display Thuban, wxPython and Python version.
554    
555    2003-05-16  Bernhard Herzog  <[email protected]>
556    
557            * Thuban/Model/save.py: Remove some unused imports including the
558            __future__ import for nested_scopes as Thuban relies on Python 2.2
559            now.
560            (XMLWriter.encode): Remove the special case for a None argument.
561            In the saver encode is always called with a string argument.
562    
563    2003-05-16  Bernhard Herzog  <[email protected]>
564    
565            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
566            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
567            of the bug was that e.g. float("1.2") would fail. Thuban now
568            requires 2.4.x.
569            
570    2003-05-16  Frank Koormann   <[email protected]>
571    
572            Printing enhancement and WMF export (under Win32)
573    
574            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
575            ScreenRenderer. Renders Map, Legend and Scalebar for export.
576            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
577            PrintRender.
578    
579            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
580            to fullfil information needed for PrinterRenderer.
581            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
582            (MapCanvas.Print): Adapted to new MapPrintout.
583            (OutputTransform): General calculations to transform from canvas
584            coordinates to export/printing devices.
585    
586            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
587            new method_command to call ExportMap, with platform dependency (only
588            __WXMSW__)
589      
590            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
591            of scalebar drawing area as new parameters.
592            
593            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
594    
595            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
596            Update to extended scalebar.DrawScalebar header.
597    
598            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
599    
600            * test/test_scalebar.py: Made test executable as standalone.
601    
602    2003-05-16  Bernhard Herzog  <[email protected]>
603    
604            * Thuban/Model/table.py (Table): Remove this compatibility alias
605            for DBFTable.
606    
607            * test/test_table.py: Import DBFTable as Table because that alias
608            doesn't exist anymore.
609    
610            * Thuban/UI/classgen.py: Remove some unused imports
611    
612    2003-05-14  Jonathan Coles   <[email protected]>
613    
614            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
615            Fix docstring.
616            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
617            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
618            values of the supplied range to determine the beginning and end
619            bounds of the generated classes.
620    
621            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
622            do not have a leading 0 (.5 is now accepted as well as 0.5).
623    
624            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
625            call to ClassGenerator.GenUniformDistribution.
626    
627            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
628            layout bug with the 'Projection' label.
629    
630            * test/support.py (FloatTestCase): New. Needed for the Range tests.
631    
632            * test/test_range.py: New. Imported from SciParam.
633    
634    2003-05-12  Jonathan Coles   <[email protected]>
635    
636            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
637            to table.UniqueValues() with calls that retrieve all the values
638            from the table. This will need to be replaced by a method on table
639            which can simply return the list (perhaps more efficiently).
640    
641    2003-05-12  Jonathan Coles   <[email protected]>
642    
643            The return value of ClassGenerator.CalculateQuantiles has changed.
644            Refer to the documentation for details.
645    
646            * test/test_classgen.py: Modified Quantile tests to use the
647            new return values.
648    
649            * Thuban/Model/classgen.py
650            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
651            use new return values from CalculateQuantiles to produce the correct
652            range bounds in the Classification.
653            (ClassGenerator.CalculateQuantiles): Add more comments describing
654            the return values and parameters. Make minor adjustments to improve
655            the legibility of the code. Fix problem with adjusted not being set
656            in most cases.
657    
658    2003-05-12  Frank Koormann <[email protected]>
659            
660            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
661            and latin1. Fixes #1851 finally.
662    
663    2003-05-09  Jonathan Coles   <[email protected]>
664    
665            * test/test_classgen.py: New. Tests the Quantile algorithm.
666    
667            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
668            Clean up debugging statement, add comments, fix a small bug in the
669            returned adjusted percentiles.
670            
671    2003-05-09  Jonathan Coles   <[email protected]>
672    
673            Introduces Range class from SciParam into the ClassGroupRange class,
674            and such ranges can now be saved and loaded from disk.
675    
676            Quantiles are now available in the Classification Generator.
677    
678            Initial support for building Queries on a table. Doesn't do anything
679            but run some tests.
680    
681            * Thuban/Model/classification.py: Explicit imports.
682            (ClassGroupRange): Use the Range class to store the underlying
683            range information. The interface remains the same, except for
684            GetRange(), and you can also supply a Range object as the min
685            parameter to SetRange or __init__.
686    
687            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
688            string appropriately for use in Thuban. Fixes RTbug #1851.
689            (SessionLoader.end_projection): Handle the context of the
690            projection tag a bit better by looking at what objects are not
691            None. There was an assumption that a projection tag for a map
692            could occur before any layers.
693            (SessionLoader.start_clrange): Provide backward compatibility for
694            reading min/max values as well as the new range parameter.
695    
696            * Thuban/Model/map.py: Explicit imports.
697    
698            * Thuban/Model/resource.py: Import _.
699            (ProjFileSaver.write): write header using projfile.dtd.
700    
701            * Thuban/Model/save.py: Explicit imports.
702            (XMLWriter.encode): New. Encode the given string from a format
703            used by Thuban into UTF-8. Fixes RTbug #1851.
704    
705            * Thuban/UI/classgen.py: Explicit imports.
706            (ClassGenDialog.__init__): Clean up the code and add support
707            for Quantiles.
708            (ClassGenDialog.OnOK): Add support for Quantiles.
709            (GenQuantilesPanel): New. Input panel for Quantiles.
710            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
711            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
712    
713            * Thuban/Model/classgen.py: New. Contains all the classes named above.
714    
715            * Thuban/UI/classifier.py: Explicit imports.
716            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
717            ClassTable.SetValueAsCustom): Reworked to use new Range class.
718    
719            * Thuban/UI/legend.py: Explicit imports.
720    
721            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
722            a Table menu and associated method calls.
723            (MainWindow.choose_color): Removed. No longer needed.
724    
725            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
726            should be disabled if no projection is selected in the available
727            list.
728    
729            * Thuban/UI/renderer.py: Explicit imports.
730    
731            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
732            with correctly selecting the rows and issuing the right events.
733            Be sure to call Skip() to allow the grid to do some of its own
734            handling which allows the rows to actually be selected.
735            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
736            selecting multiple shapes.
737            (LayerTableFrame): Support for building Queries.
738            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
739    
740            * Thuban/UI/tree.py: Explicit imports.
741    
742            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
743            table view can call it.
744    
745            * test/test_classification.py: Explicit imports.
746            (TestClassification.test_ClassGroupRange): Fix test for new
747            Range class.
748    
749            * Doc/thuban.dtd: Add range parameter for clrange.
750    
751            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
752            object in ClassGroupRange, and also uesd for inputting ranges in
753            the classifer table and elsewhere.
754    
755            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
756            yet.
757    
758    2003-05-09  Frank Koormann <[email protected]>
759    
760            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
761    
762    2003-05-08  Frank Koormann <[email protected]>
763    
764            Coding style updates
765    
766            * test/test_scalebar.py: Replaced tab indentation by spaces.
767    
768            * Thuban/UI/scalebar.py: Explicit imports.
769    
770    2003-05-08  Frank Koormann <[email protected]>
771    
772            * Thuban/UI/scalebar.py
773            (ScaleBar.DrawScalebar): Format string bug fixed.
774    
775    2003-05-08  Frank Koormann <[email protected]>
776    
777            Reorganization of scalebar component (no wx in Thuban/Model)
778    
779            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
780            (deriveInterval):
781            Calculate scalebar interval and unit which fits in width for scale.
782            (roundInterval): Round float.
783    
784            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
785    
786            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
787    
788            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
789    
790    2003-05-08  Frank Koormann <[email protected]>
791    
792            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
793            Initialize ScaleBar with canvas.map
794    
795            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
796            round intervals to display smarter lengths
797            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
798            layer. If the maps has no projection applied grey the scalebar.
799    
800    2003-05-07  Frank Koormann <[email protected]>
801            
802            Basic Scalebar features added.
803    
804            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
805    
806            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
807            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
808            and the renderer.
809    
810            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
811    
812            * Thuban/UI/messages.py: SCALE_CHANGED added.
813    
814    2003-05-07  Bernhard Herzog  <[email protected]>
815    
816            * Thuban/Model/session.py (Session.__init__): New instance
817            variable shapestores to hold a list of all open shapestore objects
818            (Session.ShapeStores): New. Accessor method for the shapestores
819            list.
820            (Session._add_shapestore, Session._clean_weak_store_refs): New.
821            Internal methods to maintain the shapestores list.
822            (Session.Tables): New. Return all tables open in the session.
823            (Session.OpenShapefile): Insert the new ShapeStore into the
824            shapestores list.
825    
826            * test/test_session.py (TestSessionSimple.test_initial_state): Add
827            tests for ShapeStores and Tables
828            (TestSessionWithContent.test_shape_stores)
829            (TestSessionWithContent.test_tables): New. Test cases for
830            ShapeStores and Tables
831    
832    2003-05-07  Bernhard Herzog  <[email protected]>
833    
834            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
835            Add comments about the optimizations used.
836            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
837            Implement the ReadValue table interface method.
838    
839            * test/test_transientdb.py
840            (TestTransientTable.run_iceland_political_tests)
841            (TestTransientTable.test_transient_joined_table): Add tests for
842            ReadValue
843    
844    2003-05-07  Frank Koormann <[email protected]>
845    
846            * Resources/Bitmaps/fulllayerextent.xpm,
847            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
848            new icons.
849    
850    2003-05-06  Bernhard Herzog  <[email protected]>
851    
852            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
853            New. Simply delegate to the transient table's version.
854    
855            * test/test_transientdb.py
856            (TestTransientTable.test_auto_transient_table_query): New. Test
857            case for AutoTransientTable's SimpleQuery
858    
859    2003-05-06  Bernhard Herzog  <[email protected]>
860    
861            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
862            Implement a simple query method for the query dialog
863            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
864            the row index or shapeid.
865            (TransientTable.create): Insert the right value of the row index
866            (TransientJoinedTable.create): Copy the row index of the left
867            table to the joined result table
868    
869            * test/test_transientdb.py
870            (TestTransientTable.test_transient_table_read_twice): Fix
871            doc-string
872            (TestTransientTable.test_transient_table_query): New. Test for the
873            SimpleQuery method
874    
875  2003-05-06  Bernhard Herzog  <[email protected]>  2003-05-06  Bernhard Herzog  <[email protected]>
876    
877          Convert all table users to use the new table interface. This only          Convert all table users to use the new table interface. This only

Legend:
Removed from v.840  
changed lines
  Added in v.1048

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26